onUpgrade function

void onUpgrade(
  1. Event event,
  2. UpgradeHandle handle
)

WebSocket on upgrade hook, Handler calls upgrade to run.

Implementation

void onUpgrade(Event event, UpgradeHandle handle) {
  event.set(#spry.ws.on_upgrade, handle);
}