WebSocketConnection constructor

WebSocketConnection(
  1. WebSocket socket,
  2. Context context
)

Creates a new connection wrapper for the given socket and context.

Implementation

WebSocketConnection(this.socket, this.context);