Okay, will do Ramos. Thanks

On Monday, April 20, 2015 at 4:05:32 PM UTC+1, Ramos wrote:
>
> Maybe your online server platform is blocking websockets. 
> check it with your provider.
>
>
>
>
> 2015-04-20 16:02 GMT+01:00 Samuel Sowah <[email protected] 
> <javascript:>>:
>
>> So... I just read something on stackoverflow about that and I think I had 
>> that idea, just didn't know it was a thing. the i'm executing the 
>> websocket_messaging.py line from the same server though... not sure why 
>> that won't work, yet it works when I'm connecting from my local machine.
>>
>>
>> On Monday, April 20, 2015 at 3:58:46 PM UTC+1, Samuel Sowah wrote:
>>>
>>> I'm not aware. What exactly do you mean by that please?
>>>
>>> On Monday, April 20, 2015 at 3:53:24 PM UTC+1, Niphlod wrote:
>>>>
>>>> are you aware that websockets have the same limitation as ajax requests 
>>>> (same domain) ?
>>>>
>>>> On Monday, April 20, 2015 at 4:39:08 PM UTC+2, Samuel Sowah wrote:
>>>>>
>>>>> telnet http://official-notebook.com:8888
>>>>> telnet: could not resolve http://official-notebook.com:8888/telnet: 
>>>>> Name or service not known
>>>>>
>>>>> telnet official-notebook.com
>>>>> Trying 109.123.86.98...
>>>>> telnet: Unable to connect to remote host: Connection refused
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Monday, April 20, 2015 at 3:32:32 PM UTC+1, Ramos wrote:
>>>>>>
>>>>>> try to telnet to that url :8888 and see if your get a black screen
>>>>>>
>>>>>> 2015-04-20 15:15 GMT+01:00 Samuel Sowah <[email protected]
>>>>>> >:
>>>>>>
>>>>>>> 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 [email protected].
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>  -- 
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to