Typo fixed
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ import uuid
|
||||
from aiohttp import web
|
||||
from server import PromptServer
|
||||
|
||||
from .lib.WebSocketManager import WebSocketManager
|
||||
from .classes.WebSocketManager import WebSocketManager
|
||||
|
||||
DATA_FOLDER = './nexus'
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
class WebSocketManager:
|
||||
def __init__(self):
|
||||
self.sockets = {}
|
||||
|
||||
def get(self, id):
|
||||
return self.sockets.get(id)
|
||||
|
||||
def set(self, id, ws):
|
||||
self.sockets[id] = ws
|
||||
|
||||
def delete(self, id):
|
||||
if id in self.sockets:
|
||||
del self.sockets[id]
|
||||
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user