A server that serves a webpage, its resources, and some data.
https://hello-websockets-json.cyberspace.app/
Binary version:
https://github.com/pschroen/hello-websockets-binary
Mr.doob's Multiuser Sketchpad rework:
https://github.com/pschroen/multiuser-sketchpad
This is a starter app of the original websockets implementation from Multiuser Fluid:
https://github.com/pschroen/multiuser-fluid
I like this version for its simplicity with very minimal code in JSON format, while still supporting an event-based message structure for larger applications.