getUserSockets static method

Iterable<UserWebSocket> getUserSockets(
  1. dynamic userId
)

Implementation

static Iterable<UserWebSocket> getUserSockets(dynamic userId) {
  _closeInActiveSockets();
  return _sockets[userId] ?? [];
}