refactor: rename EndpointBase to SocketBase

Because 'endpoint' is also used in the messages, the name 'socket' is more descriptive.

ref: N25B-168
This commit is contained in:
Twirre Meulenbelt
2025-10-09 16:24:31 +02:00
parent 23805812d5
commit e9c6b918e0
4 changed files with 8 additions and 8 deletions

View File

@@ -14,11 +14,11 @@ def main_loop(context):
:param context: The ZeroMQ context to use.
:type context: zmq.Context
"""
# When creating endpoints, remember to add them to the endpoint list of the state to ensure they're deinitialized
# When creating sockets, remember to add them to the `sockets` list of the state to ensure they're deinitialized
main_receiver = MainReceiver(context)
state.endpoints.append(main_receiver)
# Define endpoints that can run on the main thread. These endpoints should not block for long (say 50 ms at most).
# Sockets that can run on the main thread. These sockets' endpoints should not block for long (say 50 ms at most).
receivers = [main_receiver]
poller = zmq.Poller()