issue #1 - Example code for websocket server terminates immediately