bovine.types
ServerSentEvent
dataclass
A server sent event as defined in
Event Source Interface
<https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events>
_.
This is used by the event_source function
of the BovineClient.
Source code in bovine/bovine/types.py
encode()
Encodes the server sent event as bytes to send to the client.
Source code in bovine/bovine/types.py
parse(raw)
staticmethod
parse_utf8(raw)
staticmethod
Parses utf-8 encoded string to ServerSentEvent
Source code in bovine/bovine/types.py
Visibility
Bases: Enum
Defines the visiblity of an object. Currently only used for Actor, where endpoints are hidden from anyone by the owner.