Closed pacmac closed 10 years ago
Hi, is there a solution for this ?
Many Thanks
Hi, You need to modify your init() constructor to take the same parameters as WebSocket then you have to make sure you call its init() function.
class SimpleEcho(WebSocket):
def myfunc(self):
do something...
def __init__(self, server, sock, address):
self.myfunc()
WebSocket.__init__(self, server, sock, address)
I need to use an init function to initialize some variables and call a threaded function inside the simpleEcho class:
But whenever I add the init the server fails with an "bad file descriptor error"