updated WebSocket example application