Unbuffered.
This commit is contained in:
		
							parent
							
								
									5fd03efc30
								
							
						
					
					
						commit
						780c178d95
					
				| @ -36,5 +36,5 @@ class SocketService(BaseService): | |||||||
|     async def delete(self, ws): |     async def delete(self, ws): | ||||||
|         try: |         try: | ||||||
|             self.sockets.remove(ws)  |             self.sockets.remove(ws)  | ||||||
|         except IndexError: |         except : | ||||||
|             pass  |             pass  | ||||||
|  | |||||||
| @ -149,7 +149,8 @@ class RPCView(BaseView): | |||||||
|                 await rpc(msg.json()) |                 await rpc(msg.json()) | ||||||
|             elif msg.type == web.WSMsgType.ERROR: |             elif msg.type == web.WSMsgType.ERROR: | ||||||
|                 print(f"WebSocket exception {ws.exception()}") |                 print(f"WebSocket exception {ws.exception()}") | ||||||
| 
 |                 await self.services.socket.delete(ws) | ||||||
|  |             elif msg.type == web.WSMsgType.CLOSE: | ||||||
|                 await self.services.socket.delete(ws) |                 await self.services.socket.delete(ws) | ||||||
|         print("WebSocket connection closed") |         print("WebSocket connection closed") | ||||||
|         return ws |         return ws | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user