documentation for websocket example