WebSocketService constructor
WebSocketService(})
Implementation
WebSocketService(
this.uri, {
this.onReceive,
this.onDone,
this.onError,
this.onConnecting,
this.onConnected,
this.onConnectionFail,
this.reconnectIn = const Duration(seconds: 10),
this.headers,
});