Advertisement
Guest User

Py_Socket

a guest
Apr 5th, 2018
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. from socketIO_client import SocketIO
  2.  
  3. def connect(*args):
  4.     print('connect ', args)
  5.  
  6. def logs(*args):
  7.     print('logs ', args)
  8.  
  9. def kills(*args):
  10.     print('kill ', args)
  11.  
  12. socketIO = SocketIO('https://scorebot-secure.hltv.org')
  13. socketIO.on('connect', connect)
  14. socketIO.connect()
  15. socketIO.on('log', logs)
  16. socketIO.on('kill', kills)
  17. socketIO.on('scoreboard', kills)
  18. socketIO.on('disconnect', kills)
  19. socketIO.emit('readyForMatch', {'token': '', 'listId': 2321727})
  20. socketIO.wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement