As I build my websocket functionality, I occasionally need to re-register my endpoint listener components. However, when I call WebsocketRegister() after it’s been called the first time, I get the following error in my “websocket” log file:
Failed to register endpoint /ws/comments/{channel}: Multiple Endpoints may not be deployed to the same path [/ws/comments/{channel}] : existing endpoint was class net.twentyonesolutions.lucee.websocket.LuceeEndpoint and new endpoint is class net.twentyonesolutions.lucee.websocket.LuceeEndpoint
The only way I know of to re-register my endpoint listener components is to restart Lucee. Is there a better way?