Lucee Websockets-入門



在此視頻中,我演示了如何開始使用Lucee WebSockets Extension。 Youtube已禁用注釋,因此請注意以下幾點:* @ 7:15我顯然是指`cfscript`而不是`script`,因為這是伺服器端代碼而不是javascript。 * @ 7:45我的意思是顯然是`new EchoListener()`)* @ 17:15我說的是「往返」,這對於我的聲明仍然是正確的,但是在所示的示例中,我只計算了之間的毫秒數從JavaScript發送消息並在EchoListener.onMessage()中進行處理,另請參見https://github.com/isapir/lucee-websocket。

2 comments
  1. I followed the video and cannot get the WebsocketRegister() function to work. It says there is no component. I would say your install instructions are a little confusing. It says all you have to do is what you have in the video. But those steps do not work. There is not enough informaion in the wiki to follow the hand install instructions.

  2. 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!

Comments are closed.