Skip to content

TypeError('text argument must not be bytes') sending message #88

@mmm286

Description

@mmm286

Hi!
I'm tryng to construct websocket client and when I use:
ws.send_text("<open xmlns=\"urn:ietf:params:xml:ns:xmpp-framing\" version=\"1.0\" xml:lang=\"en\" to=\"wallapop.com\"/>")
It says me:

File "/home/pi/.local/lib/python2.7/site-packages/lomond/websocket.py", line 517, in send_text
   raise TypeError('text argument must not be bytes')
TypeError: text argument must not be bytes

could you help me please? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions