cudr_slate-collaborative/packages/backend/src/utils/index.ts
George 0fd9390a99
feat: update to slate 0.5x (#10)
Update Slate-Collaboration to be compatible with Slate 0.5x versions.
2020-05-10 16:50:12 +03:00

5 lines
157 B
TypeScript

export const getClients = (io: SocketIO.Server, nsp: string) =>
new Promise((r, j) => {
io.of(nsp).clients((e: any, c: any) => (e ? j(e) : r(c)))
})