opened property

(T? Function(WebSocketChannel socket)?) opened
final

The first argument is actually the WebSocket, but to avoid bundling DOM typings because the client can run in Node env too, you should assert the websocket type during implementation.

Implementation

final T? Function(WebSocketChannel socket)? opened;