This Java program was very useful to get started with websockets and verify that my Hubitat eventsocket works just fine. Alas, I don't speak Java. Here's a little Perl script that does the same thing, dumping in raw JSON format: