public HandshakeHandler( TcpConnectionService tcpConnectionService, WebsocketParserHandler websocketParserHandler, Action <ConnectionStatus, Exception?> connectionStatusAction) { _tcpConnectionService = tcpConnectionService; _websocketParserHandler = websocketParserHandler; _connectionStatusAction = connectionStatusAction; }
internal WebsocketSenderHandler( TcpConnectionService tcpConnectionService, Action <ConnectionStatus, Exception?> connectionStatusAction, Func <Stream, byte[], CancellationToken, Task> writeFunc, bool isExcludingZeroApplicationDataInPong) { _tcpConnectionService = tcpConnectionService; _connectionStatusAction = connectionStatusAction; _writeFunc = writeFunc; _isExcludingZeroApplicationDataInPong = isExcludingZeroApplicationDataInPong; }
internal WebsocketConnectionHandler( TcpConnectionService tcpConnectionService, WebsocketParserHandler websocketParserHandler, Action <ConnectionStatus, Exception?> connectionStatusAction, Func <Stream, Action <ConnectionStatus, Exception?>, WebsocketSenderHandler> createWebsocketSenderFunc) { _tcpConnectionService = tcpConnectionService; _websocketParserHandler = websocketParserHandler; _connectionStatusAction = connectionStatusAction; _createWebsocketSenderFunc = createWebsocketSenderFunc; _clientPingDisposable = default; }
internal WebsocketParserHandler( TcpConnectionService tcpConnectionService) { _tcpConnectionService = tcpConnectionService; }