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