test
This commit is contained in:
parent
634a2b73e4
commit
fbcb941eae
@ -19,11 +19,12 @@ class RoomConsumer(AsyncWebsocketConsumer):
|
||||
self.user = None
|
||||
try:
|
||||
self.room = await self.get_room()
|
||||
|
||||
print('ACCEPTED')
|
||||
await self.accept()
|
||||
await self.send(json.dumps({'type': 'connect', "clientId": self.clientId}))
|
||||
|
||||
except:
|
||||
print('REJECTED')
|
||||
await self.close()
|
||||
|
||||
async def receive(self, text_data):
|
||||
|
Loading…
Reference in New Issue
Block a user