You can make up your own "protocol" ... rules for what gets sent back and forth. The simplest thing is to just use Strings. The workstation might send "REGISTER address" or "DEREGISTER address" at logoff. The hub might send "MESSAGE text". That's all up to you.
Have you run through the
Sun Network Tutorial? It does a great job of introducing messaging over sockets and shows how custom protocols can be as simple as the three keywords I used above.
BTW: What is your client? If it's a browser, you can run the client side code in an
applet, but that's not an ideal thing in the open world. My project does exactly that with captive corporate users where we control installation of the JRE and everything. If it's a fat client, you'll have far fewer problems.