connectOrReconnect method
void
connectOrReconnect()
Connects or reconnects to the server with the specified headers.
Implementation
void connectOrReconnect() {
_socketClient?.dispose();
_socketClient = SocketClient(
url,
config: config,
protocol: subProtocol,
);
}