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.