fix not ending error correctly
This commit is contained in:
parent
99eca912d3
commit
fc2a55bb0d
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -10,5 +10,4 @@ __export(require("./smartsocket.classes.smartsocketclient"));
|
|||||||
__export(require("./smartsocket.classes.socketfunction"));
|
__export(require("./smartsocket.classes.socketfunction"));
|
||||||
__export(require("./smartsocket.classes.socketrole"));
|
__export(require("./smartsocket.classes.socketrole"));
|
||||||
__export(require("./smartsocket.classes.socketconnection"));
|
__export(require("./smartsocket.classes.socketconnection"));
|
||||||
// need something more exposed? Create an issue on GitLab!
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLHNCQUFzQjtBQUN0Qix1REFBaUQ7QUFDakQsNkRBQXVEO0FBRXZELHFDQUFxQztBQUNyQywwREFBb0Q7QUFDcEQsc0RBQWdEO0FBQ2hELDREQUFzRCJ9
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLHNCQUFzQjtBQUN0Qix1REFBaUQ7QUFDakQsNkRBQXVEO0FBRXZELHFDQUFxQztBQUNyQywwREFBb0Q7QUFDcEQsc0RBQWdEO0FBQ2hELDREQUFzRDtBQUV0RCwwREFBMEQifQ==
|
|
4
dist/smartsocket.classes.smartsocket.d.ts
vendored
4
dist/smartsocket.classes.smartsocket.d.ts
vendored
@ -15,6 +15,10 @@ export declare class Smartsocket {
|
|||||||
* starts listening to incoming sockets:
|
* starts listening to incoming sockets:
|
||||||
*/
|
*/
|
||||||
startServer(): Promise<void>;
|
startServer(): Promise<void>;
|
||||||
|
/**
|
||||||
|
* starts the server with another server
|
||||||
|
*/
|
||||||
|
startWithSpecificServer(): Promise<void>;
|
||||||
/**
|
/**
|
||||||
* closes the server
|
* closes the server
|
||||||
*/
|
*/
|
||||||
|
10
dist/smartsocket.classes.smartsocket.js
vendored
10
dist/smartsocket.classes.smartsocket.js
vendored
@ -30,11 +30,19 @@ class Smartsocket {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* starts the server with another server
|
||||||
|
*/
|
||||||
|
startWithSpecificServer() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
});
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* closes the server
|
* closes the server
|
||||||
*/
|
*/
|
||||||
closeServer() {
|
closeServer() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
yield plugins.smartdelay.delayFor(1000);
|
||||||
this.openSockets.forEach((socketObjectArg) => {
|
this.openSockets.forEach((socketObjectArg) => {
|
||||||
plugins.beautylog.log(`disconnect socket with >>alias ${socketObjectArg.alias}`);
|
plugins.beautylog.log(`disconnect socket with >>alias ${socketObjectArg.alias}`);
|
||||||
socketObjectArg.socket.disconnect();
|
socketObjectArg.socket.disconnect();
|
||||||
@ -97,4 +105,4 @@ class Smartsocket {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.Smartsocket = Smartsocket;
|
exports.Smartsocket = Smartsocket;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQuY2xhc3Nlcy5zbWFydHNvY2tldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0c29ja2V0LmNsYXNzZXMuc21hcnRzb2NrZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLGlEQUF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FFLFFBQVE7WUFDZCxlQUFlLEVBQUUsSUFBSTtZQUNyQixNQUFNLEVBQUUsU0FBUztTQUNsQixDQUFDLENBQUE7UUFDRixPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyw2Q0FBNkMsQ0FBQyxDQUFBO1FBQ3BFLElBQUksQ0FBQyxXQUFXLENBQUMsR0FBRyxDQUFDLGdCQUFnQixDQUFDLENBQUE7UUFDdEMsZ0JBQWdCLENBQUMsWUFBWSxFQUFFO2FBQzVCLElBQUksQ0FBQyxHQUFHLEVBQUU7WUFDVCxNQUFNLENBQUMsZ0JBQWdCLENBQUMsd0JBQXdCLEVBQUUsQ0FBQTtRQUNwRCxDQUFDLENBQUM7YUFDRCxLQUFLLENBQUMsQ0FBQyxHQUFHLEVBQUUsRUFBRTtZQUNiLE9BQU8sQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUE7UUFDbEIsQ0FBQyxDQUFDLENBQUE7SUFDTixDQUFDO0NBRUY7QUEvRkQsa0NBK0ZDIn0=
|
@ -70,4 +70,4 @@ class SmartsocketClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.SmartsocketClient = SmartsocketClient;
|
exports.SmartsocketClient = SmartsocketClient;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQuY2xhc3Nlcy5zbWFydHNvY2tldGNsaWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0c29ja2V0LmNsYXNzZXMuc21hcnRzb2NrZXRjbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBZ0Q7QUFPaEQsaUJBQWlCO0FBQ2pCLGlHQUF5RTtBQUV6RSwyRkFBbUU7QUFZbkU7SUFPRSxZQUFZLFVBQXFDO1FBQy9DLElBQUksQ0FBQyxLQUFLLEdBQUcsVUFBVSxDQU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0FBRSxlQUF1QixFQUFFLE9BQVk7UUFDL0MsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQTtRQUNqQyxJQUFJLGFBQWEsR0FBRyxJQUFJLGlEQUFhLENBQUM7WUFDcEMsSUFBSSxFQUFFLFlBQVk7WUFDbEIsc0JBQXNCLEVBQUUsSUFBSSxDQUFDLGdCQUFnQjtZQUM3QyxPQUFPLEVBQUUsT0FBTyxDQUFDLE9BQU8sQ0FBQyxRQUFRLEVBQUU7WUFDbkMsWUFBWSxFQUFFO2dCQUNaLFFBQVEsRUFBRSxlQUFlO2dCQUN6QixXQUFXLEVBQUUsT0FBTzthQUNyQjtTQUNGLENBQUMsQ0FBQTtRQUNGLGFBQWEsQ0FBQyxRQUFRLEVBQUU7YUFDckIsSUFBSSxDQUFDLENBQUMsT0FBNEIsRUFBRSxFQUFFO1lBQ3JDLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFBO1FBQ25DLENBQUMsQ0FBQyxDQUFBO1FBQ0osTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUE7SUFDckIsQ0FBQztDQUVGO0FBMUVELDhDQTBFQyJ9
|
3
dist/smartsocket.classes.socketconnection.js
vendored
3
dist/smartsocket.classes.socketconnection.js
vendored
@ -22,6 +22,7 @@ class SocketConnection {
|
|||||||
exports.allSocketConnections.add(this);
|
exports.allSocketConnections.add(this);
|
||||||
this.socket.on('disconnect', () => {
|
this.socket.on('disconnect', () => {
|
||||||
plugins.beautylog.info(`SocketConnection with >alias ${this.alias} on >side ${this.side} disconnected`);
|
plugins.beautylog.info(`SocketConnection with >alias ${this.alias} on >side ${this.side} disconnected`);
|
||||||
|
this.socket.disconnect();
|
||||||
exports.allSocketConnections.remove(this);
|
exports.allSocketConnections.remove(this);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -95,4 +96,4 @@ class SocketConnection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.SocketConnection = SocketConnection;
|
exports.SocketConnection = SocketConnection;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRjb25uZWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRjb25uZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWdEO0FBQ2hELGlEQUFnRDtBQUVoRCw2QkFBK0I7QUFLL0IsMkZBQWdIO0FBK0JoSCxpQkFBaUI7QUFDTixRQUFBLG9CQUFvQixHQUFHLElBQUksZUFBUyxFQUFvQixDQUFBO0FBRW5FOztHQUVHO0FBQ0g7SUFPRSxZQUFhLFVBQStDO1FBSjVELGtCQUFhLEdBQVksS0FBSyxDQUFBO1FBSzVCLElBQUksQ0FBQyxLQUFLLEdBQUcsVUFBVSxDQUFDLEtBQUssQ0FBQTtRQUM3QixJQUFJLENBQUMsYUFBYSxHQUFHLFVBQVUsQ0FBQyxhQUFhLENBQUE7UUFDN0MsSUFBSSxDQUFDLElBQUksR0FBRyxVQUFVLENBQUMsSUFBSSxDQUFBO1FBQzNCLElBQUksQ0FBQyxJQUFJLEdBQUcsVUFBVSxDQUFDLElBQUksQ0FBQTtRQUMzQixJQUFJLENBQUMsZUFBZSxHQUFHLFVBQVUsQ0FBQyxlQUFlLENBQUE7UUFDakQsSUFBSSxDQUFDLE1BQU0sR0FBRyxVQUFVLENBQUMsTUFBTSxDQUFBO1FBRS9CLHlDQUF5QztRQUN6Qyw0QkFBb0IsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLENBQUE7UUFDOUIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUMsWUFBWSxFQUFFLEdBQUcsRUF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require('beautylog');
|
export import beautylog = require('beautylog');
|
||||||
export import lik = require('lik');
|
export import lik = require('lik');
|
||||||
export import nodehash = require('nodehash');
|
export import nodehash = require('nodehash');
|
||||||
|
export import smartdelay = require('smartdelay');
|
||||||
export import smartq = require('smartq');
|
export import smartq = require('smartq');
|
||||||
export import shortid = require('shortid');
|
export import shortid = require('shortid');
|
||||||
export import socketIo = require('socket.io');
|
export import socketIo = require('socket.io');
|
||||||
|
3
dist/smartsocket.plugins.js
vendored
3
dist/smartsocket.plugins.js
vendored
@ -4,8 +4,9 @@ require("typings-global");
|
|||||||
exports.beautylog = require("beautylog");
|
exports.beautylog = require("beautylog");
|
||||||
exports.lik = require("lik");
|
exports.lik = require("lik");
|
||||||
exports.nodehash = require("nodehash");
|
exports.nodehash = require("nodehash");
|
||||||
|
exports.smartdelay = require("smartdelay");
|
||||||
exports.smartq = require("smartq");
|
exports.smartq = require("smartq");
|
||||||
exports.shortid = require("shortid");
|
exports.shortid = require("shortid");
|
||||||
exports.socketIo = require("socket.io");
|
exports.socketIo = require("socket.io");
|
||||||
exports.socketIoClient = require("socket.io-client");
|
exports.socketIoClient = require("socket.io-client");
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0c29ja2V0LnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwwQkFBdUI7QUFDdkIseUNBQThDO0FBQzlDLDZCQUFtQztBQUNuQyx1Q0FBNEM7QUFDNUMsbUNBQXdDO0FBQ3hDLHFDQUEwQztBQUMxQyx3Q0FBNkM7QUFDN0MscURBQTBEIn0=
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0c29ja2V0LnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwwQkFBdUI7QUFDdkIseUNBQThDO0FBQzlDLDZCQUFtQztBQUNuQyx1Q0FBNEM7QUFDNUMsMkNBQWdEO0FBQ2hELG1DQUF3QztBQUN4QyxxQ0FBMEM7QUFDMUMsd0NBQTZDO0FBQzdDLHFEQUEwRCJ9
|
@ -66,6 +66,7 @@ export class SmartsocketClient {
|
|||||||
})
|
})
|
||||||
return done.promise
|
return done.promise
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnect () {
|
disconnect () {
|
||||||
let done = plugins.smartq.defer()
|
let done = plugins.smartq.defer()
|
||||||
this.socketConnection.socket.disconnect()
|
this.socketConnection.socket.disconnect()
|
||||||
@ -74,6 +75,7 @@ export class SmartsocketClient {
|
|||||||
done.resolve()
|
done.resolve()
|
||||||
return done.promise
|
return done.promise
|
||||||
}
|
}
|
||||||
|
|
||||||
serverCall (functionNameArg: string, dataArg: any) {
|
serverCall (functionNameArg: string, dataArg: any) {
|
||||||
let done = plugins.smartq.defer()
|
let done = plugins.smartq.defer()
|
||||||
let socketRequest = new SocketRequest({
|
let socketRequest = new SocketRequest({
|
||||||
|
@ -49,7 +49,7 @@ export class SocketConnection {
|
|||||||
authenticated: boolean = false
|
authenticated: boolean = false
|
||||||
role: SocketRole
|
role: SocketRole
|
||||||
smartsocketHost: Smartsocket
|
smartsocketHost: Smartsocket
|
||||||
socket: any //: SocketIO.Socket | SocketIOClient.Socket
|
socket: any // SocketIO.Socket | SocketIOClient.Socket
|
||||||
constructor (optionsArg: ISocketConnectionConstructorOptions) {
|
constructor (optionsArg: ISocketConnectionConstructorOptions) {
|
||||||
this.alias = optionsArg.alias
|
this.alias = optionsArg.alias
|
||||||
this.authenticated = optionsArg.authenticated
|
this.authenticated = optionsArg.authenticated
|
||||||
@ -62,6 +62,7 @@ export class SocketConnection {
|
|||||||
allSocketConnections.add(this)
|
allSocketConnections.add(this)
|
||||||
this.socket.on('disconnect', () => {
|
this.socket.on('disconnect', () => {
|
||||||
plugins.beautylog.info(`SocketConnection with >alias ${this.alias} on >side ${this.side} disconnected`)
|
plugins.beautylog.info(`SocketConnection with >alias ${this.alias} on >side ${this.side} disconnected`)
|
||||||
|
this.socket.disconnect()
|
||||||
allSocketConnections.remove(this)
|
allSocketConnections.remove(this)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user