Websockets with IIS 8.5 on Windows Server

Has anyone here gotten Lucee 6 Websockets working on IIS 8.5 on a Windows Server 2022?

I have enabled WebSockets on Windows Server and on IIS, and also installed the latest 2.0.3 version of the WebSockets extension on Lucee 6.0, however I always get a “Websocket connection failed” error on the browser. I’m testing using the Lucee Websocket Echo test project which I found on github.

Is there any official documentation to get WebSockets working on Windows with IIS for Lucee? And yes, I have searched google for the few articles that appear about it, some old and some no longer work. One of them says that the Bonfire connector does not work on IIS, and others seem to claim that we need to use IIS as a reverse proxy to get it to work.

First test on lucee directly, IE 127.0.0.1:8888

The Websocket has its own protocol and I know Boncode don’t support it. If you want to setup IIS in front, you’ll need to bypass boncode somehow. I personally would try to route those connections regarding the ws:// protocol (and only those) directly to Lucee. But my experience on websockets is not much to give you a proven good advice.

Although I haven’t tried out the WebSockets on Lucee 6 specifically, I found the following posts helpful in getting the old extension working in Lucee <=5.

And as Terry_Whitney says, first test against Lucee directly using 127.0.0.1:8888 to confirm the extension works before moving onto IIS.

2 Likes