Simple websocket server example (in 121 lines of code)