This commit is contained in:
Kilton937342 2022-07-28 12:07:13 +02:00
parent 634a2b73e4
commit fbcb941eae

View File

@ -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):