dpallot / simple-websocket-server

A python based websocket server that is simple and easy to use.
951 stars 319 forks source link

handleClose triggered on client connect #50

Closed trendal closed 7 years ago

trendal commented 7 years ago

Using the SSL SimpleChat class, I get a handleClose event on every client connect. So it of course errors with: ValueError: list.remove(x): x not in list this error was mentioned in the issue listed by vusdo.

An easy work around is: def handleClose(self): if self in clients: clients.remove(self) but it still shouldn't be running handleClose when a client connects. I have confirmed the connection is NOT being closed from the client (javascript).

dpallot commented 7 years ago

Handled in #52