diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index 6b145e38..2b1931f7 100644 Binary files a/osinaweb/support/__pycache__/consumers.cpython-310.pyc and b/osinaweb/support/__pycache__/consumers.cpython-310.pyc differ diff --git a/osinaweb/support/consumers.py b/osinaweb/support/consumers.py index b5784c0a..2f4e8603 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -168,8 +168,21 @@ class TicketRoomConsumer(WebsocketConsumer): })) def modify_online_user(self): - print('hi') + event = { + 'type': 'user_connection_handler', + } + async_to_sync(self.channel_layer.group_send)( + self.ticket_number, event + ) + def user_connection_handler(self, event): + context = { + } + html = render_to_string("details_templates/partials/ticket-online-users.html", context=context) + self.send(text_data=json.dumps({ + 'event_type': 'user_status', + 'html': html + }))