feat: implement negotiation

By implementing SocketBase and adding the socket to the state, the negotiation will automatically give the right endpoints.

ref: N25B-168
This commit is contained in:
Twirre Meulenbelt
2025-10-13 22:06:27 +02:00
parent 7cfa6b44e8
commit c6916470e9
5 changed files with 86 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ class ReceiverBase(SocketBase, object):
:param message: The message to handle.
:type message: dict
:return: A response message.
:rtype: dict
:return: A response message or None if this type of receiver doesn't publish.
:rtype: dict | None
"""
return {"endpoint": "error", "data": "The requested receiver is not implemented."}
raise NotImplementedError()