wotpy.protocols.ws.server¶
Class that implements the WebSockets server.
Classes
WebsocketServer([port, ssl_context]) |
WebSockets binding server implementation. |
-
class
wotpy.protocols.ws.server.WebsocketServer(port=81, ssl_context=None)¶ Bases:
wotpy.protocols.server.BaseProtocolServerWebSockets binding server implementation. Builds a Tornado application that uses the WebsocketHandler handler to process WebSockets messages.
-
DEFAULT_PORT= 81¶
-
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.
-
is_secure¶ Returns True if this server is configured to use SSL encryption.
-
protocol¶ Protocol of this server instance. A member of the Protocols enum.
-
scheme¶ Returns the URL scheme for this server.
-
start()¶ Starts the WebSockets server.
-
stop()¶ Stops the WebSockets server.
-