OpenMined/PyDentity

Communications between messages_handler and local variables

Closed this issue · 0 comments

H4LL commented

Description

We want to be able to use the payload of the basic message protocol. Right now this is printed but it is difficult to place into a persistent variable;

USER = "empty"

def messages_handler(payload):
    connection_id = payload["connection_id"]
    USER = payload["content"]
    print("USER RESPONSE:", payload["content"], "\nCONNECTION_ID: "+connection_id)

When we call this function and print USER we still contains 'empty'. We need a way to bridge the communications gap between messages_handler and the USER variable.

Are you interested in working on this improvement yourself?

  • No, I am not.

Additional Context

Screenshot 2020-09-10 at 16 27 53
Screenshot 2020-09-10 at 16 28 59