Skip to content

"Messaging Protocol" sent incorrectly #5

@Jmallone

Description

@Jmallone

handler = message_handlers.get(message["name"])

In this piece of code above, the struct for var "message' doesn't have "name"
because in server.py, it pass different with "meta" and "message"

async def handle_connection(self, reader: StreamReader, writer: StreamWriter):

i'm fix it with:

message = message['message']
handler = message_handlers.get(message["name"]) 

added this above in line 38 in peers.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions