Lucee Websockets - Getting Started

Поделиться
HTML-код
  • Опубликовано: 8 дек 2024
  • In this video I show how to get started with the Lucee WebSockets Extension.
    RUclips has disabled annotations, so please note the following:
    @ 7:15 I obviously meant `cfscript` and not `script`, as this is server-side code and not javascript.
    @ 7:45 I meant `new EchoListener()`, obviously ;)
    @ 17:15 I said "roundtrip", which is still correct for the statement I made, but in the example shown I was only counting the milliseconds between sending the message from JavaScript and processing it in EchoListener.onMessage()
    See also github.com/isa...

Комментарии • 4

  • @paashaasXD
    @paashaasXD 7 лет назад

    Hello, good tutorial first of all! It sucks how little information is known when working with websockets through lucee. I followed your tutorial/github/wiki and had to overcome many errors. Now I've it working on the server of our company through localhost. I can do the same in the console of the browser and successfully send a message and get it back. Now I try the same from outside the server, but then I get an connection_timeout error. I have also installed websockets on IIS but I'm not really great with this kind of software. I'm wondering that maybe you can point me in the right direction how to get this working outside localhost. Thanks!

    • @isapir
      @isapir  7 лет назад

      First of all, thank you. It's best to ask questions at dev.lucee.org/ since I monitor that more frequently than the comments here, and it can benefit others who experience similar issues. If you can connect locally, but not remotely, then there's a very good chance that the problem is with a firewall that either blocks the request, or the web server configuration that does not forward the Upgrade to WebSocket directive of the http request to the Servlet container.

    • @paashaasXD
      @paashaasXD 7 лет назад

      Ah thank you for your quick response, I also had an idea is something about firewalls/ports blocking the connection. I also asked the question on my favorite website stackoverflow: stackoverflow.com/questions/46489727/lucee-5-0-websocket-outside-localhost. I'm going to check tomorrow morning if I can figure out what it is, and I will post the answer on stackoverflow. Thanks again, I would really like the websockets to work!