Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add init() and close() methods
These extension points may be used by another adapter, in order to open or close a connection to a database for example. In Socket.IO v2, the join() method did accept a callback: ```js socket.join("room1", () => { io.to("room1").emit("hello"); }); ``` Depending on the adapter, it may now return a promise: ```js await socket.join("room1"); io.to("room1").emit("hello"); ``` Related: socketio/socket.io#3662
- Loading branch information