I have published a tutorial that shows how to write a multi-channel Chat Server with the Lucee WebSocket Extension at:
The code for the example available at