update to newest version
This commit is contained in:
@ -8,5 +8,3 @@ export * from './smartsocket.classes.smartsocketclient'
|
||||
export * from './smartsocket.classes.socketfunction'
|
||||
export * from './smartsocket.classes.socketrole'
|
||||
export * from './smartsocket.classes.socketconnection'
|
||||
|
||||
// need something more exposed? Create an issue on GitLab!
|
||||
|
@ -31,10 +31,18 @@ export class Smartsocket {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* starts the server with another server
|
||||
*/
|
||||
async startWithSpecificServer() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* closes the server
|
||||
*/
|
||||
async closeServer () {
|
||||
await plugins.smartdelay.delayFor(1000)
|
||||
this.openSockets.forEach((socketObjectArg: SocketConnection) => {
|
||||
plugins.beautylog.log(`disconnect socket with >>alias ${socketObjectArg.alias}`)
|
||||
socketObjectArg.socket.disconnect()
|
||||
|
@ -2,6 +2,7 @@ import 'typings-global'
|
||||
export import beautylog = require('beautylog')
|
||||
export import lik = require('lik')
|
||||
export import nodehash = require('nodehash')
|
||||
export import smartdelay = require('smartdelay')
|
||||
export import smartq = require('smartq')
|
||||
export import shortid = require('shortid')
|
||||
export import socketIo = require('socket.io')
|
||||
|
Reference in New Issue
Block a user