jrief / django-websocket-redis

Websockets for Django applications using Redis as message queue
http://django-websocket-redis.awesto.com/
MIT License
896 stars 222 forks source link

rest-framework #197

Closed nux17 closed 8 years ago

nux17 commented 8 years ago

Hello,

I'm using django-rest-framework and want to implement your websocket module over it.

I can I manage to route a message to different views? I searched in the docs, but I can't find a real example of how to do this.

I would like to send something like { method: GET url : /users }

and sends me back users.

jrief commented 8 years ago

Hmmm, the RESTframework never had websockets in mind. What I would do is to use the REST Serializers without the REST Views. Then at least you get the benefits for serialization. In my opinion List- and Detail-Views, don't really make sense in a websocket context.