-
Notifications
You must be signed in to change notification settings - Fork 3k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: socketio/socket.io-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.0.0-rc2
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: socketio/socket.io-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.0.0-rc3
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 6 commits
- 12 files changed
- 1 contributor
Commits on Oct 17, 2020
-
A volatile packet will be dropped if: - the socket is not connected - the low-level transport is not ready (for example, a HTTP POST request is already pending) Syntax: ```js socket.volatile.emit("volatile event", "might or might not be sent"); ```
Configuration menu - View commit details
-
Copy full SHA for 7ddad2c - Browse repository at this point
Copy the full SHA 7ddad2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f3cbe98 - Browse repository at this point
Copy the full SHA f3cbe98View commit details
Commits on Oct 25, 2020
-
feat: add bundle with msgpack parser
Pros: - events with binary content are sent as 1 WebSocket frame (instead of 2 with the default parser) - payloads with lots of numbers should be smaller Cons: - no IE9 support (https://caniuse.com/mdn-javascript_builtins_arraybuffer) - a slightly bigger bundle size (61.1 vs 59.9 KB) Source: https://github.com/darrachequesne/socket.io-msgpack-parser
Configuration menu - View commit details
-
Copy full SHA for 71d6048 - Browse repository at this point
Copy the full SHA 71d6048View commit details
Commits on Oct 26, 2020
-
feat: add support for catch-all listeners
Inspired from EventEmitter2 [1] The API is similar to the one on the server-side: ```js socket.onAny((event, ...args) => {}); socket.prependAny((event, ...args) => {}); socket.offAny(); // remove all listeners socket.offAny(listener); const listeners = socket.listenersAny(); ``` [1]: https://github.com/EventEmitter2/EventEmitter2
Configuration menu - View commit details
-
Copy full SHA for 55f464f - Browse repository at this point
Copy the full SHA 55f464fView commit details -
refactor: rename ERROR to CONNECT_ERROR
The meaning is not modified: this packet type is still used by the server when the connection to a namespace is refused. Breaking change: the Socket instance will now emit a "connect_error" event instead of "error" (which is not a reserved event anymore) ```js // before socket.on("error", () => {}); // after socket.on("connect_error", () => {}); ```
Configuration menu - View commit details
-
Copy full SHA for 13e1db7 - Browse repository at this point
Copy the full SHA 13e1db7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9127ce - Browse repository at this point
Copy the full SHA a9127ceView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 3.0.0-rc2...3.0.0-rc3