Skip to content

possible packet_type bug in packet.py #216

Closed

Description

@mattbanhamtektowr

was just trying to get fxcm.py to connect via socket_io via engineio. Whilst debugging, I think I've found a bug in packet.py. The code reads:
.......
else:
self.packet_type = int(encoded_packet[0])

However, the valid socket_io message I got back from the fxcm server was 96:0{........}
In other words the OPEN packet type isn't the first character of encoded_packet but the character after the colon.

Activity

  1. miguelgrinberg commented on Feb 16, 2021

    @miguelgrinberg
    Owner

    What version of the Socket.IO protocol does your server use? The 96: prefix feels a lot like the old encoding in the v3 version of the engine.io protocol. It's been removed in v4, so the current version of this package does not do that anymore. See https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4.

  2. Repository owner locked and limited conversation to collaborators on Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions