you would need to do a lot of "hacks" to get that to work as it expects JSON coming in and it sends JSON to the client. hence that if you read that it requires a "front end" script that the new websockets plugin doesn't supply.
the websocket plugin as is has no JSON support
I guess if you wanted to you could use rex's hash table to read the JSON and process the out going messages to JSON by hand but it looks funky.
that setup with node expects stuff coming in to look like this
most novice users will find the new websocket plugin useless as its just a bare-bones wrapper around the websocket protocol and would be better off to stick with the socket.io version for now.