We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: would it make sense to create a package from this? Something like:
import { Server } from "socket.io"; import pg from "pg"; import { initNamespace } from "@socket.io/chat-platform"; import { createAdapter } from "@socket.io/chat-platform-postgresql"; const io = new Server(); const pgPool = new pg.Pool(); initNamespace(io, { namespaceName: "/chat", adapter: createAdapter(pgPool), });
The initNamespace() method would handle the basic plumbing:
initNamespace()
Thoughts?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Question: would it make sense to create a package from this? Something like:
The
initNamespace()
method would handle the basic plumbing:Thoughts?
The text was updated successfully, but these errors were encountered: