WebSocketClient constructor

WebSocketClient({
  1. required OnWSConnect onConnect,
  2. required OnWSDisconnect onDisconnect,
  3. required OnWSData onData,
  4. required OnWSError onError,
})

Implementation

WebSocketClient({
  required OnWSConnect onConnect,
  required OnWSDisconnect onDisconnect,
  required OnWSData onData,
  required OnWSError onError,
}) {
  _functionConnect = onConnect;
  _functionDisconnect = onDisconnect;
  _functionData = onData;
  _functionError = onError;
}