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