Hello,
I need help getting websocket_messaging.py to work. when I use it locally 
(127.0.0.1)
python websocket_messaging.py -k mykey -p 8888

---
<script>
       $(document).ready(function(){
          var data;
          
$.web2py.web2py_websocket('ws://127.0.0.1:8888/realtime/mygroup',function(e){data=eval('('+e.data+')')});
       });
</script>


it works. I tried to start it on an online server using screen, 
screen python websocket_messaging.py -k mykey -p 8888

---
<script>
       $(document).ready(function(){
          var data;
          
$.web2py.web2py_websocket('ws://url:8888/realtime/mygroup',function(e){data=eval('('+e.data+')')});
       });
</script>

that also worked except it only works when i try and contact it from my 
local app with the script the same as immediately above this statement.
when I try to load a page hosted online with the same script, it doesn't 
connect, any possible explanation/fix that I can use would be much 
appreciated.
Here's what I already tried.

I tried removing the port 888 from the part in the script so it looks like 
this
<script>
       $(document).ready(function(){
          var data;
          
$.web2py.web2py_websocket('ws://url/realtime/mygroup',function(e){data=eval('('+e.data+')')});
       });
</script>

I tried restarting websocket_messaging.py without the -p option.
both don't seem to solve the problem. how do I fix this please? I need help.

-- 
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