sendUserPresenceAway method
void
sendUserPresenceAway(
- WebSocketChannel webSocketChannel
Implementation
void sendUserPresenceAway(WebSocketChannel webSocketChannel) {
Map msg = {"msg": "method", "method": "UserPresence:away", "id": "42"};
webSocketChannel.sink.add(jsonEncode(msg));
}