Extended Websocket example with better uuid generation and some stronger typing