Example #1
0
 public WebSockets(Connection connection, Format format)
 {
     _connection  = connection;
     _channel     = (HttpChannel)connection.Channel;
     _messageType = format == Format.Binary ? WebSocketMessageType.Binary : WebSocketMessageType.Text;
 }
Example #2
0
 public LongPolling(Connection connection)
 {
     _connection = connection;
     _channel    = (HttpChannel)connection.Channel;
 }
Example #3
0
 public ServerSentEvents(Connection connection)
 {
     _connection = connection;
     _channel    = (HttpChannel)connection.Channel;
 }