streamUserPresence method

void streamUserPresence(
  1. WebSocketChannel webSocketChannel,
  2. List<String> userId
)

Implementation

void streamUserPresence(
    WebSocketChannel webSocketChannel, List<String> userId) {
  webSocketChannel.sink.add(jsonEncode({
    "msg": "sub",
    "id": userId[0],
    "name": "stream-user-presence",
    "params": [
      "",
      {
        "added": userId
      }
    ]
  }));
}