Created
January 23, 2020 10:29
-
-
Save BMU-Verlag/a0907d66c15daad9665d4e592939e6e4 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
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