websocket abstract method

FutureOr websocket(
  1. Event event,
  2. T request,
  3. Hooks hooks
)

Upgrading websocket.

The return value can be any data you need, for example, in the event of a failure, you can return a Response or the result of a fallback call. Due to the different contents returned by different platforms, the return value depends on your implementation.

Implementation

FutureOr websocket(Event event, T request, Hooks hooks);