angelia.io 2.4.77 → 2.4.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/Server.js +0 -17
package/package.json
CHANGED
package/server/Server.js
CHANGED
|
@@ -142,23 +142,6 @@ class ServerSingleton {
|
|
|
142
142
|
|
|
143
143
|
this.http.listen(this.port, this.hostname || null)
|
|
144
144
|
|
|
145
|
-
for (let m of ['RESTART', 'SIGINT', 'SIGTERM', 'SIGBREAK']) {
|
|
146
|
-
process.on(m, () => {
|
|
147
|
-
if (!io.closing) {
|
|
148
|
-
io.closing = true
|
|
149
|
-
if (options.debug) {
|
|
150
|
-
console.log('Socket Server Shutting Down\n', this)
|
|
151
|
-
} else {
|
|
152
|
-
console.log('Socket Server Shutting Down\n')
|
|
153
|
-
}
|
|
154
|
-
io.close()
|
|
155
|
-
if (options.debug) {
|
|
156
|
-
process.exit()
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
})
|
|
160
|
-
}
|
|
161
|
-
|
|
162
145
|
console.log('Socket Server Started Listening On Port ', this.port)
|
|
163
146
|
this.events.listen && this.events.listen()
|
|
164
147
|
}
|