fix syntax error at WebSocket API example