Package core :: Module http :: Class ServerWebSocket |
[hide private]
[frames] | no frames]

# Class ServerWebSocket

source code

             object --+
                      |
     streams.ReadStream --+
                          |
             object --+   |
                      |   |
    streams.WriteStream --+
                          |
                  WebSocket --+
                              |
                             ServerWebSocket

Instances of this class are created when a WebSocket is accepted on the server. It extends WebSocket and adds methods to reject the WebSocket and an attribute for the path.

Instance Methods | [hide private]
__init__(self, websocket) | source code
reject(self) Reject the WebSocket. | source code
path(self) The path the websocket connect was attempted at. | source code
Inherited from `WebSocket`: `close`, `closed_handler`, `write_binary_frame`, `write_text_frame` Inherited from `streams.ReadStream`: `data_handler`, `end_handler`, `exception_handler`, `pause`, `resume` Inherited from `streams.ReadStream` (private): `_to_read_stream` Inherited from `streams.WriteStream`: `drain_handler`, `set_write_queue_max_size`, `write_buffer`, `write_queue_full` Inherited from `streams.WriteStream` (private): `_to_write_stream`

Class Variables | [hide private]
Inherited from `streams.WriteStream`: `write_queue_max_size`

Method Details | [hide private]

### __init__(self, websocket) (Constructor) | source code
Overrides: WebSocket.__init__

### reject(self) | source code
Reject the WebSocket. Sends 404 to client

### path(self) | source code
The path the websocket connect was attempted at. Decorators: `@property`