sendUserPresenceOnline method

void sendUserPresenceOnline(
  1. WebSocketChannel webSocketChannel
)

Implementation

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