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