WebSocketConnectedCallback typedef

WebSocketConnectedCallback = FutureOr<void> Function(Context context, WebSocketChannel channel)

WebSocket connected callback.

The WebSocketChannel is a wrapper around a StreamChannel that provides a convenient API for sending and receiving WebSocket messages.

Implementation

typedef WebSocketConnectedCallback = FutureOr<void> Function(
  Context context,
  WebSocketChannel channel,
);