mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
39d4220814a05862dfb369b2d16064f10118895c
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
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
Languages
TypeScript
63.8%
JavaScript
36%