def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) Protocol.connectionLost(self, reason)