Fix sample with websocket