You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cudr_slate-collaborative/packages/backend/src/utils/index.ts

14 lines
260 B

import defaultValue from './defaultValue'
export const getClients = (io, nsp) =>
new Promise((r, j) => {
io.of(nsp).clients((e, c) => (e ? j(e) : r(c)))
})
export const defaultOptions = {
port: 9000,
saveTreshold: 2000
}
export { defaultValue }