Skip to content
Permalink

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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.4.1
Choose a base ref
...
head repository: socketio/socket.io
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.5.0
Choose a head ref
  • 17 commits
  • 51 files changed
  • 4 contributors

Commits on Jan 6, 2022

  1. chore: revert to lockfile v1

    Updating to v2 fails in the CI on Node.js 12 & 14 with the following
    error:
    
    > npm ERR! Error while executing:
    > npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/uNetworking/uWebSockets.js.git
    > npm ERR!
    > npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.113.3' to the list of known hosts.
    > npm ERR! git@github.com: Permission denied (publickey).
    > npm ERR! fatal: Could not read from remote repository.
    > npm ERR!
    > npm ERR! Please make sure you have the correct access rights
    > npm ERR! and the repository exists.
    > npm ERR!
    > npm ERR! exited with error code: 128
    
    So we will revert the change for now.
    darrachequesne committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    aa5312a View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2022

  1. docs: remove broken badges

    Related: #4242
    darrachequesne committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    af54565 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    37b6d8f View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2022

  1. Configuration menu
    Copy the full SHA
    02c87a8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2f96438 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2022

  1. Configuration menu
    Copy the full SHA
    0b7d70c View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2022

  1. feat: broadcast and expect multiple acks

    Syntax:
    
    ```js
    io.timeout(1000).emit("some-event", (err, responses) => {
      // ...
    });
    ```
    
    The adapter exposes two additional methods:
    
    - `broadcastWithAck(packets, opts, clientCountCallback, ack)`
    
    Similar to `broadcast(packets, opts)`, but:
    
    * `clientCountCallback()` is called with the number of clients that
      received the packet (can be called several times in a cluster)
    * `ack()` is called for each client response
    
    - `serverCount()`
    
    It returns the number of Socket.IO servers in the cluster (1 for the
    in-memory adapter).
    
    Those two methods will be implemented in the other adapters (Redis,
    Postgres, MongoDB, ...).
    
    Related:
    
    - #1811
    - #4163
    - socketio/socket.io-redis-adapter#445
    darrachequesne committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    8b20457 View commit details
    Browse the repository at this point in the history
  2. feat: add support for catch-all listeners for outgoing packets

    This is similar to `onAny()`, but for outgoing packets.
    
    Syntax:
    
    ```js
    socket.onAnyOutgoing((event, ...args) => {
      console.log(event);
    });
    ```
    darrachequesne committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    531104d View commit details
    Browse the repository at this point in the history
  3. refactor: make the protocol implementation stricter

    This commit handles several edge cases that were silently ignored
    before:
    
    - receiving several CONNECT packets during a session
    - receiving any packet without CONNECT packet first
    darrachequesne committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    0b35dc7 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2022

  1. Configuration menu
    Copy the full SHA
    9f75868 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2022

  1. Configuration menu
    Copy the full SHA
    d12aab2 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. Configuration menu
    Copy the full SHA
    be3d7f0 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2022

  1. Configuration menu
    Copy the full SHA
    1f03a44 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2022

  1. Configuration menu
    Copy the full SHA
    06e6838 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e1bb62 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    572133a View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2022

  1. chore(release): 4.5.0

    darrachequesne committed Apr 23, 2022
    Configuration menu
    Copy the full SHA
    8ecfcba View commit details
    Browse the repository at this point in the history
Loading