Handle WebSockets in ultimate-express
mainBecause µExpress manages the HTTP server internally, you cannot use http.on('upgrade'). You have two options for WebSockets:
- Use Ultimate WS: A sister library that implements a
ws-compatible API designed for Ultimate Express upgrades. - Direct uWS Access: Access the underlying uWebSockets.js
Appinstance viaapp.uwsAppand call its.ws()method directly.