Creates a new connection wrapper for the given socket and context.
socket
context
WebSocketConnection(this.socket, this.context);