sendUserPresenceAway method

void sendUserPresenceAway(
  1. WebSocketChannel webSocketChannel
)

Implementation

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