channels property

Stream<WebSocketChannel> channels

A stream which will emit a WebSocketChannel everytime a new client connects to the server.

A WebSocketChannel has a sink which can be used to push messages to the client and a stream which receives messages from the client.

Implementation

Stream<WebSocketChannel> get channels => _channelsController.stream;