Remove active handler from the session `handler` Handler to remove
(self, handler)
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected