fix syntax error at WebSocket API example

Just fix syntax error :)