Created
June 18, 2012 13:05
-
-
Save gardster/2948273 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zmq | |
context = zmq.Context() | |
socket = context.socket(zmq.PUB) | |
socket.bind("tcp://127.0.0.1:5000") #здесь заменить на адрес и порт сервера | |
#После обновления | |
msg = "jams {}".format(transaction_id) #jams с пробелом перед номером обязтельны | |
socket.send( msg ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment