def destroy(self):
self.setOnMessageReceivedCallback(None)<EOL>self.setOnNodeConnectedCallback(None)<EOL>self.setOnNodeDisconnectedCallback(None)<EOL>self.setOnReadonlyNodeConnectedCallback(None)<EOL>self.setOnReadonlyNodeDisconnectedCallback(None)<EOL>for node in self._nodes | self._readonlyNodes:<EOL><INDENT>self.dropNode(node)<EOL><DEDENT>if self._server is not None:<EOL><INDENT>self._server.unbind()<EOL><DEDENT>for conn in self._unknownConnections:<EOL><INDENT>conn.disconnect()<EOL><DEDENT>self._unknownConnections = set()<EOL>
Destroy this transport