MyGit

4.5.0

socketio/socket.io

版本发布时间: 2022-04-25 04:19:58

socketio/socket.io最新发布版本:2.5.1(2024-06-19 17:36:33)

Bug Fixes

Features

This is similar to onAny(), but for outgoing packets.

Syntax:

socket.onAnyOutgoing((event, ...args) => {
  console.log(event);
});

Syntax:

io.timeout(1000).emit("some-event", (err, responses) => {
  // ...
});

So that clients in HTTP long-polling can decide how many packets they have to send to stay under the maxHttpBufferSize value.

This is a backward compatible change which should not mandate a new major revision of the protocol (we stay in v4), as we only add a field in the JSON-encoded handshake data:

0{"sid":"lv_VI97HAXpY6yYWAAAC","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":5000,"maxPayload":1000000}

Links:

相关地址:原始地址 下载(tar) 下载(zip)

查看:2022-04-25发行的版本