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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/Server.js +0 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angelia.io",
3
- "version": "2.4.77",
3
+ "version": "2.4.78",
4
4
  "description": "WebSockets Server and Client API for node.js and the browser, with rooms support.",
5
5
  "homepage": "https://github.com/titoBouzout/angelia.io",
6
6
  "repository": {
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
  }