Damien Arrachequesne 39d4220814 refactor(cluster): catch publish errors
Note: the current API does not currently allow the user to handle those
errors (and retry, for example). This might be worth investigating for
the next major version, maybe something like:

```js
try {
  await io.emit("hello");
} catch (e) {
  // something went wrong
}
```

Related: https://github.com/socketio/socket.io-mongo-adapter/issues/15
2024-02-20 16:49:12 +01:00
2020-09-25 23:01:42 +02:00
2023-01-12 08:09:40 +01:00
2015-04-02 14:55:54 -07:00
2020-10-20 14:22:57 +02:00
2020-09-25 23:01:42 +02:00

socket.io-adapter

Default socket.io in-memory adapter class.

Compatibility table:

Adapter version Socket.IO server version
1.x.x 1.x.x / 2.x.x
2.x.x 3.x.x

How to use

This module is not intended for end-user usage, but can be used as an interface to inherit from other adapters you might want to build.

As an example of an adapter that builds on top of this, please take a look at socket.io-redis.

License

MIT

Description
No description provided
Readme MIT 43 MiB
Languages
TypeScript 63.8%
JavaScript 36%