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