update to newest version

This commit is contained in:
2017-10-09 03:06:09 +02:00
parent 0aa073f2a7
commit 0b6929af8f
12 changed files with 119 additions and 121 deletions

View File

@ -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!

View File

@ -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()

View File

@ -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')