Listen to the websocket and output events in the console
Output unparsed messages into index