socketio / socket.io-website

Socket.IO website and blog
https://socket.io
319 stars 671 forks source link

docs: µWebSockets.js example initializes the server incorrectly #375

Closed mattevenson closed 1 year ago

mattevenson commented 1 year ago

The uWebSockets.js docs say to initialize the server by just calling App() rather than attempting to use the constructor new App() as portrayed in the example on the SocketIO docs, which doesn't work.

(In Typescript, you get an error: Only a void function can be called with the 'new' keyword.)

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
socket-io-website ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 28, 2023 at 5:19AM (UTC)
darrachequesne commented 1 year ago

Good catch, thanks :+1: