WsChannelConnection.fromChannel constructor
WsChannelConnection.fromChannel(
- WebSocketChannel channel, {
- FrameCodec? codec,
Wraps an already-connected channel.
Implementation
factory WsChannelConnection.fromChannel(
WebSocketChannel channel, {
FrameCodec? codec,
}) => WsChannelConnection._(channel, codec ?? FrameCodec.standard());