Browse Source

We don't need this

Brendan Abolivier 5 years ago
parent
commit
4e9311305c
100 changed files with 0 additions and 9361 deletions
  1. 0
    4
      web/multi/server/node_modules/socket.io/.npmignore
  2. 0
    16
      web/multi/server/node_modules/socket.io/.travis.yml
  3. 0
    491
      web/multi/server/node_modules/socket.io/History.md
  4. 0
    22
      web/multi/server/node_modules/socket.io/LICENSE
  5. 0
    15
      web/multi/server/node_modules/socket.io/Makefile
  6. 0
    374
      web/multi/server/node_modules/socket.io/Readme.md
  7. 0
    2
      web/multi/server/node_modules/socket.io/index.js
  8. 0
    247
      web/multi/server/node_modules/socket.io/lib/client.js
  9. 0
    379
      web/multi/server/node_modules/socket.io/lib/index.js
  10. 0
    242
      web/multi/server/node_modules/socket.io/lib/namespace.js
  11. 0
    449
      web/multi/server/node_modules/socket.io/lib/socket.js
  12. 0
    3
      web/multi/server/node_modules/socket.io/node_modules/debug/.jshintrc
  13. 0
    6
      web/multi/server/node_modules/socket.io/node_modules/debug/.npmignore
  14. 0
    157
      web/multi/server/node_modules/socket.io/node_modules/debug/History.md
  15. 0
    33
      web/multi/server/node_modules/socket.io/node_modules/debug/Makefile
  16. 0
    156
      web/multi/server/node_modules/socket.io/node_modules/debug/Readme.md
  17. 0
    147
      web/multi/server/node_modules/socket.io/node_modules/debug/browser.js
  18. 0
    19
      web/multi/server/node_modules/socket.io/node_modules/debug/component.json
  19. 0
    197
      web/multi/server/node_modules/socket.io/node_modules/debug/debug.js
  20. 0
    209
      web/multi/server/node_modules/socket.io/node_modules/debug/node.js
  21. 0
    5
      web/multi/server/node_modules/socket.io/node_modules/debug/node_modules/ms/.npmignore
  22. 0
    33
      web/multi/server/node_modules/socket.io/node_modules/debug/node_modules/ms/README.md
  23. 0
    111
      web/multi/server/node_modules/socket.io/node_modules/debug/node_modules/ms/index.js
  24. 0
    31
      web/multi/server/node_modules/socket.io/node_modules/debug/node_modules/ms/package.json
  25. 0
    52
      web/multi/server/node_modules/socket.io/node_modules/debug/package.json
  26. 0
    6
      web/multi/server/node_modules/socket.io/node_modules/engine.io/.npmignore
  27. 0
    7
      web/multi/server/node_modules/socket.io/node_modules/engine.io/.travis.yml
  28. 0
    408
      web/multi/server/node_modules/socket.io/node_modules/engine.io/History.md
  29. 0
    23
      web/multi/server/node_modules/socket.io/node_modules/engine.io/Makefile
  30. 0
    517
      web/multi/server/node_modules/socket.io/node_modules/engine.io/README.md
  31. 0
    4
      web/multi/server/node_modules/socket.io/node_modules/engine.io/index.js
  32. 0
    126
      web/multi/server/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js
  33. 0
    391
      web/multi/server/node_modules/socket.io/node_modules/engine.io/lib/server.js
  34. 0
    393
      web/multi/server/node_modules/socket.io/node_modules/engine.io/lib/socket.js
  35. 0
    114
      web/multi/server/node_modules/socket.io/node_modules/engine.io/lib/transport.js
  36. 0
    36
      web/multi/server/node_modules/socket.io/node_modules/engine.io/lib/transports/index.js
  37. 0
    108
      web/multi/server/node_modules/socket.io/node_modules/engine.io/lib/transports/polling-jsonp.js
  38. 0
    101
      web/multi/server/node_modules/socket.io/node_modules/engine.io/lib/transports/polling-xhr.js
  39. 0
    279
      web/multi/server/node_modules/socket.io/node_modules/engine.io/lib/transports/polling.js
  40. 0
    110
      web/multi/server/node_modules/socket.io/node_modules/engine.io/lib/transports/websocket.js
  41. 0
    3
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/base64id/.npmignore
  42. 0
    18
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/base64id/README.md
  43. 0
    103
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/base64id/lib/base64id.js
  44. 0
    28
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/base64id/package.json
  45. 0
    3
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/.jshintrc
  46. 0
    6
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/.npmignore
  47. 0
    132
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/History.md
  48. 0
    33
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/Makefile
  49. 0
    153
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/Readme.md
  50. 0
    144
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/browser.js
  51. 0
    19
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/component.json
  52. 0
    197
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/debug.js
  53. 0
    129
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/node.js
  54. 0
    5
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/node_modules/ms/.npmignore
  55. 0
    33
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/node_modules/ms/README.md
  56. 0
    111
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/node_modules/ms/index.js
  57. 0
    32
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/node_modules/ms/package.json
  58. 0
    51
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/package.json
  59. 0
    17
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/.npmignore
  60. 0
    45
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/.travis.yml
  61. 0
    18
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/.zuul.yml
  62. 0
    100
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/History.md
  63. 0
    22
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/LICENSE
  64. 0
    26
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/Makefile
  65. 0
    202
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/Readme.md
  66. 0
    2
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/index.js
  67. 0
    594
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/browser.js
  68. 0
    467
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/index.js
  69. 0
    19
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/keys.js
  70. 0
    2
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/.npmignore
  71. 0
    5
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/.travis.yml
  72. 0
    19
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/LICENCE
  73. 0
    75
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/README.md
  74. 0
    28
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/index.js
  75. 0
    44
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/package.json
  76. 0
    17
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/arraybuffer.slice/.npmignore
  77. 0
    8
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/arraybuffer.slice/Makefile
  78. 0
    17
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/arraybuffer.slice/README.md
  79. 0
    29
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/arraybuffer.slice/index.js
  80. 0
    26
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/arraybuffer.slice/package.json
  81. 0
    1
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/.npmignore
  82. 0
    6
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/.travis.yml
  83. 0
    22
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/LICENSE-MIT
  84. 0
    23
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/README.md
  85. 0
    39
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/grunt.js
  86. 0
    59
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/lib/base64-arraybuffer.js
  87. 0
    43
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/package.json
  88. 0
    2
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/.npmignore
  89. 0
    8
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/.zuul.yml
  90. 0
    14
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/Makefile
  91. 0
    11
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/README.md
  92. 0
    49
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/index.js
  93. 0
    31
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/package.json
  94. 0
    15
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/.npmignore
  95. 0
    5
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/History.md
  96. 0
    20
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/LICENSE
  97. 0
    3
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/Makefile
  98. 0
    4
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/README.md
  99. 0
    1
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/fixtures/big.json
  100. 0
    0
      web/multi/server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/index.js

+ 0
- 4
web/multi/server/node_modules/socket.io/.npmignore View File

@@ -1,4 +0,0 @@
1
-support
2
-test
3
-examples
4
-.gitignore

+ 0
- 16
web/multi/server/node_modules/socket.io/.travis.yml View File

@@ -1,16 +0,0 @@
1
-language: node_js
2
-node_js:
3
-  - "0.8"
4
-  - "0.10"
5
-  - "0.11"
6
-
7
-git:
8
-  depth: 1
9
-
10
-matrix:
11
-  fast_finish: true
12
-  allow_failures:
13
-    - node_js: "0.11"
14
-
15
-notifications:
16
-  irc: "irc.freenode.org#socket.io"

+ 0
- 491
web/multi/server/node_modules/socket.io/History.md View File

@@ -1,491 +0,0 @@
1
-
2
-1.3.5 / 2015-03-03
3
-==================
4
-
5
- * package: bump `socket.io-parser`
6
-
7
-1.3.4 / 2015-02-14
8
-==================
9
-
10
- * package: bump `socket.io-client`
11
-
12
-1.3.3 / 2015-02-03
13
-==================
14
-
15
- * socket: warn node_redis-style about missing `error`
16
- * package: bump parser to better handle bad binary packets
17
-
18
-1.3.2 / 2015-01-19
19
-==================
20
-
21
- * no change on this release
22
-
23
-1.3.1 / 2015-01-19
24
-==================
25
-
26
- * no change on this release
27
- * package: bump `engine.io`
28
-
29
-1.3.0 / 2015-01-19
30
-==================
31
-
32
- * package: bump `engine.io`
33
- * add test for reconnection after server restarts [rase-]
34
- * update license with up-to-date year range [fay-jai]
35
- * fix leaving unknown rooms [defunctzombie]
36
- * allow null origins when allowed origins is a function [drewblaisdell]
37
- * fix tests on node 0.11
38
- * package: fix `npm test` to run on windows
39
- * package: bump `debug` v2.1.0 [coderaiser]
40
- * added tests for volatile [rase-]
41
-
42
-1.2.1 / 2014-11-21
43
-==================
44
-
45
- * fix protocol violations and improve error handling (GH-1880)
46
- * package: bump `engine.io` for websocket leak fix [3rd-Eden]
47
- * style tweaks
48
-
49
-1.2.0 / 2014-10-27
50
-==================
51
-
52
- * package: bump `engine.io`
53
- * downloads badge
54
- * add test to check that empty rooms are autopruned
55
- * added Server#origins(v:Function) description for dynamic CORS
56
- * added test coverage for Server#origins(function) for dynamic CORS
57
- * added optional Server#origins(function) for dynamic CORS
58
- * fix usage example for Server#close
59
- * package: fix main file for example application 'chat'
60
- * package: bump `socket.io-parser`
61
- * update README http ctor to createServer()
62
- * bump adapter with a lot of fixes for room bookkeeping
63
-
64
-1.1.0 / 2014-09-04
65
-==================
66
-
67
- * examples: minor fix of escaping
68
- * testing for equivalence of namespaces starting with / or without
69
- * update index.js
70
- * added relevant tests
71
- * take "" and "/" as equivalent namespaces on server
72
- * use svg instead of png to get better image quality in readme
73
- * make CI build faster
74
- * fix splice arguments and `socket.rooms` value update in `socket.leaveAll`.
75
- * client cannot connect to non-existing namespaces
76
- * bump engine.io version to get the cached IP address
77
- * fixed handshake object address property and made the test case more strict.
78
- * package: bump `engine.io`
79
- * fixed the failing test where server crashes on disconnect involving connectBuffer
80
- * npmignore: ignore `.gitignore` (fixes #1607)
81
- * test: added failing case for `socket.disconnect` and nsps
82
- * fix repo in package.json
83
- * improve Close documentation
84
- * use ephemeral ports
85
- * fix: We should use the standard http protocol to handler the etag header.
86
- * override default browser font-family for inputs
87
- * update has-binary-data to 1.0.3
88
- * add close specs
89
- * add ability to stop the http server even if not created inside socket.io
90
- * make sure server gets close
91
- * Add test case for checking that reconnect_failed is fired only once upon failure
92
- * package: bump `socket.io-parser` for `component-emitter` dep fix
93
-
94
-1.0.6 / 2014-06-19
95
-==================
96
-
97
- * package: bump `socket.io-client`
98
-
99
-1.0.5 / 2014-06-16
100
-==================
101
-
102
- * package: bump `engine.io` to fix jsonp `\n` bug and CORS warnings
103
- * index: fix typo [yanatan16]
104
- * add `removeListener` to blacklisted events
105
- * examples: clearer instructions to install chat example
106
- * index: fix namespace `connectBuffer` issue
107
-
108
-1.0.4 / 2014-06-02
109
-==================
110
-
111
- * package: bump socket.io-client
112
-
113
-1.0.3 / 2014-05-31
114
-==================
115
-
116
- * package: bump `socket.io-client`
117
- * package: bump `socket.io-parser` for binary ACK fix
118
- * package: bump `engine.io` for binary UTF8 fix
119
- * example: fix XSS in chat example
120
-
121
-1.0.2 / 2014-05-28
122
-==================
123
-
124
- * package: bump `socket.io-parser` for windows fix
125
-
126
-1.0.1 / 2014-05-28
127
-==================
128
-
129
- * bump due to bad npm tag
130
-
131
-1.0.0 / 2014-05-28
132
-==================
133
-
134
- * stable release
135
-
136
-1.0.0-pre5 / 2014-05-22
137
-=======================
138
-
139
- * package: bump `socket.io-client` for parser fixes
140
- * package: bump `engine.io`
141
-
142
-1.0.0-pre4 / 2014-05-19
143
-=======================
144
-
145
- * package: bump client
146
-
147
-1.0.0-pre3 / 2014-05-17
148
-=======================
149
-
150
- * package: bump parser
151
- * package: bump engine.io
152
-
153
-1.0.0-pre2 / 2014-04-27
154
-=======================
155
-
156
- * package: bump `engine.io`
157
- * added backwards compatible of engine.io maxHttpBufferSize
158
- * added test that server and client using same protocol
159
- * added support for setting allowed origins
160
- * added information about logging
161
- * the set function in server can be used to set some attributes for BC
162
- * fix error in callback call 'done' instead of 'next' in docs
163
- * package: bump `socket.io-parser`
164
- * package: bump `expect.js`
165
- * added some new tests, including binary with acks
166
-
167
-1.0.0-pre / 2014-03-14
168
-======================
169
-
170
- * implemented `engine.io`
171
- * implemented `socket.io-adapter`
172
- * implemented `socket.io-protocol`
173
- * implemented `debug` and improved instrumentation
174
- * added binary support
175
- * added new `require('io')(srv)` signature
176
- * simplified `socket.io-client` serving
177
-
178
-0.9.14 / 2013-03-29
179
-===================
180
-
181
-  * manager: fix memory leak with SSL [jpallen]
182
-
183
-0.9.13 / 2012-12-13
184
-===================
185
-
186
-  * package: fixed `base64id` requirement
187
-
188
-0.9.12 / 2012-12-13
189
-===================
190
-
191
-  * manager: fix for latest node which is returning a clone with `listeners` [viirya]
192
-
193
-0.9.11 / 2012-11-02
194
-===================
195
-
196
-  * package: move redis to optionalDependenices [3rd-Eden]
197
-  * bumped client
198
-
199
-0.9.10 / 2012-08-10
200
-===================
201
-
202
-  * Don't lowercase log messages
203
-  * Always set the HTTP response in case an error should be returned to the client
204
-  * Create or destroy the flash policy server on configuration change
205
-  * Honour configuration to disable flash policy server
206
-  * Add express 3.0 instructions on Readme.md
207
-  * Bump client
208
-
209
-0.9.9 / 2012-08-01
210
-==================
211
-
212
-  * Fixed sync disconnect xhrs handling
213
-  * Put license text in its own file (#965)
214
-  * Add warning to .listen() to ease the migration to Express 3.x
215
-  * Restored compatibility with node 0.4.x
216
-
217
-0.9.8 / 2012-07-24
218
-==================
219
-
220
-  * Bumped client.
221
-
222
-0.9.7 / 2012-07-24
223
-==================
224
-
225
-  * Prevent crash when socket leaves a room twice.
226
-  * Corrects unsafe usage of for..in
227
-  * Fix for node 0.8 with `gzip compression` [vadimi]
228
-  * Update redis to support Node 0.8.x
229
-  * Made ID generation securely random
230
-  * Fix Redis Store race condition in manager onOpen unsubscribe callback
231
-  * Fix for EventEmitters always reusing the same Array instance for listeners
232
-
233
-0.9.6 / 2012-04-17
234
-==================
235
-
236
-  * Fixed XSS in jsonp-polling.
237
-
238
-0.9.5 / 2012-04-05
239
-==================
240
-
241
-  * Added test for polling and socket close.
242
-  * Ensure close upon request close.
243
-  * Fix disconnection reason being lost for polling transports.
244
-  * Ensure that polling transports work with Connection: close.
245
-  * Log disconnection reason.
246
-
247
-0.9.4 / 2012-04-01
248
-==================
249
-
250
-  * Disconnecting from namespace improvement (#795) [DanielBaulig]
251
-  * Bumped client with polling reconnection loop (#438)
252
-
253
-0.9.3 / 2012-03-28
254
-==================
255
-
256
-  * Fix "Syntax error" on FF Web Console with XHR Polling [mikito]
257
-
258
-0.9.2 / 2012-03-13
259
-==================
260
-
261
-  * More sensible close `timeout default` (fixes disconnect issue)
262
-
263
-0.9.1-1 / 2012-03-02
264
-====================
265
-
266
-  * Bumped client with NPM dependency fix.
267
-
268
-0.9.1 / 2012-03-02
269
-==================
270
-
271
-  * Changed heartbeat timeout and interval defaults (60 and 25 seconds)
272
-  * Make tests work both on 0.4 and 0.6
273
-  * Updated client (improvements + bug fixes).
274
-
275
-0.9.0 / 2012-02-26
276
-==================
277
-
278
-  * Make it possible to use a regexp to match the socket.io resource URL.
279
-    We need this because we have to prefix the socket.io URL with a variable ID.
280
-  * Supplemental fix to gavinuhma/authfix, it looks like the same Access-Control-Origin logic is needed in the http and xhr-polling transports
281
-  * Updated express dep for windows compatibility.
282
-  * Combine two substr calls into one in decodePayload to improve performance
283
-  * Minor documentation fix
284
-  * Minor. Conform to style of other files.
285
-  * Switching setting to 'match origin protocol'
286
-  * Revert "Fixes leaking Redis subscriptions for #663. The local flag was not getting passed through onClientDisconnect()."
287
-  * Revert "Handle leaked dispatch:[id] subscription."
288
-  * Merge pull request #667 from dshaw/patch/redis-disconnect
289
-  * Handle leaked dispatch:[id] subscription.
290
-  * Fixes leaking Redis subscriptions for #663. The local flag was not getting passed through onClientDisconnect().
291
-  * Prevent memory leaking on uncompleted requests & add max post size limitation
292
-  * Fix for testcase
293
-  * Set Access-Control-Allow-Credentials true, regardless of cookie
294
-  * Remove assertvarnish from package as it breaks on 0.6
295
-  * Correct irc channel
296
-  * Added proper return after reserved field error
297
-  * Fixes manager.js failure to close connection after transport error has happened
298
-  * Added implicit port 80 for origin checks. fixes #638
299
-  * Fixed bug #432 in 0.8.7
300
-  * Set Access-Control-Allow-Origin header to origin to enable withCredentials
301
-  * Adding configuration variable matchOriginProtocol
302
-  * Fixes location mismatch error in Safari.
303
-  * Use tty to detect if we should add colors or not by default.
304
-  * Updated the package location.
305
-
306
-0.8.7 / 2011-11-05
307
-==================
308
-
309
-  * Fixed memory leaks in closed clients.
310
-  * Fixed memory leaks in namespaces.
311
-  * Fixed websocket handling for malformed requests from proxies. [einaros]
312
-  * Node 0.6 compatibility. [einaros] [3rd-Eden]
313
-  * Adapted tests and examples.
314
-
315
-0.8.6 / 2011-10-27 
316
-==================
317
-
318
-  * Added JSON decoding on jsonp-polling transport.
319
-  * Fixed README example.
320
-  * Major speed optimizations [3rd-Eden] [einaros] [visionmedia]
321
-  * Added decode/encode benchmarks [visionmedia]
322
-  * Added support for black-listing client sent events.
323
-  * Fixed logging options, closes #540 [3rd-Eden]
324
-  * Added vary header for gzip [3rd-Eden]
325
-  * Properly cleaned up async websocket / flashsocket tests, after patching node-websocket-client
326
-  * Patched to properly shut down when a finishClose call is made during connection establishment
327
-  * Added support for socket.io version on url and far-future Expires [3rd-Eden] [getify]
328
-  * Began IE10 compatibility [einaros] [tbranyen]
329
-  * Misc WebSocket fixes [einaros]
330
-  * Added UTF8 to respone headers for htmlfile [3rd-Eden]
331
-
332
-0.8.5 / 2011-10-07
333
-==================
334
-
335
-  * Added websocket draft HyBi-16 support. [einaros]
336
-  * Fixed websocket continuation bugs. [einaros]
337
-  * Fixed flashsocket transport name.
338
-  * Fixed websocket tests.
339
-  * Ensured `parser#decodePayload` doesn't choke.
340
-  * Added http referrer verification to manager verifyOrigin.
341
-  * Added access control for cross domain xhr handshakes [3rd-Eden]
342
-  * Added support for automatic generation of socket.io files [3rd-Eden]
343
-  * Added websocket binary support [einaros]
344
-  * Added gzip support for socket.io.js [3rd-Eden]
345
-  * Expose socket.transport [3rd-Eden]
346
-  * Updated client.
347
-
348
-0.8.4 / 2011-09-06
349
-==================
350
-
351
-  * Client build
352
-
353
-0.8.3 / 2011-09-03
354
-==================
355
-
356
-  * Fixed `\n` parsing for non-JSON packets (fixes #479).
357
-  * Fixed parsing of certain unicode characters (fixes #451).
358
-  * Fixed transport message packet logging.
359
-  * Fixed emission of `error` event resulting in an uncaught exception if unhandled (fixes #476).
360
-  * Fixed; allow for falsy values as the configuration value of `log level` (fixes #491).
361
-  * Fixed repository URI in `package.json`. Fixes #504.
362
-  * Added text/plain content-type to handshake responses [einaros]
363
-  * Improved single byte writes [einaros]
364
-  * Updated socket.io-flashsocket default port from 843 to 10843 [3rd-Eden]
365
-  * Updated client.
366
-
367
-0.8.2 / 2011-08-29
368
-==================
369
-
370
-  * Updated client.
371
-
372
-0.8.1 / 2011-08-29
373
-==================
374
-
375
-  * Fixed utf8 bug in send framing in websocket [einaros]
376
-  * Fixed typo in docs [Znarkus]
377
-  * Fixed bug in send framing for over 64kB of data in websocket [einaros]
378
-  * Corrected ping handling in websocket transport [einaros]
379
-
380
-0.8.0 / 2011-08-28
381
-==================
382
-
383
-  * Updated to work with two-level websocket versioning. [einaros]
384
-  * Added hybi07 support. [einaros]
385
-  * Added hybi10 support. [einaros]
386
-  * Added http referrer verification to manager.js verifyOrigin. [einaors]
387
-
388
-0.7.11 / 2011-08-27
389
-===================
390
-
391
-  * Updated socket.io-client.
392
-
393
-0.7.10 / 2011-08-27
394
-===================
395
-
396
-  * Updated socket.io-client.
397
-
398
-0.7.9 / 2011-08-12
399
-==================
400
-
401
-  * Updated socket.io-client.
402
-  * Make sure we only do garbage collection when the server we receive is actually run.
403
-
404
-0.7.8 / 2011-08-08
405
-==================
406
-
407
-  * Changed; make sure sio#listen passes options to both HTTP server and socket.io manager.
408
-  * Added docs for sio#listen.
409
-  * Added options parameter support for Manager constructor.
410
-  * Added memory leaks tests and test-leaks Makefile task.
411
-  * Removed auto npm-linking from make test.
412
-  * Make sure that you can disable heartbeats. [3rd-Eden]
413
-  * Fixed rooms memory leak [3rd-Eden]
414
-  * Send response once we got all POST data, not immediately [Pita]
415
-  * Fixed onLeave behavior with missing clientsk [3rd-Eden]
416
-  * Prevent duplicate references in rooms.
417
-  * Added alias for `to` to `in` and `in` to `to`.
418
-  * Fixed roomClients definition.
419
-  * Removed dependency on redis for installation without npm [3rd-Eden]
420
-  * Expose path and querystring in handshakeData [3rd-Eden]
421
-
422
-0.7.7 / 2011-07-12
423
-==================
424
-
425
-  * Fixed double dispatch handling with emit to closed clients.
426
-  * Added test for emitting to closed clients to prevent regression.
427
-  * Fixed race condition in redis test.
428
-  * Changed Transport#end instrumentation.
429
-  * Leveraged $emit instead of emit internally.
430
-  * Made tests faster.
431
-  * Fixed double disconnect events.
432
-  * Fixed disconnect logic
433
-  * Simplified remote events handling in Socket.
434
-  * Increased testcase timeout.
435
-  * Fixed unknown room emitting (GH-291). [3rd-Eden]
436
-  * Fixed `address` in handshakeData. [3rd-Eden]
437
-  * Removed transports definition in chat example.
438
-  * Fixed room cleanup
439
-  * Fixed; make sure the client is cleaned up after booting.
440
-  * Make sure to mark the client as non-open if the connection is closed.
441
-  * Removed unneeded `buffer` declarations.
442
-  * Fixed; make sure to clear socket handlers and subscriptions upon transport close.
443
-
444
-0.7.6 / 2011-06-30
445
-==================
446
-
447
-  * Fixed general dispatching when a client has closed.
448
-
449
-0.7.5 / 2011-06-30
450
-==================
451
-
452
-  * Fixed dispatching to clients that are disconnected.
453
-
454
-0.7.4 / 2011-06-30
455
-==================
456
-
457
-  * Fixed; only clear handlers if they were set. [level09]
458
-
459
-0.7.3 / 2011-06-30
460
-==================
461
-
462
-  * Exposed handshake data to clients.
463
-  * Refactored dispatcher interface.
464
-  * Changed; Moved id generation method into the manager.
465
-  * Added sub-namespace authorization. [3rd-Eden]
466
-  * Changed; normalized SocketNamespace local eventing [dvv]
467
-  * Changed; Use packet.reason or default to 'packet' [3rd-Eden]
468
-  * Changed console.error to console.log.
469
-  * Fixed; bind both servers at the same time do that the test never times out.
470
-  * Added 304 support.
471
-  * Removed `Transport#name` for abstract interface.
472
-  * Changed; lazily require http and https module only when needed. [3rd-Eden]
473
-
474
-0.7.2 / 2011-06-22
475
-==================
476
-
477
-  * Make sure to write a packet (of type `noop`) when closing a poll.
478
-    This solves a problem with cross-domain requests being flagged as aborted and
479
-    reconnection being triggered.
480
-  * Added `noop` message type.
481
-
482
-0.7.1 / 2011-06-21 
483
-==================
484
-
485
-  * Fixed cross-domain XHR.
486
-  * Added CORS test to xhr-polling suite.
487
-
488
-0.7.0 / 2010-06-21
489
-==================
490
-
491
-  * http://socket.io/announcement.html

+ 0
- 22
web/multi/server/node_modules/socket.io/LICENSE View File

@@ -1,22 +0,0 @@
1
-(The MIT License)
2
-
3
-Copyright (c) 2014-2015 Automattic <dev@cloudup.com>
4
-
5
-Permission is hereby granted, free of charge, to any person obtaining
6
-a copy of this software and associated documentation files (the
7
-'Software'), to deal in the Software without restriction, including
8
-without limitation the rights to use, copy, modify, merge, publish,
9
-distribute, sublicense, and/or sell copies of the Software, and to
10
-permit persons to whom the Software is furnished to do so, subject to
11
-the following conditions:
12
-
13
-The above copyright notice and this permission notice shall be
14
-included in all copies or substantial portions of the Software.
15
-
16
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 15
web/multi/server/node_modules/socket.io/Makefile View File

@@ -1,15 +0,0 @@
1
-
2
-REPORTER = dot
3
-
4
-test:
5
-	@./node_modules/.bin/mocha \
6
-		--reporter $(REPORTER) \
7
-		--slow 200ms \
8
-		--bail
9
-
10
-test-cov:
11
-	@./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
12
-		--reporter $(REPORTER) \
13
-		test/
14
-
15
-.PHONY: test

+ 0
- 374
web/multi/server/node_modules/socket.io/Readme.md View File

@@ -1,374 +0,0 @@
1
-
2
-# socket.io
3
-
4
-[![Build Status](https://secure.travis-ci.org/Automattic/socket.io.svg)](http://travis-ci.org/Automattic/socket.io)
5
-![NPM version](https://badge.fury.io/js/socket.io.svg)
6
-![Downloads](http://img.shields.io/npm/dm/socket.io.svg?style=flat)
7
-
8
-## How to use
9
-
10
-The following example attaches socket.io to a plain Node.JS
11
-HTTP server listening on port `3000`.
12
-
13
-```js
14
-var server = require('http').createServer();
15
-var io = require('socket.io')(server);
16
-io.on('connection', function(socket){
17
-  socket.on('event', function(data){});
18
-  socket.on('disconnect', function(){});
19
-});
20
-server.listen(3000);
21
-```
22
-
23
-### Standalone
24
-
25
-```js
26
-var io = require('socket.io')();
27
-io.on('connection', function(socket){});
28
-io.listen(3000);
29
-```
30
-
31
-### In conjunction with Express
32
-
33
-Starting with **3.0**, express applications have become request handler
34
-functions that you pass to `http` or `http` `Server` instances. You need
35
-to pass the `Server` to `socket.io`, and not the express application
36
-function.
37
-
38
-```js
39
-var app = require('express')();
40
-var server = require('http').createServer(app);
41
-var io = require('socket.io')(server);
42
-io.on('connection', function(){ /* … */ });
43
-server.listen(3000);
44
-```
45
-
46
-### In conjunction with Koa
47
-
48
-Like Express.JS, Koa works by exposing an application as a request
49
-handler function, but only by calling the `callback` method.
50
-
51
-```js
52
-var app = require('koa')();
53
-var server = require('http').createServer(app.callback());
54
-var io = require('socket.io')(server);
55
-io.on('connection', function(){ /* … */ });
56
-server.listen(3000);
57
-```
58
-
59
-## API
60
-
61
-### Server
62
-
63
-  Exposed by `require('socket.io')`.
64
-
65
-### Server()
66
-
67
-  Creates a new `Server`. Works with and without `new`:
68
-
69
-  ```js
70
-  var io = require('socket.io')();
71
-  // or
72
-  var Server = require('socket.io');
73
-  var io = new Server();
74
-  ```
75
-
76
-### Server(opts:Object)
77
-
78
-  Optionally, the first or second argument (see below) of the `Server`
79
-  constructor can be an options object.
80
-
81
-  The following options are supported:
82
-
83
-  - `serveClient` sets the value for Server#serveClient()
84
-  - `path` sets the value for Server#path()
85
-
86
-  The same options passed to socket.io are always passed to
87
-  the `engine.io` `Server` that gets created. See engine.io
88
-  [options](https://github.com/learnboost/engine.io#methods-1)
89
-  as reference.
90
-
91
-### Server(srv:http#Server, opts:Object)
92
-
93
-  Creates a new `Server` and attaches it to the given `srv`. Optionally
94
-  `opts` can be passed.
95
-
96
-### Server(port:Number, opts:Object)
97
-
98
-  Binds socket.io to a new `http.Server` that listens on `port`.
99
-
100
-### Server#serveClient(v:Boolean):Server
101
-
102
-  If `v` is `true` the attached server (see `Server#attach`) will serve
103
-  the client files. Defaults to `true`.
104
-
105
-  This method has no effect after `attach` is called.
106
-
107
-  ```js
108
-  // pass a server and the `serveClient` option
109
-  var io = require('socket.io')(http, { serveClient: false });
110
-
111
-  // or pass no server and then you can call the method
112
-  var io = require('socket.io')();
113
-  io.serveClient(false);
114
-  io.attach(http);
115
-  ```
116
-
117
-  If no arguments are supplied this method returns the current value.
118
-
119
-### Server#path(v:String):Server
120
-
121
-  Sets the path `v` under which `engine.io` and the static files will be
122
-  served. Defaults to `/socket.io`.
123
-
124
-  If no arguments are supplied this method returns the current value.
125
-
126
-### Server#adapter(v:Adapter):Server
127
-
128
-  Sets the adapter `v`. Defaults to an instance of the `Adapter` that
129
-  ships with socket.io which is memory based. See
130
-  [socket.io-adapter](https://github.com/Automattic/socket.io-adapter).
131
-
132
-  If no arguments are supplied this method returns the current value.
133
-
134
-### Server#origins(v:String):Server
135
-
136
-  Sets the allowed origins `v`. Defaults to any origins being allowed.
137
-
138
-  If no arguments are supplied this method returns the current value.
139
-
140
-### Server#origins(v:Function):Server
141
-
142
-  Sets the allowed origins as dynamic function. Function takes two arguments `origin:String` and `callback(error, success)`, where `success` is a boolean value indicating whether origin is allowed or not.
143
-
144
-  __Potential drawbacks__:
145
-  * in some situations, when it is not possible to determine `origin` it may have value of `*`
146
-  * As this function will be executed for every request, it is advised to make this function work as fast as possible
147
-  * If `socket.io` is used together with `Express`, the CORS headers will be affected only for `socket.io` requests. For Express can use [cors](https://github.com/troygoode/node-cors/)
148
-
149
-
150
-### Server#sockets:Namespace
151
-
152
-  The default (`/`) namespace.
153
-
154
-### Server#attach(srv:http#Server, opts:Object):Server
155
-
156
-  Attaches the `Server` to an engine.io instance on `srv` with the
157
-  supplied `opts` (optionally).
158
-
159
-### Server#attach(port:Number, opts:Object):Server
160
-
161
-  Attaches the `Server` to an engine.io instance that is bound to `port`
162
-  with the given `opts` (optionally).
163
-
164
-### Server#listen
165
-
166
-  Synonym of `Server#attach`.
167
-
168
-### Server#bind(srv:engine#Server):Server
169
-
170
-  Advanced use only. Binds the server to a specific engine.io `Server`
171
-  (or compatible API) instance.
172
-
173
-### Server#onconnection(socket:engine#Socket):Server
174
-
175
-  Advanced use only. Creates a new `socket.io` client from the incoming
176
-  engine.io (or compatible API) `socket`.
177
-
178
-### Server#of(nsp:String):Namespace
179
-
180
-  Initializes and retrieves the given `Namespace` by its pathname
181
-  identifier `nsp`.
182
-
183
-  If the namespace was already initialized it returns it right away.
184
-
185
-### Server#emit
186
-
187
-  Emits an event to all connected clients. The following two are
188
-  equivalent:
189
-
190
-  ```js
191
-  var io = require('socket.io')();
192
-  io.sockets.emit('an event sent to all connected clients');
193
-  io.emit('an event sent to all connected clients');
194
-  ```
195
-
196
-  For other available methods, see `Namespace` below.
197
-
198
-### Server#close
199
-
200
-  Closes socket server
201
-
202
-  ```js
203
-  var Server = require('socket.io');
204
-  var PORT   = 3030;
205
-  var server = require('http').Server();
206
-
207
-  var io = Server(PORT);
208
-
209
-  io.close(); // Close current server
210
-
211
-  server.listen(PORT); // PORT is free to use
212
-
213
-  io = Server(server);
214
-  ```
215
-
216
-### Server#use
217
-
218
-  See `Namespace#use` below.
219
-
220
-### Namespace
221
-
222
-  Represents a pool of sockets connected under a given scope identified
223
-  by a pathname (eg: `/chat`).
224
-
225
-  By default the client always connects to `/`.
226
-
227
-#### Events
228
-
229
-  - `connection` / `connect`. Fired upon a connection.
230
-
231
-    Parameters:
232
-    - `Socket` the incoming socket.
233
-
234
-### Namespace#name:String
235
-
236
-  The namespace identifier property.
237
-
238
-### Namespace#connected:Object<Socket>
239
-
240
-  Hash of `Socket` objects that are connected to this namespace indexed
241
-  by `id`.
242
-
243
-### Namespace#use(fn:Function):Namespace
244
-
245
-  Registers a middleware, which is a function that gets executed for
246
-  every incoming `Socket` and receives as parameter the socket and a
247
-  function to optionally defer execution to the next registered
248
-  middleware.
249
-
250
-  ```js
251
-  var io = require('socket.io')();
252
-  io.use(function(socket, next){
253
-    if (socket.request.headers.cookie) return next();
254
-    next(new Error('Authentication error'));
255
-  });
256
-  ```
257
-
258
-  Errors passed to middleware callbacks are sent as special `error`
259
-  packets to clients.
260
-
261
-### Socket
262
-
263
-  A `Socket` is the fundamental class for interacting with browser
264
-  clients. A `Socket` belongs to a certain `Namespace` (by default `/`)
265
-  and uses an underlying `Client` to communicate.
266
-
267
-### Socket#rooms:Array
268
-
269
-  A list of strings identifying the rooms this socket is in.
270
-
271
-### Socket#client:Client
272
-
273
-  A reference to the underlying `Client` object.
274
-
275
-### Socket#conn:Socket
276
-
277
-  A reference to the underlying `Client` transport connection (engine.io
278
-  `Socket` object).
279
-
280
-### Socket#request:Request
281
-
282
-  A getter proxy that returns the reference to the `request` that
283
-  originated the underlying engine.io `Client`. Useful for accessing
284
-  request headers such as `Cookie` or `User-Agent`.
285
-
286
-### Socket#id:String
287
-
288
-  A unique identifier for the socket session, that comes from the
289
-  underlying `Client`.
290
-
291
-### Socket#emit(name:String[, …]):Socket
292
-
293
-  Emits an event to the socket identified by the string `name`. Any
294
-  other parameters can be included.
295
-
296
-  All datastructures are supported, including `Buffer`. JavaScript
297
-  functions can't be serialized/deserialized.
298
-
299
-  ```js
300
-  var io = require('socket.io')();
301
-  io.on('connection', function(socket){
302
-    socket.emit('an event', { some: 'data' });
303
-  });
304
-  ```
305
-
306
-### Socket#join(name:String[, fn:Function]):Socket
307
-
308
-  Adds the socket to the `room`, and fires optionally a callback `fn`
309
-  with `err` signature (if any).
310
-
311
-  The socket is automatically a member of a room identified with its
312
-  session id (see `Socket#id`).
313
-
314
-  The mechanics of joining  rooms are handled by the `Adapter`
315
-  that has been configured (see `Server#adapter` above), defaulting to
316
-  [socket.io-adapter](https://github.com/Automattic/socket.io-adapter).
317
-
318
-### Socket#leave(name:String[, fn:Function]):Socket
319
-
320
-  Removes the socket from `room`, and fires optionally a callback `fn`
321
-  with `err` signature (if any).
322
-
323
-  **Rooms are left automatically upon disconnection**.
324
-
325
-  The mechanics of leaving rooms are handled by the `Adapter`
326
-  that has been configured (see `Server#adapter` above), defaulting to
327
-  [socket.io-adapter](https://github.com/Automattic/socket.io-adapter).
328
-
329
-### Socket#to(room:String):Socket
330
-### Socket#in(room:String):Socket
331
-
332
-  Sets a modifier for a subsequent event emission that the event will
333
-  only be _broadcasted_ to sockets that have joined the given `room`.
334
-
335
-  To emit to multiple rooms, you can call `to` several times.
336
-
337
-  ```js
338
-  var io = require('socket.io')();
339
-  io.on('connection', function(socket){
340
-    socket.to('others').emit('an event', { some: 'data' });
341
-  });
342
-  ```
343
-
344
-### Client
345
-
346
-  The `Client` class represents an incoming transport (engine.io)
347
-  connection. A `Client` can be associated with many multiplexed `Socket`
348
-  that belong to different `Namespace`s.
349
-
350
-### Client#conn
351
-
352
-  A reference to the underlying `engine.io` `Socket` connection.
353
-
354
-### Client#request
355
-
356
-  A getter proxy that returns the reference to the `request` that
357
-  originated the engine.io connection. Useful for accessing
358
-  request headers such as `Cookie` or `User-Agent`.
359
-
360
-## Debug / logging
361
-
362
-Socket.IO is powered by [debug](http://github.com/visionmedia/debug).
363
-In order to see all the debug output, run your app with the environment variable
364
-`DEBUG` including the desired scope.
365
-
366
-To see the output from all of Socket.IO's debugging scopes you can use:
367
-
368
-```
369
-DEBUG=socket.io* node myapp
370
-```
371
-
372
-## License
373
-
374
-MIT

+ 0
- 2
web/multi/server/node_modules/socket.io/index.js View File

@@ -1,2 +0,0 @@
1
-
2
-module.exports = require('./lib');

+ 0
- 247
web/multi/server/node_modules/socket.io/lib/client.js View File

@@ -1,247 +0,0 @@
1
-
2
-/**
3
- * Module dependencies.
4
- */
5
-
6
-var parser = require('socket.io-parser');
7
-var debug = require('debug')('socket.io:client');
8
-
9
-/**
10
- * Module exports.
11
- */
12
-
13
-module.exports = Client;
14
-
15
-/**
16
- * Client constructor.
17
- *
18
- * @param {Server} server instance
19
- * @param {Socket} connection
20
- * @api private
21
- */
22
-
23
-function Client(server, conn){
24
-  this.server = server;
25
-  this.conn = conn;
26
-  this.encoder = new parser.Encoder();
27
-  this.decoder = new parser.Decoder();
28
-  this.id = conn.id;
29
-  this.request = conn.request;
30
-  this.setup();
31
-  this.sockets = [];
32
-  this.nsps = {};
33
-  this.connectBuffer = [];
34
-}
35
-
36
-/**
37
- * Sets up event listeners.
38
- *
39
- * @api private
40
- */
41
-
42
-Client.prototype.setup = function(){
43
-  this.onclose = this.onclose.bind(this);
44
-  this.ondata = this.ondata.bind(this);
45
-  this.onerror = this.onerror.bind(this);
46
-  this.ondecoded = this.ondecoded.bind(this);
47
-
48
-  this.decoder.on('decoded', this.ondecoded);
49
-  this.conn.on('data', this.ondata);
50
-  this.conn.on('error', this.onerror);
51
-  this.conn.on('close', this.onclose);
52
-};
53
-
54
-/**
55
- * Connects a client to a namespace.
56
- *
57
- * @param {String} namespace name
58
- * @api private
59
- */
60
-
61
-Client.prototype.connect = function(name){
62
-  debug('connecting to namespace %s', name);
63
-  if (!this.server.nsps[name]) {
64
-    this.packet({ type: parser.ERROR, nsp: name, data : 'Invalid namespace'});
65
-    return;
66
-  }
67
-  var nsp = this.server.of(name);
68
-  if ('/' != name && !this.nsps['/']) {
69
-    this.connectBuffer.push(name);
70
-    return;
71
-  }
72
-
73
-  var self = this;
74
-  var socket = nsp.add(this, function(){
75
-    self.sockets.push(socket);
76
-    self.nsps[nsp.name] = socket;
77
-
78
-    if ('/' == nsp.name && self.connectBuffer.length > 0) {
79
-      self.connectBuffer.forEach(self.connect, self);
80
-      self.connectBuffer = [];
81
-    }
82
-  });
83
-};
84
-
85
-/**
86
- * Disconnects from all namespaces and closes transport.
87
- *
88
- * @api private
89
- */
90
-
91
-Client.prototype.disconnect = function(){
92
-  var socket;
93
-  // we don't use a for loop because the length of
94
-  // `sockets` changes upon each iteration
95
-  while (socket = this.sockets.shift()) {
96
-    socket.disconnect();
97
-  }
98
-  this.close();
99
-};
100
-
101
-/**
102
- * Removes a socket. Called by each `Socket`.
103
- *
104
- * @api private
105
- */
106
-
107
-Client.prototype.remove = function(socket){
108
-  var i = this.sockets.indexOf(socket);
109
-  if (~i) {
110
-    var nsp = this.sockets[i].nsp.name;
111
-    this.sockets.splice(i, 1);
112
-    delete this.nsps[nsp];
113
-  } else {
114
-    debug('ignoring remove for %s', socket.id);
115
-  }
116
-};
117
-
118
-/**
119
- * Closes the underlying connection.
120
- *
121
- * @api private
122
- */
123
-
124
-Client.prototype.close = function(){
125
-  if ('open' == this.conn.readyState) {
126
-    debug('forcing transport close');
127
-    this.conn.close();
128
-    this.onclose('forced server close');
129
-  }
130
-};
131
-
132
-/**
133
- * Writes a packet to the transport.
134
- *
135
- * @param {Object} packet object
136
- * @param {Boolean} whether packet is already encoded
137
- * @param {Boolean} whether packet is volatile
138
- * @api private
139
- */
140
-
141
-Client.prototype.packet = function(packet, preEncoded, volatile){
142
-  var self = this;
143
-
144
-  // this writes to the actual connection
145
-  function writeToEngine(encodedPackets) {
146
-    if (volatile && !self.conn.transport.writable) return;
147
-    for (var i = 0; i < encodedPackets.length; i++) {
148
-      self.conn.write(encodedPackets[i]);
149
-    }
150
-  }
151
-
152
-  if ('open' == this.conn.readyState) {
153
-    debug('writing packet %j', packet);
154
-    if(!preEncoded) { // not broadcasting, need to encode
155
-      this.encoder.encode(packet, function (encodedPackets) { // encode, then write results to engine
156
-        writeToEngine(encodedPackets);
157
-      });
158
-    } else { // a broadcast pre-encodes a packet
159
-      writeToEngine(packet);
160
-    }
161
-  } else {
162
-    debug('ignoring packet write %j', packet);
163
-  }
164
-};
165
-
166
-/**
167
- * Called with incoming transport data.
168
- *
169
- * @api private
170
- */
171
-
172
-Client.prototype.ondata = function(data){
173
-  // try/catch is needed for protocol violations (GH-1880)
174
-  try {
175
-    this.decoder.add(data);
176
-  } catch(e) {
177
-    this.onerror(e);
178
-  }
179
-};
180
-
181
-/**
182
- * Called when parser fully decodes a packet.
183
- *
184
- * @api private
185
- */
186
-
187
-Client.prototype.ondecoded = function(packet) {
188
-  if (parser.CONNECT == packet.type) {
189
-    this.connect(packet.nsp);
190
-  } else {
191
-    var socket = this.nsps[packet.nsp];
192
-    if (socket) {
193
-      socket.onpacket(packet);
194
-    } else {
195
-      debug('no socket for namespace %s', packet.nsp);
196
-    }
197
-  }
198
-};
199
-
200
-/**
201
- * Handles an error.
202
- *
203
- * @param {Objcet} error object
204
- * @api private
205
- */
206
-
207
-Client.prototype.onerror = function(err){
208
-  this.sockets.forEach(function(socket){
209
-    socket.onerror(err);
210
-  });
211
-  this.onclose('client error');
212
-};
213
-
214
-/**
215
- * Called upon transport close.
216
- *
217
- * @param {String} reason
218
- * @api private
219
- */
220
-
221
-Client.prototype.onclose = function(reason){
222
-  debug('client close with reason %s', reason);
223
-
224
-  // ignore a potential subsequent `close` event
225
-  this.destroy();
226
-
227
-  // `nsps` and `sockets` are cleaned up seamlessly
228
-  var socket;
229
-  while (socket = this.sockets.shift()) {
230
-    socket.onclose(reason);
231
-  }
232
-
233
-  this.decoder.destroy(); // clean up decoder
234
-};
235
-
236
-/**
237
- * Cleans up event listeners.
238
- *
239
- * @api private
240
- */
241
-
242
-Client.prototype.destroy = function(){
243
-  this.conn.removeListener('data', this.ondata);
244
-  this.conn.removeListener('error', this.onerror);
245
-  this.conn.removeListener('close', this.onclose);
246
-  this.decoder.removeListener('decoded', this.ondecoded);
247
-};

+ 0
- 379
web/multi/server/node_modules/socket.io/lib/index.js View File

@@ -1,379 +0,0 @@
1
-
2
-/**
3
- * Module dependencies.
4
- */
5
-
6
-var http = require('http');
7
-var read = require('fs').readFileSync;
8
-var parse = require('url').parse;
9
-var engine = require('engine.io');
10
-var client = require('socket.io-client');
11
-var clientVersion = require('socket.io-client/package').version;
12
-var Client = require('./client');
13
-var Namespace = require('./namespace');
14
-var Adapter = require('socket.io-adapter');
15
-var debug = require('debug')('socket.io:server');
16
-var url = require('url');
17
-
18
-/**
19
- * Module exports.
20
- */
21
-
22
-module.exports = Server;
23
-
24
-/**
25
- * Socket.IO client source.
26
- */
27
-
28
-var clientSource = read(require.resolve('socket.io-client/socket.io.js'), 'utf-8');
29
-
30
-/**
31
- * Server constructor.
32
- *
33
- * @param {http.Server|Number|Object} http server, port or options
34
- * @param {Object} options
35
- * @api public
36
- */
37
-
38
-function Server(srv, opts){
39
-  if (!(this instanceof Server)) return new Server(srv, opts);
40
-  if ('object' == typeof srv && !srv.listen) {
41
-    opts = srv;
42
-    srv = null;
43
-  }
44
-  opts = opts || {};
45
-  this.nsps = {};
46
-  this.path(opts.path || '/socket.io');
47
-  this.serveClient(false !== opts.serveClient);
48
-  this.adapter(opts.adapter || Adapter);
49
-  this.origins(opts.origins || '*:*');
50
-  this.sockets = this.of('/');
51
-  if (srv) this.attach(srv, opts);
52
-}
53
-
54
-/**
55
- * Server request verification function, that checks for allowed origins
56
- *
57
- * @param {http.IncomingMessage} request
58
- * @param {Function} callback to be called with the result: `fn(err, success)`
59
- */
60
-
61
-Server.prototype.checkRequest = function(req, fn) {
62
-  var origin = req.headers.origin || req.headers.referer;
63
-
64
-  // file:// URLs produce a null Origin which can't be authorized via echo-back
65
-  if ('null' == origin || null == origin) origin = '*';
66
-
67
-  if (!!origin && typeof(this._origins) == 'function') return this._origins(origin, fn);
68
-  if (this._origins.indexOf('*:*') !== -1) return fn(null, true);
69
-  if (origin) {
70
-    try {
71
-      var parts = url.parse(origin);
72
-      parts.port = parts.port || 80;
73
-      var ok =
74
-        ~this._origins.indexOf(parts.hostname + ':' + parts.port) ||
75
-        ~this._origins.indexOf(parts.hostname + ':*') ||
76
-        ~this._origins.indexOf('*:' + parts.port);
77
-      return fn(null, !!ok);
78
-    } catch (ex) {
79
-    }
80
-  }
81
-  fn(null, false);
82
-};
83
-
84
-/**
85
- * Sets/gets whether client code is being served.
86
- *
87
- * @param {Boolean} whether to serve client code
88
- * @return {Server|Boolean} self when setting or value when getting
89
- * @api public
90
- */
91
-
92
-Server.prototype.serveClient = function(v){
93
-  if (!arguments.length) return this._serveClient;
94
-  this._serveClient = v;
95
-  return this;
96
-};
97
-
98
-/**
99
- * Old settings for backwards compatibility
100
- */
101
-
102
-var oldSettings = {
103
-  "transports": "transports",
104
-  "heartbeat timeout": "pingTimeout",
105
-  "heartbeat interval": "pingInterval",
106
-  "destroy buffer size": "maxHttpBufferSize"
107
-};
108
-
109
-/**
110
- * Backwards compatiblity.
111
- *
112
- * @api public
113
- */
114
-
115
-Server.prototype.set = function(key, val){
116
-  if ('authorization' == key && val) {
117
-    this.use(function(socket, next) {
118
-      val(socket.request, function(err, authorized) {
119
-        if (err) return next(new Error(err));
120
-        if (!authorized) return next(new Error('Not authorized'));
121
-        next();
122
-      });
123
-    });
124
-  } else if ('origins' == key && val) {
125
-    this.origins(val);
126
-  } else if ('resource' == key) {
127
-    this.path(val);
128
-  } else if (oldSettings[key] && this.eio[oldSettings[key]]) {
129
-    this.eio[oldSettings[key]] = val;
130
-  } else {
131
-    console.error('Option %s is not valid. Please refer to the README.', key);
132
-  }
133
-
134
-  return this;
135
-};
136
-
137
-/**
138
- * Sets the client serving path.
139
- *
140
- * @param {String} pathname
141
- * @return {Server|String} self when setting or value when getting
142
- * @api public
143
- */
144
-
145
-Server.prototype.path = function(v){
146
-  if (!arguments.length) return this._path;
147
-  this._path = v.replace(/\/$/, '');
148
-  return this;
149
-};
150
-
151
-/**
152
- * Sets the adapter for rooms.
153
- *
154
- * @param {Adapter} pathname
155
- * @return {Server|Adapter} self when setting or value when getting
156
- * @api public
157
- */
158
-
159
-Server.prototype.adapter = function(v){
160
-  if (!arguments.length) return this._adapter;
161
-  this._adapter = v;
162
-  for (var i in this.nsps) {
163
-    if (this.nsps.hasOwnProperty(i)) {
164
-      this.nsps[i].initAdapter();
165
-    }
166
-  }
167
-  return this;
168
-};
169
-
170
-/**
171
- * Sets the allowed origins for requests.
172
- *
173
- * @param {String} origins
174
- * @return {Server|Adapter} self when setting or value when getting
175
- * @api public
176
- */
177
-
178
-Server.prototype.origins = function(v){
179
-  if (!arguments.length) return this._origins;
180
-
181
-  this._origins = v;
182
-  return this;
183
-};
184
-
185
-/**
186
- * Attaches socket.io to a server or port.
187
- *
188
- * @param {http.Server|Number} server or port
189
- * @param {Object} options passed to engine.io
190
- * @return {Server} self
191
- * @api public
192
- */
193
-
194
-Server.prototype.listen =
195
-Server.prototype.attach = function(srv, opts){
196
-  if ('function' == typeof srv) {
197
-    var msg = 'You are trying to attach socket.io to an express ' +
198
-    'request handler function. Please pass a http.Server instance.';
199
-    throw new Error(msg);
200
-  }
201
-
202
-  // handle a port as a string
203
-  if (Number(srv) == srv) {
204
-    srv = Number(srv);
205
-  }
206
-
207
-  if ('number' == typeof srv) {
208
-    debug('creating http server and binding to %d', srv);
209
-    var port = srv;
210
-    srv = http.Server(function(req, res){
211
-      res.writeHead(404);
212
-      res.end();
213
-    });
214
-    srv.listen(port);
215
-
216
-  }
217
-
218
-  // set engine.io path to `/socket.io`
219
-  opts = opts || {};
220
-  opts.path = opts.path || this.path();
221
-  // set origins verification
222
-  opts.allowRequest = this.checkRequest.bind(this);
223
-
224
-  // initialize engine
225
-  debug('creating engine.io instance with opts %j', opts);
226
-  this.eio = engine.attach(srv, opts);
227
-
228
-  // attach static file serving
229
-  if (this._serveClient) this.attachServe(srv);
230
-
231
-  // Export http server
232
-  this.httpServer = srv;
233
-
234
-  // bind to engine events
235
-  this.bind(this.eio);
236
-
237
-  return this;
238
-};
239
-
240
-/**
241
- * Attaches the static file serving.
242
- *
243
- * @param {Function|http.Server} http server
244
- * @api private
245
- */
246
-
247
-Server.prototype.attachServe = function(srv){
248
-  debug('attaching client serving req handler');
249
-  var url = this._path + '/socket.io.js';
250
-  var evs = srv.listeners('request').slice(0);
251
-  var self = this;
252
-  srv.removeAllListeners('request');
253
-  srv.on('request', function(req, res) {
254
-    if (0 == req.url.indexOf(url)) {
255
-      self.serve(req, res);
256
-    } else {
257
-      for (var i = 0; i < evs.length; i++) {
258
-        evs[i].call(srv, req, res);
259
-      }
260
-    }
261
-  });
262
-};
263
-
264
-/**
265
- * Handles a request serving `/socket.io.js`
266
- *
267
- * @param {http.Request} req
268
- * @param {http.Response} res
269
- * @api private
270
- */
271
-
272
-Server.prototype.serve = function(req, res){
273
-  var etag = req.headers['if-none-match'];
274
-  if (etag) {
275
-    if (clientVersion == etag) {
276
-      debug('serve client 304');
277
-      res.writeHead(304);
278
-      res.end();
279
-      return;
280
-    }
281
-  }
282
-
283
-  debug('serve client source');
284
-  res.setHeader('Content-Type', 'application/javascript');
285
-  res.setHeader('ETag', clientVersion);
286
-  res.writeHead(200);
287
-  res.end(clientSource);
288
-};
289
-
290
-/**
291
- * Binds socket.io to an engine.io instance.
292
- *
293
- * @param {engine.Server} engine.io (or compatible) server
294
- * @return {Server} self
295
- * @api public
296
- */
297
-
298
-Server.prototype.bind = function(engine){
299
-  this.engine = engine;
300
-  this.engine.on('connection', this.onconnection.bind(this));
301
-  return this;
302
-};
303
-
304
-/**
305
- * Called with each incoming transport connection.
306
- *
307
- * @param {engine.Socket} socket
308
- * @return {Server} self
309
- * @api public
310
- */
311
-
312
-Server.prototype.onconnection = function(conn){
313
-  debug('incoming connection with id %s', conn.id);
314
-  var client = new Client(this, conn);
315
-  client.connect('/');
316
-  return this;
317
-};
318
-
319
-/**
320
- * Looks up a namespace.
321
- *
322
- * @param {String} nsp name
323
- * @param {Function} optional, nsp `connection` ev handler
324
- * @api public
325
- */
326
-
327
-Server.prototype.of = function(name, fn){
328
-  if (String(name)[0] !== '/') name = '/' + name;
329
-  
330
-  if (!this.nsps[name]) {
331
-    debug('initializing namespace %s', name);
332
-    var nsp = new Namespace(this, name);
333
-    this.nsps[name] = nsp;
334
-  }
335
-  if (fn) this.nsps[name].on('connect', fn);
336
-  return this.nsps[name];
337
-};
338
-
339
-/**
340
- * Closes server connection
341
- *
342
- * @api public
343
- */
344
-
345
-Server.prototype.close = function(){
346
-  this.nsps['/'].sockets.forEach(function(socket){
347
-    socket.onclose();
348
-  });
349
-
350
-  this.engine.close();
351
-
352
-  if(this.httpServer){
353
-    this.httpServer.close();
354
-  }
355
-};
356
-
357
-/**
358
- * Expose main namespace (/).
359
- */
360
-
361
-['on', 'to', 'in', 'use', 'emit', 'send', 'write'].forEach(function(fn){
362
-  Server.prototype[fn] = function(){
363
-    var nsp = this.sockets[fn];
364
-    return nsp.apply(this.sockets, arguments);
365
-  };
366
-});
367
-
368
-Namespace.flags.forEach(function(flag){
369
-  Server.prototype.__defineGetter__(flag, function(name){
370
-    this.flags.push(name);
371
-    return this;
372
-  });
373
-});
374
-
375
-/**
376
- * BC with `io.listen`
377
- */
378
-
379
-Server.listen = Server;

+ 0
- 242
web/multi/server/node_modules/socket.io/lib/namespace.js View File

@@ -1,242 +0,0 @@
1
-
2
-/**
3
- * Module dependencies.
4
- */
5
-
6
-var Socket = require('./socket');
7
-var Emitter = require('events').EventEmitter;
8
-var parser = require('socket.io-parser');
9
-var debug = require('debug')('socket.io:namespace');
10
-var hasBin = require('has-binary-data');
11
-
12
-/**
13
- * Module exports.
14
- */
15
-
16
-module.exports = exports = Namespace;
17
-
18
-/**
19
- * Blacklisted events.
20
- */
21
-
22
-exports.events = [
23
-  'connect',    // for symmetry with client
24
-  'connection',
25
-  'newListener'
26
-];
27
-
28
-/**
29
- * Flags.
30
- */
31
-
32
-exports.flags = ['json'];
33
-
34
-/**
35
- * `EventEmitter#emit` reference.
36
- */
37
-
38
-var emit = Emitter.prototype.emit;
39
-
40
-/**
41
- * Namespace constructor.
42
- *
43
- * @param {Server} server instance
44
- * @param {Socket} name
45
- * @api private
46
- */
47
-
48
-function Namespace(server, name){
49
-  this.name = name;
50
-  this.server = server;
51
-  this.sockets = [];
52
-  this.connected = {};
53
-  this.fns = [];
54
-  this.ids = 0;
55
-  this.acks = {};
56
-  this.initAdapter();
57
-}
58
-
59
-/**
60
- * Inherits from `EventEmitter`.
61
- */
62
-
63
-Namespace.prototype.__proto__ = Emitter.prototype;
64
-
65
-/**
66
- * Apply flags from `Socket`.
67
- */
68
-
69
-exports.flags.forEach(function(flag){
70
-  Namespace.prototype.__defineGetter__(flag, function(){
71
-    this.flags = this.flags || {};
72
-    this.flags[flag] = true;
73
-    return this;
74
-  });
75
-});
76
-
77
-/**
78
- * Initializes the `Adapter` for this nsp.
79
- * Run upon changing adapter by `Server#adapter`
80
- * in addition to the constructor.
81
- *
82
- * @api private
83
- */
84
-
85
-Namespace.prototype.initAdapter = function(){
86
-  this.adapter = new (this.server.adapter())(this);
87
-};
88
-
89
-/**
90
- * Sets up namespace middleware.
91
- *
92
- * @return {Namespace} self
93
- * @api public
94
- */
95
-
96
-Namespace.prototype.use = function(fn){
97
-  this.fns.push(fn);
98
-  return this;
99
-};
100
-
101
-/**
102
- * Executes the middleware for an incoming client.
103
- *
104
- * @param {Socket} socket that will get added
105
- * @param {Function} last fn call in the middleware
106
- * @api private
107
- */
108
-
109
-Namespace.prototype.run = function(socket, fn){
110
-  var fns = this.fns.slice(0);
111
-  if (!fns.length) return fn(null);
112
-
113
-  function run(i){
114
-    fns[i](socket, function(err){
115
-      // upon error, short-circuit
116
-      if (err) return fn(err);
117
-
118
-      // if no middleware left, summon callback
119
-      if (!fns[i + 1]) return fn(null);
120
-
121
-      // go on to next
122
-      run(i + 1);
123
-    });
124
-  }
125
-
126
-  run(0);
127
-};
128
-
129
-/**
130
- * Targets a room when emitting.
131
- *
132
- * @param {String} name
133
- * @return {Namespace} self
134
- * @api public
135
- */
136
-
137
-Namespace.prototype.to =
138
-Namespace.prototype['in'] = function(name){
139
-  this.rooms = this.rooms || [];
140
-  if (!~this.rooms.indexOf(name)) this.rooms.push(name);
141
-  return this;
142
-};
143
-
144
-/**
145
- * Adds a new client.
146
- *
147
- * @return {Socket}
148
- * @api private
149
- */
150
-
151
-Namespace.prototype.add = function(client, fn){
152
-  debug('adding socket to nsp %s', this.name);
153
-  var socket = new Socket(this, client);
154
-  var self = this;
155
-  this.run(socket, function(err){
156
-    process.nextTick(function(){
157
-      if ('open' == client.conn.readyState) {
158
-        if (err) return socket.error(err.data || err.message);
159
-
160
-        // track socket
161
-        self.sockets.push(socket);
162
-
163
-        // it's paramount that the internal `onconnect` logic
164
-        // fires before user-set events to prevent state order
165
-        // violations (such as a disconnection before the connection
166
-        // logic is complete)
167
-        socket.onconnect();
168
-        if (fn) fn();
169
-
170
-        // fire user-set events
171
-        self.emit('connect', socket);
172
-        self.emit('connection', socket);
173
-      } else {
174
-        debug('next called after client was closed - ignoring socket');
175
-      }
176
-    });
177
-  });
178
-  return socket;
179
-};
180
-
181
-/**
182
- * Removes a client. Called by each `Socket`.
183
- *
184
- * @api private
185
- */
186
-
187
-Namespace.prototype.remove = function(socket){
188
-  var i = this.sockets.indexOf(socket);
189
-  if (~i) {
190
-    this.sockets.splice(i, 1);
191
-  } else {
192
-    debug('ignoring remove for %s', socket.id);
193
-  }
194
-};
195
-
196
-/**
197
- * Emits to all clients.
198
- *
199
- * @return {Namespace} self
200
- * @api public
201
- */
202
-
203
-Namespace.prototype.emit = function(ev){
204
-  if (~exports.events.indexOf(ev)) {
205
-    emit.apply(this, arguments);
206
-  } else {
207
-    // set up packet object
208
-    var args = Array.prototype.slice.call(arguments);
209
-    var parserType = parser.EVENT; // default
210
-    if (hasBin(args)) { parserType = parser.BINARY_EVENT; } // binary
211
-
212
-    var packet = { type: parserType, data: args };
213
-
214
-    if ('function' == typeof args[args.length - 1]) {
215
-      throw new Error('Callbacks are not supported when broadcasting');
216
-    }
217
-
218
-    this.adapter.broadcast(packet, {
219
-      rooms: this.rooms,
220
-      flags: this.flags
221
-    });
222
-
223
-    delete this.rooms;
224
-    delete this.flags;
225
-  }
226
-  return this;
227
-};
228
-
229
-/**
230
- * Sends a `message` event to all clients.
231
- *
232
- * @return {Namespace} self
233
- * @api public
234
- */
235
-
236
-Namespace.prototype.send =
237
-Namespace.prototype.write = function(){
238
-  var args = Array.prototype.slice.call(arguments);
239
-  args.unshift('message');
240
-  this.emit.apply(this, args);
241
-  return this;
242
-};

+ 0
- 449
web/multi/server/node_modules/socket.io/lib/socket.js View File

@@ -1,449 +0,0 @@
1
-
2
-/**
3
- * Module dependencies.
4
- */
5
-
6
-var Emitter = require('events').EventEmitter;
7
-var parser = require('socket.io-parser');
8
-var url = require('url');
9
-var debug = require('debug')('socket.io:socket');
10
-var hasBin = require('has-binary-data');
11
-
12
-/**
13
- * Module exports.
14
- */
15
-
16
-module.exports = exports = Socket;
17
-
18
-/**
19
- * Blacklisted events.
20
- *
21
- * @api public
22
- */
23
-
24
-exports.events = [
25
-  'error',
26
-  'connect',
27
-  'disconnect',
28
-  'newListener',
29
-  'removeListener'
30
-];
31
-
32
-/**
33
- * Flags.
34
- *
35
- * @api private
36
- */
37
-
38
-var flags = [
39
-  'json',
40
-  'volatile',
41
-  'broadcast'
42
-];
43
-
44
-/**
45
- * `EventEmitter#emit` reference.
46
- */
47
-
48
-var emit = Emitter.prototype.emit;
49
-
50
-/**
51
- * Interface to a `Client` for a given `Namespace`.
52
- *
53
- * @param {Namespace} nsp
54
- * @param {Client} client
55
- * @api public
56
- */
57
-
58
-function Socket(nsp, client){
59
-  this.nsp = nsp;
60
-  this.server = nsp.server;
61
-  this.adapter = this.nsp.adapter;
62
-  this.id = client.id;
63
-  this.request = client.request;
64
-  this.client = client;
65
-  this.conn = client.conn;
66
-  this.rooms = [];
67
-  this.acks = {};
68
-  this.connected = true;
69
-  this.disconnected = false;
70
-  this.handshake = this.buildHandshake();
71
-}
72
-
73
-/**
74
- * Inherits from `EventEmitter`.
75
- */
76
-
77
-Socket.prototype.__proto__ = Emitter.prototype;
78
-
79
-/**
80
- * Apply flags from `Socket`.
81
- */
82
-
83
-flags.forEach(function(flag){
84
-  Socket.prototype.__defineGetter__(flag, function(){
85
-    this.flags = this.flags || {};
86
-    this.flags[flag] = true;
87
-    return this;
88
-  });
89
-});
90
-
91
-/**
92
- * `request` engine.io shorcut.
93
- *
94
- * @api public
95
- */
96
-
97
-Socket.prototype.__defineGetter__('request', function(){
98
-  return this.conn.request;
99
-});
100
-
101
-/**
102
- * Builds the `handshake` BC object
103
- *
104
- * @api private
105
- */
106
-
107
-Socket.prototype.buildHandshake = function(){
108
-  return {
109
-    headers: this.request.headers,
110
-    time: (new Date) + '',
111
-    address: this.conn.remoteAddress,
112
-    xdomain: !!this.request.headers.origin,
113
-    secure: !!this.request.connection.encrypted,
114
-    issued: +(new Date),
115
-    url: this.request.url,
116
-    query: url.parse(this.request.url, true).query || {}
117
-  };
118
-};
119
-
120
-/**
121
- * Emits to this client.
122
- *
123
- * @return {Socket} self
124
- * @api public
125
- */
126
-
127
-Socket.prototype.emit = function(ev){
128
-  if (~exports.events.indexOf(ev)) {
129
-    emit.apply(this, arguments);
130
-  } else {
131
-    var args = Array.prototype.slice.call(arguments);
132
-    var packet = {};
133
-    packet.type = hasBin(args) ? parser.BINARY_EVENT : parser.EVENT;
134
-    packet.data = args;
135
-
136
-    // access last argument to see if it's an ACK callback
137
-    if ('function' == typeof args[args.length - 1]) {
138
-      if (this._rooms || (this.flags && this.flags.broadcast)) {
139
-        throw new Error('Callbacks are not supported when broadcasting');
140
-      }
141
-
142
-      debug('emitting packet with ack id %d', this.nsp.ids);
143
-      this.acks[this.nsp.ids] = args.pop();
144
-      packet.id = this.nsp.ids++;
145
-    }
146
-
147
-    if (this._rooms || (this.flags && this.flags.broadcast)) {
148
-      this.adapter.broadcast(packet, {
149
-        except: [this.id],
150
-        rooms: this._rooms,
151
-        flags: this.flags
152
-      });
153
-    } else {
154
-      // dispatch packet
155
-      this.packet(packet);
156
-    }
157
-
158
-    // reset flags
159
-    delete this._rooms;
160
-    delete this.flags;
161
-  }
162
-  return this;
163
-};
164
-
165
-/**
166
- * Targets a room when broadcasting.
167
- *
168
- * @param {String} name
169
- * @return {Socket} self
170
- * @api public
171
- */
172
-
173
-Socket.prototype.to =
174
-Socket.prototype.in = function(name){
175
-  this._rooms = this._rooms || [];
176
-  if (!~this._rooms.indexOf(name)) this._rooms.push(name);
177
-  return this;
178
-};
179
-
180
-/**
181
- * Sends a `message` event.
182
- *
183
- * @return {Socket} self
184
- * @api public
185
- */
186
-
187
-Socket.prototype.send =
188
-Socket.prototype.write = function(){
189
-  var args = Array.prototype.slice.call(arguments);
190
-  args.unshift('message');
191
-  this.emit.apply(this, args);
192
-  return this;
193
-};
194
-
195
-/**
196
- * Writes a packet.
197
- *
198
- * @param {Object} packet object
199
- * @api private
200
- */
201
-
202
-Socket.prototype.packet = function(packet, preEncoded){
203
-  packet.nsp = this.nsp.name;
204
-  var volatile = this.flags && this.flags.volatile;
205
-  this.client.packet(packet, preEncoded, volatile);
206
-};
207
-
208
-/**
209
- * Joins a room.
210
- *
211
- * @param {String} room
212
- * @param {Function} optional, callback
213
- * @return {Socket} self
214
- * @api private
215
- */
216
-
217
-Socket.prototype.join = function(room, fn){
218
-  debug('joining room %s', room);
219
-  var self = this;
220
-  if (~this.rooms.indexOf(room)) return this;
221
-  this.adapter.add(this.id, room, function(err){
222
-    if (err) return fn && fn(err);
223
-    debug('joined room %s', room);
224
-    self.rooms.push(room);
225
-    fn && fn(null);
226
-  });
227
-  return this;
228
-};
229
-
230
-/**
231
- * Leaves a room.
232
- *
233
- * @param {String} room
234
- * @param {Function} optional, callback
235
- * @return {Socket} self
236
- * @api private
237
- */
238
-
239
-Socket.prototype.leave = function(room, fn){
240
-  debug('leave room %s', room);
241
-  var self = this;
242
-  this.adapter.del(this.id, room, function(err){
243
-    if (err) return fn && fn(err);
244
-    debug('left room %s', room);
245
-    var idx = self.rooms.indexOf(room);
246
-    if (idx >= 0) {
247
-      self.rooms.splice(idx, 1);
248
-    }
249
-    fn && fn(null);
250
-  });
251
-  return this;
252
-};
253
-
254
-/**
255
- * Leave all rooms.
256
- *
257
- * @api private
258
- */
259
-
260
-Socket.prototype.leaveAll = function(){
261
-  this.adapter.delAll(this.id);
262
-  this.rooms = [];
263
-};
264
-
265
-/**
266
- * Called by `Namespace` upon succesful
267
- * middleware execution (ie: authorization).
268
- *
269
- * @api private
270
- */
271
-
272
-Socket.prototype.onconnect = function(){
273
-  debug('socket connected - writing packet');
274
-  this.join(this.id);
275
-  this.packet({ type: parser.CONNECT });
276
-  this.nsp.connected[this.id] = this;
277
-};
278
-
279
-/**
280
- * Called with each packet. Called by `Client`.
281
- *
282
- * @param {Object} packet
283
- * @api private
284
- */
285
-
286
-Socket.prototype.onpacket = function(packet){
287
-  debug('got packet %j', packet);
288
-  switch (packet.type) {
289
-    case parser.EVENT:
290
-      this.onevent(packet);
291
-      break;
292
-
293
-    case parser.BINARY_EVENT:
294
-      this.onevent(packet);
295
-      break;
296
-
297
-    case parser.ACK:
298
-      this.onack(packet);
299
-      break;
300
-
301
-    case parser.BINARY_ACK:
302
-      this.onack(packet);
303
-      break;
304
-
305
-    case parser.DISCONNECT:
306
-      this.ondisconnect();
307
-      break;
308
-
309
-    case parser.ERROR:
310
-      this.emit('error', packet.data);
311
-  }
312
-};
313
-
314
-/**
315
- * Called upon event packet.
316
- *
317
- * @param {Object} packet object
318
- * @api private
319
- */
320
-
321
-Socket.prototype.onevent = function(packet){
322
-  var args = packet.data || [];
323
-  debug('emitting event %j', args);
324
-
325
-  if (null != packet.id) {
326
-    debug('attaching ack callback to event');
327
-    args.push(this.ack(packet.id));
328
-  }
329
-
330
-  emit.apply(this, args);
331
-};
332
-
333
-/**
334
- * Produces an ack callback to emit with an event.
335
- *
336
- * @param {Number} packet id
337
- * @api private
338
- */
339
-
340
-Socket.prototype.ack = function(id){
341
-  var self = this;
342
-  var sent = false;
343
-  return function(){
344
-    // prevent double callbacks
345
-    if (sent) return;
346
-    var args = Array.prototype.slice.call(arguments);
347
-    debug('sending ack %j', args);
348
-
349
-    var type = hasBin(args) ? parser.BINARY_ACK : parser.ACK;
350
-    self.packet({
351
-      id: id,
352
-      type: type,
353
-      data: args
354
-    });
355
-  };
356
-};
357
-
358
-/**
359
- * Called upon ack packet.
360
- *
361
- * @api private
362
- */
363
-
364
-Socket.prototype.onack = function(packet){
365
-  var ack = this.acks[packet.id];
366
-  if ('function' == typeof ack) {
367
-    debug('calling ack %s with %j', packet.id, packet.data);
368
-    ack.apply(this, packet.data);
369
-    delete this.acks[packet.id];
370
-  } else {
371
-    debug('bad ack %s', packet.id);
372
-  }
373
-};
374
-
375
-/**
376
- * Called upon client disconnect packet.
377
- *
378
- * @api private
379
- */
380
-
381
-Socket.prototype.ondisconnect = function(){
382
-  debug('got disconnect packet');
383
-  this.onclose('client namespace disconnect');
384
-};
385
-
386
-/**
387
- * Handles a client error.
388
- *
389
- * @api private
390
- */
391
-
392
-Socket.prototype.onerror = function(err){
393
-  if (this.listeners('error').length) {
394
-    this.emit('error', err);
395
-  } else {
396
-    console.error('Missing error handler on `socket`.');
397
-    console.error(err.stack);
398
-  }
399
-};
400
-
401
-/**
402
- * Called upon closing. Called by `Client`.
403
- *
404
- * @param {String} reason
405
- * @param {Error} optional error object
406
- * @api private
407
- */
408
-
409
-Socket.prototype.onclose = function(reason){
410
-  if (!this.connected) return this;
411
-  debug('closing socket - reason %s', reason);
412
-  this.leaveAll();
413
-  this.nsp.remove(this);
414
-  this.client.remove(this);
415
-  this.connected = false;
416
-  this.disconnected = true;
417
-  delete this.nsp.connected[this.id];
418
-  this.emit('disconnect', reason);
419
-};
420
-
421
-/**
422
- * Produces an `error` packet.
423
- *
424
- * @param {Object} error object
425
- * @api private
426
- */
427
-
428
-Socket.prototype.error = function(err){
429
-  this.packet({ type: parser.ERROR, data: err });
430
-};
431
-
432
-/**
433
- * Disconnects this client.
434
- *
435
- * @param {Boolean} if `true`, closes the underlying connection
436
- * @return {Socket} self
437
- * @api public
438
- */
439
-
440
-Socket.prototype.disconnect = function(close){
441
-  if (!this.connected) return this;
442
-  if (close) {
443
-    this.client.disconnect();
444
-  } else {
445
-    this.packet({ type: parser.DISCONNECT });
446
-    this.onclose('server namespace disconnect');
447
-  }
448
-  return this;
449
-};

+ 0
- 3
web/multi/server/node_modules/socket.io/node_modules/debug/.jshintrc View File

@@ -1,3 +0,0 @@
1
-{
2
-  "laxbreak": true
3
-}

+ 0
- 6
web/multi/server/node_modules/socket.io/node_modules/debug/.npmignore View File

@@ -1,6 +0,0 @@
1
-support
2
-test
3
-examples
4
-example
5
-*.sock
6
-dist

+ 0
- 157
web/multi/server/node_modules/socket.io/node_modules/debug/History.md View File

@@ -1,157 +0,0 @@
1
-
2
-2.1.0 / 2014-10-15
3
-==================
4
-
5
- * node: implement `DEBUG_FD` env variable support
6
- * package: update "browserify" to v6.1.0
7
- * package: add "license" field to package.json (#135, @panuhorsmalahti)
8
-
9
-2.0.0 / 2014-09-01
10
-==================
11
-
12
- * package: update "browserify" to v5.11.0
13
- * node: use stderr rather than stdout for logging (#29, @stephenmathieson)
14
-
15
-1.0.4 / 2014-07-15
16
-==================
17
-
18
- * dist: recompile
19
- * example: remove `console.info()` log usage
20
- * example: add "Content-Type" UTF-8 header to browser example
21
- * browser: place %c marker after the space character
22
- * browser: reset the "content" color via `color: inherit`
23
- * browser: add colors support for Firefox >= v31
24
- * debug: prefer an instance `log()` function over the global one (#119)
25
- * Readme: update documentation about styled console logs for FF v31 (#116, @wryk)
26
-
27
-1.0.3 / 2014-07-09
28
-==================
29
-
30
- * Add support for multiple wildcards in namespaces (#122, @seegno)
31
- * browser: fix lint
32
-
33
-1.0.2 / 2014-06-10
34
-==================
35
-
36
-  * browser: update color palette (#113, @gscottolson)
37
-  * common: make console logging function configurable (#108, @timoxley)
38
-  * node: fix %o colors on old node <= 0.8.x
39
-  * Makefile: find node path using shell/which (#109, @timoxley)
40
-
41
-1.0.1 / 2014-06-06
42
-==================
43
-
44
-  * browser: use `removeItem()` to clear localStorage
45
-  * browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
46
-  * package: add "contributors" section
47
-  * node: fix comment typo
48
-  * README: list authors
49
-
50
-1.0.0 / 2014-06-04
51
-==================
52
-
53
-  * make ms diff be global, not be scope
54
-  * debug: ignore empty strings in enable()
55
-  * node: make DEBUG_COLORS able to disable coloring
56
-  * *: export the `colors` array
57
-  * npmignore: don't publish the `dist` dir
58
-  * Makefile: refactor to use browserify
59
-  * package: add "browserify" as a dev dependency
60
-  * Readme: add Web Inspector Colors section
61
-  * node: reset terminal color for the debug content
62
-  * node: map "%o" to `util.inspect()`
63
-  * browser: map "%j" to `JSON.stringify()`
64
-  * debug: add custom "formatters"
65
-  * debug: use "ms" module for humanizing the diff
66
-  * Readme: add "bash" syntax highlighting
67
-  * browser: add Firebug color support
68
-  * browser: add colors for WebKit browsers
69
-  * node: apply log to `console`
70
-  * rewrite: abstract common logic for Node & browsers
71
-  * add .jshintrc file
72
-
73
-0.8.1 / 2014-04-14
74
-==================
75
-
76
-  * package: re-add the "component" section
77
-
78
-0.8.0 / 2014-03-30
79
-==================
80
-
81
-  * add `enable()` method for nodejs. Closes #27
82
-  * change from stderr to stdout
83
-  * remove unnecessary index.js file
84
-
85
-0.7.4 / 2013-11-13
86
-==================
87
-
88
-  * remove "browserify" key from package.json (fixes something in browserify)
89
-
90
-0.7.3 / 2013-10-30
91
-==================
92
-
93
-  * fix: catch localStorage security error when cookies are blocked (Chrome)
94
-  * add debug(err) support. Closes #46
95
-  * add .browser prop to package.json. Closes #42
96
-
97
-0.7.2 / 2013-02-06
98
-==================
99
-
100
-  * fix package.json
101
-  * fix: Mobile Safari (private mode) is broken with debug
102
-  * fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
103
-
104
-0.7.1 / 2013-02-05
105
-==================
106
-
107
-  * add repository URL to package.json
108
-  * add DEBUG_COLORED to force colored output
109
-  * add browserify support
110
-  * fix component. Closes #24
111
-
112
-0.7.0 / 2012-05-04
113
-==================
114
-
115
-  * Added .component to package.json
116
-  * Added debug.component.js build
117
-
118
-0.6.0 / 2012-03-16
119
-==================
120
-
121
-  * Added support for "-" prefix in DEBUG [Vinay Pulim]
122
-  * Added `.enabled` flag to the node version [TooTallNate]
123
-
124
-0.5.0 / 2012-02-02
125
-==================
126
-
127
-  * Added: humanize diffs. Closes #8
128
-  * Added `debug.disable()` to the CS variant
129
-  * Removed padding. Closes #10
130
-  * Fixed: persist client-side variant again. Closes #9
131
-
132
-0.4.0 / 2012-02-01
133
-==================
134
-
135
-  * Added browser variant support for older browsers [TooTallNate]
136
-  * Added `debug.enable('project:*')` to browser variant [TooTallNate]
137
-  * Added padding to diff (moved it to the right)
138
-
139
-0.3.0 / 2012-01-26
140
-==================
141
-
142
-  * Added millisecond diff when isatty, otherwise UTC string
143
-
144
-0.2.0 / 2012-01-22
145
-==================
146
-
147
-  * Added wildcard support
148
-
149
-0.1.0 / 2011-12-02
150
-==================
151
-
152
-  * Added: remove colors unless stderr isatty [TooTallNate]
153
-
154
-0.0.1 / 2010-01-03
155
-==================
156
-
157
-  * Initial release

+ 0
- 33
web/multi/server/node_modules/socket.io/node_modules/debug/Makefile View File

@@ -1,33 +0,0 @@
1
-
2
-# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3
-THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4
-THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5
-
6
-# BIN directory
7
-BIN := $(THIS_DIR)/node_modules/.bin
8
-
9
-# applications
10
-NODE ?= $(shell which node)
11
-NPM ?= $(NODE) $(shell which npm)
12
-BROWSERIFY ?= $(NODE) $(BIN)/browserify
13
-
14
-all: dist/debug.js
15
-
16
-install: node_modules
17
-
18
-clean:
19
-	@rm -rf node_modules dist
20
-
21
-dist:
22
-	@mkdir -p $@
23
-
24
-dist/debug.js: node_modules browser.js debug.js dist
25
-	@$(BROWSERIFY) \
26
-		--standalone debug \
27
-		. > $@
28
-
29
-node_modules: package.json
30
-	@NODE_ENV= $(NPM) install
31
-	@touch node_modules
32
-
33
-.PHONY: all install clean

+ 0
- 156
web/multi/server/node_modules/socket.io/node_modules/debug/Readme.md View File

@@ -1,156 +0,0 @@
1
-# debug
2
-
3
-  tiny node.js debugging utility modelled after node core's debugging technique.
4
-
5
-## Installation
6
-
7
-```bash
8
-$ npm install debug
9
-```
10
-
11
-## Usage
12
-
13
- With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.
14
-
15
-Example _app.js_:
16
-
17
-```js
18
-var debug = require('debug')('http')
19
-  , http = require('http')
20
-  , name = 'My App';
21
-
22
-// fake app
23
-
24
-debug('booting %s', name);
25
-
26
-http.createServer(function(req, res){
27
-  debug(req.method + ' ' + req.url);
28
-  res.end('hello\n');
29
-}).listen(3000, function(){
30
-  debug('listening');
31
-});
32
-
33
-// fake worker of some kind
34
-
35
-require('./worker');
36
-```
37
-
38
-Example _worker.js_:
39
-
40
-```js
41
-var debug = require('debug')('worker');
42
-
43
-setInterval(function(){
44
-  debug('doing some work');
45
-}, 1000);
46
-```
47
-
48
- The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:
49
-
50
-  ![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)
51
-
52
-  ![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)
53
-
54
-## Millisecond diff
55
-
56
-  When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls.
57
-
58
-  ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)
59
-
60
-  When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:
61
-
62
-  ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)
63
-
64
-## Conventions
65
-
66
- If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser".
67
-
68
-## Wildcards
69
-
70
-  The `*` character may be used as a wildcard. Suppose for example your library has debuggers named "connect:bodyParser", "connect:compress", "connect:session", instead of listing all three with `DEBUG=connect:bodyParser,connect.compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.
71
-
72
-  You can also exclude specific debuggers by prefixing them with a "-" character.  For example, `DEBUG=*,-connect:*` would include all debuggers except those starting with "connect:".
73
-
74
-## Browser support
75
-
76
-  Debug works in the browser as well, currently persisted by `localStorage`. For example if you have `worker:a` and `worker:b` as shown below, and wish to debug both type `debug.enable('worker:*')` in the console and refresh the page, this will remain until you disable with `debug.disable()`.
77
-
78
-```js
79
-a = debug('worker:a');
80
-b = debug('worker:b');
81
-
82
-setInterval(function(){
83
-  a('doing some work');
84
-}, 1000);
85
-
86
-setInterval(function(){
87
-  b('doing some work');
88
-}, 1200);
89
-```
90
-
91
-#### Web Inspector Colors
92
-
93
-  Colors are also enabled on "Web Inspectors" that understand the `%c` formatting
94
-  option. These are WebKit web inspectors, Firefox ([since version
95
-  31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))
96
-  and the Firebug plugin for Firefox (any version).
97
-
98
-  Colored output looks something like:
99
-
100
-  ![](https://cloud.githubusercontent.com/assets/71256/3139768/b98c5fd8-e8ef-11e3-862a-f7253b6f47c6.png)
101
-
102
-### stderr vs stdout
103
-
104
-You can set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:
105
-
106
-Example _stderr.js_:
107
-
108
-```js
109
-var debug = require('../');
110
-var log = debug('app:log');
111
-
112
-// by default console.log is used
113
-log('goes to stdout!');
114
-
115
-var error = debug('app:error');
116
-// set this namespace to log via console.error
117
-error.log = console.error.bind(console); // don't forget to bind to console!
118
-error('goes to stderr');
119
-log('still goes to stdout!');
120
-
121
-// set all output to go via console.warn
122
-// overrides all per-namespace log settings
123
-debug.log = console.warn.bind(console);
124
-log('now goes to stderr via console.warn');
125
-error('still goes to stderr, but via console.warn now');
126
-```
127
-
128
-## Authors
129
-
130
- - TJ Holowaychuk
131
- - Nathan Rajlich
132
-
133
-## License
134
-
135
-(The MIT License)
136
-
137
-Copyright (c) 2014 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
138
-
139
-Permission is hereby granted, free of charge, to any person obtaining
140
-a copy of this software and associated documentation files (the
141
-'Software'), to deal in the Software without restriction, including
142
-without limitation the rights to use, copy, modify, merge, publish,
143
-distribute, sublicense, and/or sell copies of the Software, and to
144
-permit persons to whom the Software is furnished to do so, subject to
145
-the following conditions:
146
-
147