Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created January 23, 2020 10:29
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 BMU-Verlag/a0907d66c15daad9665d4e592939e6e4 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/a0907d66c15daad9665d4e592939e6e4 to your computer and use it in GitHub Desktop.
def broadcast(sender, message):
for socket in all_sockets:
if socket != sender and socket != server_socket:
socket.send(message.encode('utf-8'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment