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