You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# send(f"{msg.date} - {trySessions[msg.user_id-1]}\n{msg.data}", broadcast=True) #Broadcast = True makes it available to all users, if it was false it would send it to the person who sent the message to you
saveMessage(msg)
send(msg, broadcast = True)
@socketio.on("p_message")
def privateMessage(msg, receiver):
print(f"MSG: {msg}, TYPE: {type(msg)}")
saveMessage(msg, receiver = receiver)
# @socketio.on("delete")
# def delete(user):
# deleteMessage(user)
if __name__ == '__main__':
socketio.run(app,debug=True, port="80")
## TODO: When creating the interface for the user (when you click on a user) it should say "I speak" + fav_language