Function WebSocketClient.disconnectFromHost

Disconnects this client from the connected host. See WebSocketPeer.close for more information.

void disconnectFromHost (
  const(long) code = 1000L,
  const(String) reason = GodotStringLiteral().str()
) nothrow @nogc;