usually using the same method you'd do in web2py...
from gluon.contrib.websocket_messaging import websocket_send
websocket_send('http://127.0.0.1:8888',
'Hello World', 'mykey', 'mygroup')
On Saturday, January 3, 2015 9:27:17 PM UTC+1, Tito Garrido wrote:
>
> Hey Folks,
>
> I am studying websockets and I am wondering how could I post a message
> from a script that is running outside of web2py, like a celery task.
> Anybody has an small example?
>
> Thanks in advance!
>
> Tito
>
> --
>
> Linux User #387870
> .........____
> .... _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:_______
>
--
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.