ANN: django-socketio 0.1.0 released

93 views
Skip to first unread message

Stephen McDonald

unread,
Aug 13, 2011, 12:06:45 AM8/13/11
to django...@googlegroups.com
Hi all,

Our Django Dash entry http://drawnby.jupo.org made extensive use of Socket.IO (cross-browser websockets) and born out of that I've created a new django-socketio package which is now available:


Here's an overview from the docs:

django-socketio is a BSD licensed Django application that brings together a variety of features that allow you to use WebSockets seamlessly with any Django project. django-socketio was inspired by Cody Soyland's introductory blog post on using Socket.IO and gevent with Django, and made possible by the work of Jeffrey Gelens' gevent-websocket and gevent-socketio packages. The features provided by django-socketio are:

- Installation of required packages from PyPI
- A management command for running gevent's pywsgi server with auto-reloading capabilities
- A channel subscription and broadcast system that extends Socket.IO allowing WebSockets and events to be partitioned into separate concerns
- A signals-like event system that abstracts away the various stages of a Socket.IO request
- The required views, urlpatterns, templatetags and tests for all the above

Cheers,
Steve

--
Stephen McDonald

francescortiz

unread,
Aug 15, 2011, 3:39:19 AM8/15/11
to Django users
Looks really good. Thank you.

On Aug 13, 6:06 am, Stephen McDonald <stephen...@gmail.com> wrote:
> Hi all,
>
> Our Django Dash entryhttp://drawnby.jupo.orgmade extensive use of

rahul jain

unread,
Oct 7, 2012, 8:35:48 PM10/7/12
to django...@googlegroups.com
Hi Stephen,

I am having issues with the installation. Is this project still
active? is there any goggle group?

I just downloaded the latest file. Then i tried running the example
chat application. I can see the messages from the client.
However, events inside event.py are never getting fired. I think my
setup is not able to load "events.py". I inserted some print
statements in both these functions but they never getting printed out

@events.on_message(channel="^room-")
def message(request, socket, context, message):

@events.on_finish(channel="^room-")
def finish(request, socket, context):

Please can you let me know how to fix this?

My django version:

(1, 3, 1, 'final', 0)

Messages from the client after running on python manage.py runserver_socketio

127.0.0.1 - - [2012-10-07 17:02:13] "Socket.IO message: {u'action':
u'start', u'room': 2, u'name': u'test'}"
127.0.0.1 - - [2012-10-07 17:02:54] "Socket.IO message: {u'action':
u'start', u'room': 2, u'name': u'test'}"
127.0.0.1 - - [2012-10-07 17:03:05] "Socket.IO subscribe: room-2"
127.0.0.1 - - [2012-10-07 17:03:16] "Socket.IO subscribe: room-2"
127.0.0.1 - - [2012-10-07 17:04:23] "Socket.IO subscribe: room-2"
127.0.0.1 - - [2012-10-07 17:06:45] "Socket.IO subscribe: room-2"
127.0.0.1 - - [2012-10-07 17:06:50] "Socket.IO message: {u'action':
u'start', u'room': 2, u'name': u'test'}"
127.0.0.1 - - [2012-10-07 17:07:52] "Socket.IO subscribe: room-2"

Appreciate your time!

Thanks.

RJ
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

rahul jain

unread,
Oct 9, 2012, 4:58:37 PM10/9/12
to django...@googlegroups.com, steph...@gmail.com
Can someone please let me know how to fix this?
Reply all
Reply to author
Forward
0 new messages