def on_close(self): publisher.publish("mud.connection.close", self)
def on_connect(self): publisher.publish("mud.connection.connect", self)