This commit is contained in:
Kristóf Tóth 2018-04-16 12:50:08 +02:00
parent 743fab366b
commit 22cdbaac2c

View File

@ -13,7 +13,7 @@ message:
ZeroMQ's sub-pub sockets use enveloped messages ZeroMQ's sub-pub sockets use enveloped messages
(http://zguide.zeromq.org/page:all#Pub-Sub-Message-Envelopes) (http://zguide.zeromq.org/page:all#Pub-Sub-Message-Envelopes)
and TFW also uses them internally. This means that on ZMQ sockets and TFW also uses them internally. This means that on ZMQ sockets
we always send the messages key separatley and then the actual we always send the messages key separately and then the actual
message (which contains the key as well) like so: message (which contains the key as well) like so:
socket.send_multipart([message['key'], message]) socket.send_multipart([message['key'], message])