Skip to content

Instantly share code, notes, and snippets.

@gardster
Created June 18, 2012 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gardster/2948273 to your computer and use it in GitHub Desktop.
Save gardster/2948273 to your computer and use it in GitHub Desktop.
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