wotpy.protocols.ws.enums¶
Enumeration classes related to the WebSockets server.
Classes
WebsocketErrors |
Enumeration of JSON RPC error codes. |
WebsocketMethods |
Enumeration of available websocket message actions. |
WebsocketSchemes |
Enumeration of Websocket schemes. |
-
class
wotpy.protocols.ws.enums.
WebsocketErrors
¶ Bases:
wotpy.utils.enums.EnumListMixin
Enumeration of JSON RPC error codes.
-
INTERNAL_ERROR
= -32603¶
-
INVALID_METHOD_PARAMS
= -32602¶
-
INVALID_REQUEST
= -32600¶
-
METHOD_NOT_FOUND
= -32601¶
-
PARSE_ERROR
= -32700¶
-
SUBSCRIPTION_ERROR
= -32000¶
-
-
class
wotpy.protocols.ws.enums.
WebsocketMethods
¶ Bases:
wotpy.utils.enums.EnumListMixin
Enumeration of available websocket message actions.
-
DISPOSE
= 'dispose'¶
-
INVOKE_ACTION
= 'invoke_action'¶
-
ON_EVENT
= 'on_event'¶
-
ON_PROPERTY_CHANGE
= 'on_property_change'¶
-
ON_TD_CHANGE
= 'on_td_change'¶
-
READ_PROPERTY
= 'read_property'¶
-
WRITE_PROPERTY
= 'write_property'¶
-
-
class
wotpy.protocols.ws.enums.
WebsocketSchemes
¶ Bases:
wotpy.utils.enums.EnumListMixin
Enumeration of Websocket schemes.
-
WS
= 'ws'¶
-
WSS
= 'wss'¶
-