-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: jhonrputra/socket.io
base: master
head repository: socketio/socket.io
compare: master
Commits on Oct 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4974e90 - Browse repository at this point
Copy the full SHA 4974e90View commit details
Commits on Oct 11, 2021
-
chore: bump engine.io to version 6.0.0
Release notes: https://github.com/socketio/engine.io/releases/tag/6.0.0 Diff: socketio/engine.io@5.2.0...6.0.0
Configuration menu - View commit details
-
Copy full SHA for eb5fdbd - Browse repository at this point
Copy the full SHA eb5fdbdView commit details
Commits on Oct 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 60edecb - Browse repository at this point
Copy the full SHA 60edecbView commit details
Commits on Oct 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 95810aa - Browse repository at this point
Copy the full SHA 95810aaView commit details
Commits on Oct 16, 2021
-
fix: fix server attachment (socketio#4127)
The check excluded an HTTPS server from being properly attached. Related: socketio#4124
Configuration menu - View commit details
-
Copy full SHA for 0ef2a4d - Browse repository at this point
Copy the full SHA 0ef2a4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ccc5ec3 - Browse repository at this point
Copy the full SHA ccc5ec3View commit details
Commits on Oct 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 44e20ba - Browse repository at this point
Copy the full SHA 44e20baView commit details -
fix: fix race condition in dynamic namespaces (socketio#4137)
Using an async operation with `io.use()` could lead to the creation of several instances of a same namespace, each of them overriding the previous one. Example: ```js io.use(async (nsp, auth, next) => { await anOperationThatTakesSomeTime(); next(); }); ``` Related: socketio#4136
Configuration menu - View commit details
-
Copy full SHA for 9d86397 - Browse repository at this point
Copy the full SHA 9d86397View commit details
Commits on Nov 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ed8483d - Browse repository at this point
Copy the full SHA ed8483dView commit details -
feat: add type information to
socket.data
(socketio#4159)Usage: ```js interface SocketData { name: string; age: number; } const io = new Server<ClientToServerEvents, ServerToClientEvents, InterServerEvents, SocketData>(); io.on("connection", (socket) => { socket.data.name = "john"; socket.data.age = 42; }); ```
Configuration menu - View commit details
-
Copy full SHA for fe8730c - Browse repository at this point
Copy the full SHA fe8730cView commit details
Commits on Nov 12, 2021
-
feat: add an implementation based on uWebSockets.js
Usage: ```js const { App } = require("uWebSockets.js"); const { Server } = require("socket.io"); const app = new App(); const server = new Server(); server.attachApp(app); app.listen(3000); ``` The Adapter prototype is updated so we can benefit from the publish functionality of uWebSockets.js, so this will apply to all adapters extending the default adapter. Reference: https://github.com/uNetworking/uWebSockets.js Related: - socketio#3601 - socketio/engine.io#578
Configuration menu - View commit details
-
Copy full SHA for c0d8c5a - Browse repository at this point
Copy the full SHA c0d8c5aView commit details -
fix: only set 'connected' to true after middleware execution
The Socket instance is only considered connected when the "connection" event is emitted, and not during the middleware(s) execution. ```js io.use((socket, next) => { console.log(socket.connected); // prints "false" next(); }); io.on("connection", (socket) => { console.log(socket.connected); // prints "true" }); ``` Related: socketio#4129
Configuration menu - View commit details
-
Copy full SHA for 02b0f73 - Browse repository at this point
Copy the full SHA 02b0f73View commit details
Commits on Nov 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2da8210 - Browse repository at this point
Copy the full SHA 2da8210View commit details -
`srv.close()` only closes the underlying HTTP server, but this does not terminate the existing WebSocket connections. Reference: https://nodejs.org/api/http.html#serverclosecallback
Configuration menu - View commit details
-
Copy full SHA for b7213e7 - Browse repository at this point
Copy the full SHA b7213e7View commit details -
Usage: ```js socket.timeout(5000).emit("my-event", (err) => { if (err) { // the client did not acknowledge the event in the given delay } }); ```
Configuration menu - View commit details
-
Copy full SHA for f0ed42f - Browse repository at this point
Copy the full SHA f0ed42fView commit details
Commits on Nov 18, 2021
-
fix: prevent double ack when emitting with a timeout
The ack was not properly removed upon timeout, and could be called twice. Related: socketio@f0ed42f
Configuration menu - View commit details
-
Copy full SHA for b839a3b - Browse repository at this point
Copy the full SHA b839a3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f11c47 - Browse repository at this point
Copy the full SHA 0f11c47View commit details
Commits on Nov 24, 2021
-
docs: simplify nginx cluster example
- remove useless Dockerfile - clean format - migrate to @socket.io/redis-adapter
Configuration menu - View commit details
-
Copy full SHA for 2071a66 - Browse repository at this point
Copy the full SHA 2071a66View commit details
Commits on Nov 30, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e5897dd - Browse repository at this point
Copy the full SHA e5897ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a70f63 - Browse repository at this point
Copy the full SHA 7a70f63View commit details
Commits on Dec 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c196689 - Browse repository at this point
Copy the full SHA c196689View commit details
Commits on Dec 28, 2021
-
chore: add types to exports field to be compatible with nodenext modu…
…le resolution (socketio#4228) See [1] for detail, in `nodenext` module resolution it requires a `types` field in `exports` with full filename including extension. [1]: microsoft/TypeScript#46770 (comment)
Configuration menu - View commit details
-
Copy full SHA for 51784d0 - Browse repository at this point
Copy the full SHA 51784d0View commit details
Commits on Jan 4, 2022
-
fix(typings): pass
SocketData
type to custom namespaces (socketio#4233) The `SocketData` type was only available on the main namespace. Related: socketio#4229 See also: socketio@fe8730c
Configuration menu - View commit details
-
Copy full SHA for f2b8de7 - Browse repository at this point
Copy the full SHA f2b8de7View commit details
Commits on Jan 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c840bad - Browse repository at this point
Copy the full SHA c840badView commit details -
refactor(typings): export Event type (socketio#4215)
So that it can be used by the end users: ```ts const myMiddleware = ([eventName, ...args]: Event, next: (err?: Error) => void) => { console.log(eventName); // inferred as string next(); } io.on("connection", (socket) => { socket.use(myMiddleware); }); ```
Configuration menu - View commit details
-
Copy full SHA for fc82e44 - Browse repository at this point
Copy the full SHA fc82e44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bf5d92 - Browse repository at this point
Copy the full SHA 3bf5d92View commit details
Commits on Jan 6, 2022
-
fix(types): make
RemoteSocket.data
type safe (socketio#4234)Related: - socketio#4229 - socketio@fe8730c
Configuration menu - View commit details
-
Copy full SHA for 770ee59 - Browse repository at this point
Copy the full SHA 770ee59View commit details -
Configuration menu - View commit details
-
Copy full SHA for c82a4bd - Browse repository at this point
Copy the full SHA c82a4bdView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for aa5312a - Browse repository at this point
Copy the full SHA aa5312aView commit details
Commits on Jan 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for af54565 - Browse repository at this point
Copy the full SHA af54565View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37b6d8f - Browse repository at this point
Copy the full SHA 37b6d8fView commit details
Commits on Jan 25, 2022
-
fix(typings): ensure compatibility with TypeScript 3.x (socketio#4259)
Labeled tuple elements were added in TypeScript 4.0. Reference: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#labeled-tuple-elements Related: socketio@44e20ba
Configuration menu - View commit details
-
Copy full SHA for 02c87a8 - Browse repository at this point
Copy the full SHA 02c87a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f96438 - Browse repository at this point
Copy the full SHA 2f96438View commit details
Commits on Jan 12, 2023
-
docs(examples): update docker-compose.yml (socketio#4594)
Updated docker compose to be in line with current practices. Reference: https://docs.docker.com/compose/
Configuration menu - View commit details
-
Copy full SHA for c2858e9 - Browse repository at this point
Copy the full SHA c2858e9View commit details
Commits on Oct 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f3ea96e - Browse repository at this point
Copy the full SHA f3ea96eView commit details
There are no files selected for viewing