connect method

Future<String?> connect(
  1. String url, {
  2. SocketConnectionOptions? options,
})

Connects to the socket server.

Throws SocketConnectionException if connection fails. Throws SocketTimeoutException if connection times out. Throws SocketInvalidUrlException if URL is invalid.

Implementation

Future<String?> connect(String url, {SocketConnectionOptions? options}) {
  throw UnimplementedError('connect() has not been implemented.');
}