mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	refac: websocket
This commit is contained in:
		
							parent
							
								
									827326e1a2
								
							
						
					
					
						commit
						9657474a8d
					
				@ -192,9 +192,6 @@ async def connect(sid, environ, auth):
 | 
			
		||||
            # print(f"user {user.name}({user.id}) connected with session ID {sid}")
 | 
			
		||||
            await sio.emit("user-list", {"user_ids": list(USER_POOL.keys())})
 | 
			
		||||
            await sio.emit("usage", {"models": get_models_in_use()})
 | 
			
		||||
            return True
 | 
			
		||||
 | 
			
		||||
    return False
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@sio.on("user-join")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user