You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for every connection I want to store other variables...
in the class SimpleChat I added
class SimpleChat(WebSocket):
def __init__(self):
self.myvariable = "hello"
this does not work, with more research it looked like it should be more:
class SimpleChat(WebSocket):
def __init__(self):
super(SimpleChat, self).__init__() #tried also super(WebSocket, self).__init__()
self.myvariable = "hello" # possibly self['myvariable'] = "hello"
nothing seems to work, not sure where to go....
hoping a python guru comes to my assistance... :-)
The text was updated successfully, but these errors were encountered:
for every connection I want to store other variables...
in the class SimpleChat I added
nothing seems to work, not sure where to go....
hoping a python guru comes to my assistance... :-)
The text was updated successfully, but these errors were encountered: