Hi. I am trying to get the WebSockets extension working with Lucee in Docker. I have watched the videos.
I am following the Getting Started page from here:
Enables server WebSockets for Lucee via JSR-356 compliant servlet containers (e.g. Tomcat 8, Jetty 9.1, etc.) - GitHub - isapir/lucee-websocket: Enables server WebSockets for Lucee via JSR-356 comp...
and am confused by this requirement:
Save the jar file servlet-filter-utils-1.1.1.jar to the classpath
Where do I get that jar from? I am new to Lucee so I might be missing the obvious. On the other hand, the instructions are 5 years old so things might have changed.
Hmmm… I just found this:
Troubleshooting Lucee Websockets with IIS and ARR - #12 by Redtopia
which suggests WebSockets on Lucee is broken.
Is that the case?
Have you seen this example?
So I’ve played a little with this extension, and everything seems to go pretty well just as described in Igal Sapirs instructions.
What I understand from your post is that in your configuration you can access Lucee on port 80, but not on port 8888? That means that, or you have:
a webserver (like Apache or IIS)) in front of Lucee and Lucee is not running on its default port:8888, or
Lucee is running as stand alone on port:80
To identify that, please look for the port Lucee/Tomcat is running o…
I’ve never used Websockets extensively, just some tests, so others will probably have more experience to tell you.
Also: IIS won’t work with boncode to connect to websocket. See
BonCode Apache Tomcat AJP 1.3 Connector
Hope this helps a little.
@andreas. No, I missed that one. I will have a look.
Also check out this pull request with improved documentation:
So, here is a repo with some working code based on the Chat example and the various updates over the years.
@andreas and @psarin.
I hope that helps others.
@flowt-au for the great write up. Going to try it out as soon as I can.
Has anyone been able to get websockets working with commandbox? Keep getting a HTTPSessionFilter not initialized error, even though have the jar file and config in web.xml per instructions
Websockets do not work with the latest version of Lucee. They stopped working when Lucee starting shipping with Tomcat 9 (not sure which version). Igal has basically told me he is not interested in doing any work on his extension to make them work. I’ve heard chatter that websockets will be supported in Lucee 6, but I haven’t had any luck getting more information about when/if that is the case, and if it is, whether it would be offered as a Lucee 5 extension.
Might want to follow this websocket issue I created:
[LDEV-3815] - Lucee
I am running websockets successfully on Windows using Tomcat 9.0.46 and Lucee 220.127.116.11.
@Redtopia - check out the following where I try to detail my use of a proxy from the websocket listener. It has been working very well for me and may solve some of you issues: Multiple Endpoints may not be deployed to the same path · Issue #9 · isapir/lucee-websocket · GitHub
@psarin - I have not tried Commandbox however…
@martin , we have been able to use Websockets with Lucee on Apache Tomcat/9.0.56. On this setup, it’s been working pretty well and has been stable since using @martin 's code for the multiple endpoints may not be deployed issue.
With regards to Websockets on Commandbox/Lucee, still not able to get it working. Seems to be stuck on trying to upgrade the connection.