I have tried the websocket_messaging (gluon/contrib/websocket_messaging.py)
on a Windows 10 laptop - it works very fine!

The next step was an impementation on a Linux machine (Ubuntu 14.04.4, last
Web2py version 2.14.6)

The line

websocket_send('http://localhost:8888', form.vars.message, 'mykey',
'mygroup')


​works, because after entering "aa" the tornado servers send something like
​


1474441282.49:MESSAGE to mygroup:aa


to the console.

But the javascript console shows an error:

WebSocket connection to 'ws://localhost:8888/realtime/mygroup' failed:
Error in connection establishment:
net::ERR_CONNECTION_REFUSEDweb2py_websocket @ web2py.js:458(anonymous
function) @ index:96j @ jquery.js:2fireWith @ jquery.js:2ready @
jquery.js:2J @ jquery.js:2



​What is wrong? Any ideas?
Regards, Martin

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to