Skip to content

Conversation

@iifawzi
Copy link
Contributor

@iifawzi iifawzi commented Oct 17, 2022

Signed-off-by: iifawzi [email protected]

Hi, this PR is adding an option to avoid the added trailing slash to the path in the connection as has been done in the engine-client socketio/engine.io-client#694. Resolving socketio/socket.io-client#1550.

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Other information (e.g. related issues)

socketio/socket.io-client#1550

@iifawzi
Copy link
Contributor Author

iifawzi commented Oct 17, 2022

what about uServer, I think we need to update it too, right? and would love to know, what uServer is used for?

const path = (options.path || "/engine.io").replace(/\/$/, "") + "/";

darrachequesne pushed a commit that referenced this pull request Jan 10, 2023
The "addTrailingSlash" option allows to control whether a trailing
slash is added to the path of the HTTP requests:

- true (default): "/engine.io/"
- false: "/engine.io"

Related: socketio/engine.io-client@21a6e12

Signed-off-by: iifawzi <[email protected]>
@darrachequesne
Copy link
Member

Merged as d0fd474. Thanks 👍

@darrachequesne darrachequesne added this to the 6.3.0 milestone Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants