upgrade function
Upgrade request event to websocket.
Implementation
Future<bool> upgrade(Event event, Hooks hooks) async {
final handle = event.get(#spry.ws.on_upgrade);
if (handle is UpgradeHandle) {
return await handle(hooks);
}
return false;
}