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.
14 lines
260 B
14 lines
260 B
5 years ago
|
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 }
|