WebSocket example for Device to control web page or play a game.