django-realtime icon indicating copy to clipboard operation
django-realtime copied to clipboard

I can't send message to channel

Open mirzadelic opened this issue 9 years ago • 1 comments

I need on save to send message:

    def post_save(self, obj, created=False):
        // send message to channel 'test'

Can't do with socket.emit doesn't know from where to import socket :/ can you give me example how can i do that?

mirzadelic avatar Aug 23 '14 12:08 mirzadelic

To be honest I don't actually know whether this code works with modern Django, gevent or gevent-socketio, I haven't looked at it for a long time and it is totally unsupported right now (I should probably put it in the readme).

Unfortunately I don't have capacity to help you at the moment.

jstasiak avatar Aug 25 '14 23:08 jstasiak