sendUserPresence method

dynamic sendUserPresence(
  1. WebSocketChannel webSocketChannel,
  2. String status
)

Implementation

sendUserPresence(WebSocketChannel webSocketChannel, String status) {
 Map msg = {
   "msg": "method",
   "method": "UserPresence:setDefaultStatus",
   "id": "101",
   "params": [status]
 };
return webSocketChannel.sink.add(jsonEncode(msg));
  }