wotpy.protocols.ws.server
Class that implements the WebSockets server.
Classes
|
WebSockets binding server implementation. |
- class wotpy.protocols.ws.server.WebsocketServer(port=8081, ssl_context=None)
Bases:
BaseProtocolServerWebSockets binding server implementation. Builds a Tornado application that uses the WebsocketHandler handler to process WebSockets messages.
- DEFAULT_PORT = 8081
- property app
Tornado application property.
- build_base_url(hostname, thing)
Returns the base URL for the given Thing in the context of this server.
- build_forms(hostname, interaction)
Builds and returns a list with all Form that are linked to this server for the given Interaction.
- property is_secure
Returns True if this server is configured to use SSL encryption.
- property protocol
Protocol of this server instance. A member of the Protocols enum.
- property scheme
Returns the URL scheme for this server.
- async start(servient=None)
Starts the WebSockets server.
- async stop()
Stops the WebSockets server.