wotpy.protocols.ws.enums
Enumeration classes related to the WebSockets server.
Classes
Enumeration of JSON RPC error codes. |
|
Enumeration of available websocket message actions. |
|
Enumeration of Websocket schemes. |
- class wotpy.protocols.ws.enums.WebsocketErrors
Bases:
EnumListMixinEnumeration 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:
EnumListMixinEnumeration 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:
EnumListMixinEnumeration of Websocket schemes.
- WS = 'ws'
- WSS = 'wss'