diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index 13937808..e18e7176 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 21975bec..6654dd31 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -180,8 +180,15 @@ class TicketRoomConsumer(WebsocketConsumer): ) def user_connection_handler(self, event): - print('hi') - + context = { + 'connections': event['connections'], + 'user': event['user'] + } + html = render_to_string("details_templates/partials/recently-online.html", context=context) + self.send(text_data=json.dumps({ + 'event_type': 'user_status', + 'html': html + }))