public ConnectionContext(WebSocket socket, string connectionId) { ConnectionId = connectionId; _socketClient = new WebSocketClient(socket); Reader = new JsonMessageReader(_socketClient); Writer = new JsonMessageWriter(_socketClient); }
public ConnectionContext(WebSocket socket, string connectionId, GraphQLWebSocketsOptions options) { Options = options; ConnectionId = connectionId; _socketClient = new WebSocketClient(socket); Reader = new JsonMessageReader(_socketClient); Writer = new JsonMessageWriter(_socketClient); }