sockjs / sockjs-node

WebSocket emulation - Node.js server
http://sockjs.org
MIT License
2.09k stars 309 forks source link

Support overriding welcome_screen? #244

Closed Zarel closed 2 years ago

Zarel commented 5 years ago

Currently, navigating to a SockJS server just displays Welcome to SockJS!

https://github.com/sockjs/sockjs-node/blob/e2369c3d02c7e285ecbac409f3a4d0c8b72c39d3/lib/handlers.js#L4-L8

It could be useful to override this with a custom message, such as a redirect to whatever webapp the SockJS server is a server for.