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: 3.1.0
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: 3.1.1
Choose a head ref
  • 10 commits
  • 38 files changed
  • 5 contributors

Commits on Jan 15, 2021

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

Commits on Jan 17, 2021

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

Commits on Jan 20, 2021

  1. ci: add Node.js 15 (#3765)

    Octalbyte authored Jan 20, 2021
    Configuration menu
    Copy the full SHA
    10aafbb View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2021

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

Commits on Jan 31, 2021

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

Commits on Feb 2, 2021

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

Commits on Feb 3, 2021

  1. Configuration menu
    Copy the full SHA
    4f2e9a7 View commit details
    Browse the repository at this point in the history
  2. fix: properly parse the CONNECT packet in v2 compatibility mode

    In Socket.IO v2, the Socket query option was appended to the namespace
    in the CONNECT packet:
    
    {
      type: 0,
      nsp: "/my-namespace?abc=123"
    }
    
    Note: the "query" option on the client-side (v2) will be found in the
    "auth" attribute on the server-side:
    
    ```
    // client-side
    const socket = io("/nsp1", {
      query: {
        abc: 123
      }
    });
    socket.query = { abc: 456 };
    
    // server-side
    const io = require("socket.io")(httpServer, {
      allowEIO3: true // enable compatibility mode
    });
    
    io.of("/nsp1").on("connection", (socket) => {
      console.log(socket.handshake.auth); // { abc: 456 } (the Socket query)
      console.log(socket.handshake.query.abc); // 123 (the Manager query)
    });
    
    More information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/#Add-a-clear-distinction-between-the-Manager-query-option-and-the-Socket-query-option
    
    Related: #3791
    darrachequesne committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    6f4bd7f View commit details
    Browse the repository at this point in the history
  3. chore(release): 3.1.1

    darrachequesne committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    12221f2 View commit details
    Browse the repository at this point in the history
Loading