MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / remove_handler

Method remove_handler

src/ext/sockjs/tornado/session.py:114–124  ·  view source on GitHub ↗

Remove active handler from the session `handler` Handler to remove

(self, handler)

Source from the content-addressed store, hash-verified

112 self.conn.on_open(self.conn_info)
113
114 def remove_handler(self, handler):
115 """Remove active handler from the session
116
117 `handler`
118 Handler to remove
119 """
120 # Attempt to remove another handler
121 if self.handler != handler:
122 raise Exception('Attempted to remove invalid handler')
123
124 self.handler = None
125
126 def close(self, code=3000, message='Go away!'):
127 """Close session or endpoint connection.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected