class documentation
class WebSocketResource(Resource): (source)
Constructor: WebSocketResource(factory)
A WebSocketResource is a Resource that presents a websocket listener. You can install it into any twisted web server resource hierarchy.
| Method | __init__ |
Create a WebSocketResource that will respond to incoming connections with the given WebSocketServerFactory. |
| Method | render_ |
This implementation of the GET HTTP method will respond to inbound websocket connections. |
| Instance Variable | factory |
Undocumented |
Inherited from Resource:
| Method | del |
Undocumented |
| Method | get |
Retrieve a 'child' resource from me. |
| Method | get |
Deprecated in favor of getChildForRequest. |
| Method | get |
Retrieve a static or dynamically generated child resource from me. |
| Method | get |
Undocumented |
| Method | get |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | put |
Register a static child. |
| Method | really |
Undocumented |
| Method | render |
Render a given resource. See IResource's render method. |
| Method | render_ |
Default handling of HEAD method. |
| Class Variable | allowed |
Undocumented |
| Class Variable | is |
Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource. |
| Class Variable | server |
Undocumented |
| Instance Variable | children |
Undocumented |
overrides
twisted.web.resource.Resource.__init__Create a WebSocketResource that will respond to incoming connections with the given WebSocketServerFactory.
| Parameters | |
factory:WebSocketServerFactory[ | The factory that will be used to respond to inbound websocket connections on appropriately formatted GET requests. |