You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env python |
|
|
|
import socket, time, interface |
|
|
|
i = interface.AsynchronousInterface('ecdsa.org', 50001) |
|
i.start_session([],"blocks") |
|
|
|
while True: |
|
r = i.responses.get(True, 100000000000) |
|
if r.get('method')=='numblocks.subscribe': print r.get('result')
|
|
|