Damien Arrachequesne
09f446eca0
Add hasOwnProperty checks
2015-11-23 15:12:21 +01:00
Damien Arrachequesne
b73d9bea4e
converted arrays to objects
2015-11-22 11:12:40 +01:00
Damien Arrachequesne
aae68d74b1
Minor performance optimization
2015-11-20 22:03:03 +01:00
Guillermo Rauch
b1775b1cb8
Merge pull request #2051 from tobalsgithub/master
...
Allowing a custom function for opts.allowRequest
2015-11-16 13:15:08 -08:00
TC
1dde0f3947
Allowing a custom function for opts.allowRequest
2015-03-12 15:50:31 -06:00
Naoyuki Kanezawa
53cdd8f1fc
support flags on namespace
2015-02-20 03:34:09 +09:00
Ruben Rodriguez II
8814825a35
Suggestion for implementation of clients API
2015-01-31 02:17:49 -06:00
Guillermo Rauch
2f0d9d05af
fix origin verification default https port [evanlucas]
...
for PR #1693
2015-01-22 21:41:59 +00:00
Alexey Chuvashov
f5b75151bd
Add space in error message
2015-01-15 01:24:19 +03:00
Drew Blaisdell
a116d7765a
Allow null or undefined origins when allowed origins is a function
...
Requests without an Origin header previously caused an exception to be thrown if the allowed origins passed to the constructor was set to a dynamic function. Omitted origins are now set to an asterisk and passed properly to the origins function.
A test for this case is included in this commit.
2015-01-09 16:30:08 -08:00
Tony Kovanen
1b4f6a5324
Merge pull request #1777 from akamensky/dynamic-cors
...
Dynamic cors
2014-09-22 13:38:14 -06:00
Tony Kovanen
fa4fa3365a
Merge pull request #1690 from rase-/fix/resource-option-bc
...
Fix resource option BC with the set function
2014-09-22 12:27:35 -06:00
akamensky
9658e32e7a
Added optional Server#origins(function) for dynamic CORS
2014-09-12 10:53:14 +08:00
Anup Bishnoi
f56d4acce6
testing for equivalence of namespaces starting with / or without
2014-08-19 22:19:50 +00:00
Anup Bishnoi
8ea37b7351
Update index.js
2014-08-19 16:17:45 -04:00
Anup Bishnoi
0e41561d56
Take "" and "/" as equivalent namespaces on server
...
On server, `.of(name)` should use the same key in `.nsps` object for "" and "/"
Important to use `String(name)` and `===` to keep out keys that don't cast to ""
2014-08-18 22:38:47 -04:00
Tony Kovanen
b4954d767a
Take the instance stored path value into account when attaching to eio if no option specified to attach directly
2014-07-23 19:58:44 +03:00
Guillermo Rauch
968e94e42b
Merge pull request #1655 from ysmood/fix_etag_header
...
We should use the standard http protocol to handler the etag header
2014-06-30 23:32:23 -07:00
Yad Smood
8c19eef07a
fix: We should use the standard http protocol to handler the etag
...
header.
2014-06-29 21:42:57 +08:00
Narciso Guillen
968105a239
Add ability to stop the http server even if not created inside socket.io
2014-06-23 21:03:12 -05:00
Narciso Guillen
fbdb94d146
make sure server gets close
2014-06-23 19:55:02 -05:00
Guillermo Rauch
7d2b44e176
index: fix typo [thanks @yanatan16]
2014-06-11 10:42:48 -07:00
poldridge
3f817c3a18
Update index.js
...
Added missing hasOwnProperty check. socket.io breaks without it when Object.prototype has been extended.
2014-06-06 22:08:58 -07:00
Tony Kovanen
f830899e39
Added backwards compatible settability of engine.io maxHttpBufferSize
...
Updated readme
2014-04-12 12:02:52 +03:00
Tony Kovanen
463d7a16a1
Moved the origins checking callback outside the origins getter/setter function.
2014-04-11 19:39:10 +03:00
Tony Kovanen
e9928b2b1d
Switched to async allowRequest callback in engine.io for setting the allowed origins
2014-04-10 21:02:20 +03:00
Tony Kovanen
d33553a4bd
Added support for setting allowed origins
2014-04-09 22:34:53 +03:00
Tony Kovanen
656047536a
The set function in server can be used to set some attributes for backwards compatibility
2014-03-26 00:04:22 +02:00
Guillermo Rauch
44a79f9cee
server: make Server#adapter work after construction
2014-03-07 18:33:36 -03:00
Guillermo Rauch
8df80ee91c
move adapter out
2014-03-06 22:49:38 -06:00
Guillermo Rauch
4cd4381b80
lib: bc compatibility
2014-02-13 14:12:59 -08:00
Guillermo Rauch
c0393fce20
Merge pull request #1399 from lzyzsd/master
...
fix captcha in comment
2014-02-08 12:13:01 -08:00
Guillermo Rauch
093f5f7186
style
2014-02-08 12:12:47 -08:00
GK
fc61a37a6d
change index to read build file from client
2014-02-08 11:18:07 -08:00
Bruce Lee
db429864f6
fix captcha
2014-01-24 21:29:55 +08:00
Seiya Konno
3efcd52674
index: remove send dep
2014-01-16 03:18:39 +09:00
Guillermo Rauch
2b1a5afe6c
index: simplify and speed up client serving
2014-01-10 11:46:45 -03:00
Guillermo Rauch
48936231ea
index: add support for string port numbers
2013-12-26 21:30:33 -03:00
Guillermo Rauch
7b2a71ac4f
server: add listen
2013-12-24 20:49:21 -03:00
Guillermo Rauch
ecca4ee738
use serveClient in favor of static for broader jshint compliance
2013-12-24 20:00:46 -03:00
Guillermo Rauch
a86994f693
index: syntax
2013-12-24 19:51:53 -03:00
Guillermo Rauch
d411dec5a4
index: rename adaptor to adapter
2012-12-23 23:18:01 -03:00
Guillermo Rauch
fb857bd8b4
index: added Server#adaptor
2012-12-18 18:09:41 -03:00
Guillermo Rauch
1609eaa4e5
index: added second parameter to of optional
2012-12-17 14:25:55 -03:00
Guillermo Rauch
4315732220
index: added missing on method
2012-12-17 08:39:12 -03:00
Guillermo Rauch
fcd969b1be
index: fix style
2012-12-17 08:39:02 -03:00
Guillermo Rauch
4f0fce34f5
index: fix client url
2012-12-17 08:29:25 -03:00
Guillermo Rauch
31adf5e45e
lib: fixed static server binding
2012-12-17 01:10:03 -03:00
Guillermo Rauch
3b65a9f011
index: feel static server attachment order
2012-12-17 00:46:54 -03:00
Guillermo Rauch
c87a530b08
index: remove client event
2012-12-16 23:50:39 -03:00