getConnectionEvents static method

List<WebSocketEvent> getConnectionEvents(
  1. String connectionId
)

Get events for a specific connection

Implementation

static List<WebSocketEvent> getConnectionEvents(String connectionId) {
  final connection = _connections.value[connectionId];
  return connection != null
      ? List.unmodifiable(connection.events)
      : [];
}