mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2026-10-07 21:28:31 +00:00
1 parent
6bcb3cbff4
commit
dafd66447f
1 file changed
-1
@@ -1,15 +0,0 @@
|
||||
import signal
|
||||
import zmq
|
||||
|
||||
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
|
||||
context = zmq.Context()
|
||||
|
||||
socket = context.socket(zmq.SUB)
|
||||
socket.connect('tcp://localhost:5678')
|
||||
socket.setsockopt(zmq.SUBSCRIBE, b'status')
|
||||
|
||||
while True:
|
||||
message = socket.recv_multipart()
|
||||
print(f'Received: {message}')
|
||||
Reference in new issue
Block a user