SocketClient constructor
SocketClient(
- String url, {
- String protocol = GraphQLProtocol.graphqlWs,
- SocketClientConfig config = const SocketClientConfig(),
- @visibleForTesting Uint8List? randomBytesForUuid,
- @visibleForTesting void onMessage()?,
- @visibleForTesting void onStreamError(
- Object error,
- StackTrace stackTrace
Implementation
SocketClient(
this.url, {
this.protocol = GraphQLProtocol.graphqlWs,
this.config = const SocketClientConfig(),
@visibleForTesting this.randomBytesForUuid,
@visibleForTesting this.onMessage,
@visibleForTesting this.onStreamError = _defaultOnStreamError,
}) {
_connect();
}