Damien Arrachequesne
9978574e4f
chore(release): socket.io@4.8.3
...
Diff: https://github.com/socketio/socket.io/compare/socket.io@4.8.2...socket.io@4.8.3
2025-12-23 17:39:51 +01:00
Damien Arrachequesne
e9e5bed4f2
chore(release): socket.io-client@4.8.3
...
Diff: https://github.com/socketio/socket.io/compare/socket.io-client@4.8.2...socket.io-client@4.8.3
2025-12-23 17:36:53 +01:00
Damien Arrachequesne
9581f9bcfd
fix(sio): do not throw when calling io.close() on a stopped server
...
Following [1], calling both `io.close()` and `httpServer.close()` would throw an ERR_SERVER_NOT_RUNNING exception, which was not the case before.
Related: https://github.com/socketio/socket.io/issues/5431
[1]: bb0b480d2a
2025-12-23 17:30:15 +01:00
Damien Arrachequesne
579d43f33f
refactor: remove unused files
...
[skip ci]
2025-12-23 13:34:44 +01:00
Damien Arrachequesne
ee9aac3134
chore(release): socket.io-parser@4.2.5
...
Diff: https://github.com/socketio/socket.io/compare/socket.io-parser@4.2.4...socket.io-parser@4.2.5
2025-12-23 12:26:38 +01:00
Damien Arrachequesne
968277cef8
chore(release): socket.io-adapter@2.5.6
...
Diff: https://github.com/socketio/socket.io/compare/socket.io-adapter@2.5.5...socket.io-adapter@2.5.6
2025-12-23 12:18:53 +01:00
Damien Arrachequesne
2bf16bd214
chore(release): engine.io-client@6.6.4
...
Diff: https://github.com/socketio/socket.io/compare/engine.io-client@6.6.3...engine.io-client@6.6.4
2025-12-23 12:03:43 +01:00
Damien Arrachequesne
ad616070b8
docs(eio): fix link in the release notes
...
[skip ci]
2025-12-22 17:53:09 +01:00
Damien Arrachequesne
dd71792455
chore(release): socket.io@4.8.2
...
Diff: https://github.com/socketio/socket.io/compare/socket.io@4.8.1...socket.io@4.8.2
2025-12-22 17:42:41 +01:00
Ihor Machuzhak
bb0b480d2a
fix(sio): improve io.close() function ( #5344 )
...
Before this change, `await io.close();` would resolve before the HTTP server was properly shut down.
Related: https://github.com/socketio/socket.io/pull/4971
2025-12-22 17:37:24 +01:00
Damien Arrachequesne
161be91975
test(sio): pin version of the client bundle in the tests
2025-12-22 17:35:35 +01:00
Damien Arrachequesne
fd9d4cab5e
chore(release): socket.io-client@4.8.2
...
Diff: https://github.com/socketio/socket.io/compare/socket.io-client@4.8.1...socket.io-client@4.8.2
2025-12-22 16:52:21 +01:00
Damien Arrachequesne
0a99ac44a2
chore(release): engine.io@6.6.5
...
Diff: https://github.com/socketio/socket.io/compare/engine.io@6.6.4...engine.io@6.6.5
2025-12-22 16:27:31 +01:00
Damien Arrachequesne
4338f47336
ci(publish): use Node.js 24
...
Trusted publishing requires npm CLI version 11.5.1 or later.
Reference: https://docs.npmjs.com/trusted-publishers#for-github-actions
2025-12-22 16:27:30 +01:00
Damien Arrachequesne
9199156758
test(eio): fix flaky test
2025-12-22 15:27:48 +01:00
Damien Arrachequesne
594841617d
test(redis-streams-emitter): migrate to Node.js test runner
...
We should eventually be able to replace:
- mocha and nyc with Node.js built-in test runner (`node:test`)
- expect.js with Node.js built-in assertion library (`node:assert`)
2025-12-22 14:48:29 +01:00
Denis Barbaron
84e7253e57
refactor(sio): add package.json entrypoint ( #5239 )
2025-12-22 14:33:12 +01:00
Damien Arrachequesne
30ec4a136a
test(sio-client): reactivate all tests
2025-12-22 13:46:15 +01:00
Damien Arrachequesne
e08293bc37
refactor(eio): use URL constructor instead of url.parse()
2025-12-22 13:45:52 +01:00
Damien Arrachequesne
b837949479
ci: use Node.js 24
...
Reference: https://github.com/nodejs/Release
2025-12-22 13:45:36 +01:00
Damien Arrachequesne
118ef41b94
test: use tsx instead of ts-node
2025-12-22 10:39:57 +01:00
Suraj Rana
d19928e8d8
fix(sio-client): drain queue before emitting "connect" ( #5259 )
...
When the `retries` option was enabled, an event emitted in the "connect" handler would be sent twice.
Related: https://github.com/socketio/socket.io/issues/5258
2025-12-22 10:39:39 +01:00
Damien Arrachequesne
cdae01983a
fix(sio-client): do not mangle the "_placeholder" attribute (bis)
...
The "_placeholder" attribute is used when sending binary data, and was
incorrectly mangled (converted to a random short property, like "it",
to reduce the bundle size).
Related:
- ca9e994815
- https://github.com/socketio/socket.io/issues/5215
[skip ci]
2025-12-19 15:48:28 +01:00
Damien Arrachequesne
39bb72039d
docs: add release steps
...
[skip ci]
2025-12-19 15:43:14 +01:00
Valentin Rault
98741e15e9
refactor(sio-client): export DisconnectDescription type ( #5392 )
...
Related: https://github.com/socketio/socket.io/issues/4556
2025-12-19 14:51:39 +01:00
Damien Arrachequesne
8af70195bb
refactor(sio): use URL constructor instead of url.parse()
...
Related: https://github.com/socketio/socket.io/issues/5377
2025-12-19 14:44:30 +01:00
Damien Arrachequesne
d88f3f4578
ci: use actions/checkout@v6 and actions/setup-node@v6
...
Release notes:
- https://github.com/actions/checkout/blob/main/CHANGELOG.md
- https://github.com/actions/setup-node/releases/tag/v6.0.0
2025-12-15 09:38:45 +01:00
Damien Arrachequesne
f5ee981ee8
ci(publish): use trusted publishing
...
Reference: https://docs.npmjs.com/trusted-publishers
[skip ci]
2025-12-15 08:57:17 +01:00
Damien Arrachequesne
76e3a72bba
docs: add missing changelog links
...
[skip ci]
2025-12-15 08:55:26 +01:00
Damien Arrachequesne
a7b1938d06
test: regenerate SSL certs
2025-12-15 08:45:47 +01:00
Damien Arrachequesne
54743633ff
chore(release): @socket.io/redis-streams-emitter@0.1.1
...
Diff: https://github.com/socketio/socket.io/compare/@socket.io/redis-streams-emitter@0.1.0...@socket.io/redis-streams-emitter@0.1.1
2025-11-07 10:33:07 +01:00
Damien Arrachequesne
7617707ed8
fix(redis-streams-emitter): remove dependency on socket.io-adapter
...
Related: https://github.com/socketio/socket.io/issues/5414
2025-11-07 10:28:27 +01:00
Damien Arrachequesne
599001d213
chore(release): @socket.io/redis-streams-emitter@0.1.0
2025-11-06 18:23:00 +01:00
Damien Arrachequesne
1c3e4711c1
feat: add emitter based on Redis streams
...
Related: https://github.com/socketio/socket.io-redis-streams-adapter/issues/8
2025-11-06 18:03:37 +01:00
Damien Arrachequesne
693080cac7
refactor(sio-adapter): add more debug logs
2025-10-20 15:11:21 +02:00
Damien Arrachequesne
5080c73e1e
refactor: fix npm command
2025-10-17 09:41:39 +02:00
Damien Arrachequesne
47ff1cd04c
chore(release): @socket.io/cluster-adapter@0.3.0
...
Diff: https://github.com/socketio/socket.io-cluster-adapter/compare/0.2.2...0.3.0
2025-10-16 19:55:56 +02:00
Damien Arrachequesne
0ae76360f9
Merge remote-tracking branch 'socket.io-cluster-adapter/monorepo'
2025-10-16 19:35:51 +02:00
Damien Arrachequesne
27fd420e75
refactor: prepare migration to monorepo
2025-10-16 19:31:30 +02:00
Damien Arrachequesne
0c431243e2
refactor: use the ClusterAdapter class from socket.io-adapter package
...
The ClusterAdapter class has been moved to [1], so that this adapter
only needs to implement to pub/sub mechanism.
Also, [2] should reduce the number of "timeout reached: only x
responses received out of y" errors, since the fetchSockets() requests
will now succeed even if a server leaves the cluster.
[1]: https://github.com/socketio/socket.io/tree/main/packages/socket.io-adapter
[2]: 0e23ff0cc6
2025-10-16 19:16:20 +02:00
Damien Arrachequesne
4fc25d80ec
ci: add Node.js 24
...
Reference: https://github.com/nodejs/Release
2025-10-16 12:03:32 +02:00
Damien Arrachequesne
1dd729b1a1
refactor: upgrade to prettier 3
2025-10-16 11:51:11 +02:00
Damien Arrachequesne
6877512f57
refactor: upgrade to TypeScript 5
2025-10-16 11:49:12 +02:00
Damien Arrachequesne
cf6816afcf
chore: npm audit fix
2025-10-10 09:29:29 +02:00
Damien Arrachequesne
625fd66d73
chore: dedupe debug dependency
2025-10-10 09:11:54 +02:00
Damien Arrachequesne
f3e1f5ebdf
fix(sio): call adapter.init() when creating each namespace
...
The init() method of the adapter will now be called when creating a namespace with `io.of(<the-namespace>)`.
Note: any promise rejection is silently caught, as I don't see how we could properly expose the promise.
```js
const io = new Server({
adapter: myAdapter
});
// under the hood, this:
// - implicitly creates the main namespace (/)
// - creates an instance of `myAdapter` for the main namespace
// - calls `myAdapter.init()` (with this change)
```
Related:
- https://github.com/socketio/socket.io/issues/3662
- https://github.com/socketio/socket.io-postgres-adapter/issues/16
2025-10-09 09:48:07 +02:00
Damien Arrachequesne
e97549259e
ci(browser): use Windows 8 for IE tests
2025-09-30 11:44:50 +02:00
MiaoWoo
1da9cddeab
fix(eio-client): properly handle port option ( #5241 )
...
Passing { port: "443" } would include the port in the URL (":443").
2025-09-30 10:57:43 +02:00
Avi Vahl
6f9b198bc8
chore(deps): ws@8.18.3, debug@4.4.1 ( #5335 )
...
Release notes:
- https://github.com/websockets/ws/releases/tag/8.18.3
- https://github.com/debug-js/debug/releases/tag/4.4.1
2025-09-11 07:51:07 +02:00
Damien Arrachequesne
ac3df9a747
chore(release): @socket.io/postgres-emitter@0.1.1
2025-09-05 07:27:48 +02:00
Damien Arrachequesne
21fd54ece6
refactor(postgres-emitter): update compose file
2025-09-05 07:20:29 +02:00
Damien Arrachequesne
96d907b9b5
docs(postgres-emitter): add dark version of the explanation diagram
2025-09-05 07:19:07 +02:00
Damien Arrachequesne
32257b6cb8
fix(postgres-emitter): use parameterized query to send the NOTIFY command
...
Related:
- https://github.com/socketio/socket.io-postgres-emitter/issues/1
- https://github.com/socketio/socket.io-postgres-adapter/pull/1
2025-09-05 07:18:36 +02:00
Damien Arrachequesne
c7144920e3
Merge remote-tracking branch 'socket.io-postgres-emitter/main' into monorepo
2025-09-04 09:30:26 +02:00
Damien Arrachequesne
42480e9a7f
chore: prepare migration to monorepo
2025-09-04 09:23:32 +02:00
Lou Klepner
0a8f91047c
docs: fix adapter link ( #2 )
2025-09-04 09:22:40 +02:00
Damien Arrachequesne
a66ed68506
docs(protocol): add test with cancelled request
...
Related: 8f1ea3d58f
2025-09-03 09:02:44 +02:00
Damien Arrachequesne
3be6481d9d
ci: pin Node.js 22 version
...
Related: https://github.com/nodejs/node/issues/59364
2025-08-09 09:31:12 +02:00
Wang Guan
be13cca94c
refactor: improve type annotations and comments ( #5364 )
2025-08-09 08:43:34 +02:00
Damien Arrachequesne
e95f6abf93
docs: fix message handler latency in test suites
...
Related: https://github.com/socketio/socket.io-protocol/issues/32
2025-03-28 21:29:20 +01:00
Damien Arrachequesne
72d61dab82
chore(release): engine.io@6.6.4
...
Diff: https://github.com/socketio/socket.io/compare/engine.io@6.6.3...engine.io@6.6.4
2025-01-28 09:23:04 +01:00
Damien Arrachequesne
5a31aaf917
chore(eio): revert cookie to version ~0.7.2
...
This reverts commit 7427109658 .
The new version of the `cookie` package contains code with optional chaining (`?.`), which is not supported by older Node.js versions (< 14).
The types for cookie are now bundled, so that there is no conflict with the types coming from `cookie@1`:
> error TS2724: '"cookie"' has no exported member named 'CookieSerializeOptions'. Did you mean 'SerializeOptions'?
>
> import type { CookieSerializeOptions } from "cookie";
> ~~~~~~~~~~~~~~~~~~~~~~
Related: https://github.com/socketio/socket.io/issues/5283
2025-01-28 09:13:39 +01:00
Damien Arrachequesne
62e4da125e
chore(release): engine.io@6.6.3
...
Diff: https://github.com/socketio/socket.io/compare/engine.io@6.6.2...engine.io@6.6.3
2025-01-23 07:55:43 +01:00
Damien Arrachequesne
bfa6eab195
chore(release): engine.io-client@6.6.3
...
Diff: https://github.com/socketio/socket.io/compare/engine.io-client@6.6.2...engine.io-client@6.6.3
2025-01-23 07:38:37 +01:00
Ben McCann
7fcddcb3bb
fix(engine.io-client): correctly consume the ws package ( #5220 )
...
This should fix the following issue:
```
SyntaxError: Named export 'WebSocket' not found. The requested module 'ws' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'ws';
const { WebSocket } = pkg;
```
2025-01-07 10:53:32 +01:00
Damien Arrachequesne
7427109658
refactor(eio): bump cookie to version 1.0.2
...
Release notes: https://github.com/jshttp/cookie/releases/tag/v1.0.0
The types are now included in the npm package. The `CookieSerializeOptions` type, which is used in our `ServerOptions` type, has been renamed to `SerializeOptions`, but there are no breaking change.
Related: https://github.com/socketio/socket.io/issues/5231
2024-11-21 08:57:37 +01:00
Damien Arrachequesne
91e1c8b358
chore(release): socket.io@4.8.1
...
Diff: https://github.com/socketio/socket.io/compare/socket.io@4.8.0...socket.io@4.8.1
2024-10-25 08:13:15 +02:00
Damien Arrachequesne
8d5528aa2a
chore(release): socket.io-client@4.8.1
...
Diff: https://github.com/socketio/socket.io/compare/socket.io-client@4.8.0...socket.io-client@4.8.1
2024-10-25 08:00:26 +02:00
Damien Arrachequesne
71387e5294
refactor(sio-client): reexport transports from the engine
2024-10-25 07:54:35 +02:00
Samuel Vogelsanger
aead83560d
refactor(sio): make Namespace._fns private ( #5196 )
...
Related: https://github.com/socketio/socket.io/issues/5179
2024-10-23 10:59:23 +02:00
Damien Arrachequesne
029e010901
chore(release): engine.io-client@6.6.2
...
Diff: https://github.com/socketio/socket.io/compare/engine.io-client@6.6.1...engine.io-client@6.6.2
2024-10-23 10:48:16 +02:00
Damien Arrachequesne
4ca6ddb3a2
docs(nuxt): update example with latest version
...
Related: https://github.com/socketio/socket.io/issues/5208
[skip ci]
2024-10-23 08:19:48 +02:00
Damien Arrachequesne
ca9e994815
fix(sio-client): do not mangle the "_placeholder" attribute
...
The "_placeholder" attribute is used when sending binary data, and was
incorrectly mangled (converted to a random short property, like "it",
to reduce the bundle size).
This bug was introduced in [1], included in `socket.io-client@4.8.0`.
[1]: 7085f0e3e4
Related: https://github.com/socketio/socket.io/issues/5215
2024-10-22 11:41:08 +02:00
Damien Arrachequesne
4865f2e62e
fix(eio-client): prevent infinite loop with Node.js built-in WebSocket
...
Related: https://github.com/socketio/socket.io/issues/5194
2024-10-22 00:49:25 +02:00
Damien Arrachequesne
d4b3ddedff
ci: use Node.js 22
...
Reference: https://github.com/nodejs/Release
2024-10-21 23:30:11 +02:00
Damien Arrachequesne
3b68658201
chore: bump @fails-components/webtransport to version 1.1.4 (dev)
2024-10-21 23:29:29 +02:00
Damien Arrachequesne
175a2c58c1
fix(eio-client/types): remove ws type from .d.ts file
...
Before this change, the following error would be thrown when compiling
with TypeScript:
```
node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts:12:101 - error TS1340: Module 'ws' does not refer to a type, but is used as a type here. Did you mean 'typeof import('ws')'?
12 createSocket(uri: string, protocols: string | string[] | undefined, opts: Record<string, any>): import("ws");
~~~~~~~~~~~~
```
This behavior was introduced in [1], included in version `6.6.0`.
The return type is forced as `any`, so that the `@types/ws` dependency
is optional.
[1]: f4d898ee96
Related: https://github.com/socketio/socket.io/issues/5202
2024-10-19 07:09:19 +02:00
Damien Arrachequesne
9b80ab42d6
chore(release): engine.io@6.6.2
...
Diff: https://github.com/socketio/socket.io/compare/engine.io@6.6.1...engine.io@6.6.2
2024-10-09 19:01:17 +02:00
Damien Arrachequesne
a5d2368512
ci: ignore tests when publishing to npm (bis)
...
`tags-ignore` seems to disable the workflow in all cases.
2024-10-09 18:56:59 +02:00
k725
88efd446f1
chore(deps): bump cookie to version 0.7.2 ( #5205 )
...
Related: https://github.com/advisories/GHSA-pxg6-pf52-xh8x
2024-10-09 17:47:42 +02:00
Damien Arrachequesne
d0fc720420
chore(release): socket.io@4.8.0
...
Diff: https://github.com/socketio/socket.io/compare/socket.io@4.7.5...socket.io@4.8.0
2024-09-21 10:02:24 +02:00
Damien Arrachequesne
4a0555c671
chore(release): socket.io-client@4.8.0
...
Diff: https://github.com/socketio/socket.io/compare/socket.io-client@4.7.5...socket.io-client@4.8.0
2024-09-21 09:45:51 +02:00
Damien Arrachequesne
2b60df18a8
chore(release): engine.io@6.6.1
...
Diff: https://github.com/socketio/socket.io/compare/engine.io@6.6.0...engine.io@6.6.1
2024-09-21 09:30:07 +02:00
Damien Arrachequesne
d4cb375856
ci: ignore tests when publishing to npm
2024-09-21 09:27:42 +02:00
Damien Arrachequesne
c251ae7ba7
chore(release): engine.io-client@6.6.1
...
Diff: https://github.com/socketio/socket.io/compare/engine.io-client@6.6.0...engine.io-client@6.6.1
2024-09-21 09:07:48 +02:00
Damien Arrachequesne
8a2f5a3da0
fix(eio-client): move 'offline' event listener at the top
...
Related: https://github.com/socketio/socket.io/issues/5125
2024-09-21 08:47:20 +02:00
Damien Arrachequesne
b04fa64365
fix(sio): allow to join a room in a middleware (uws)
...
Related:
- https://github.com/socketio/socket.io/issues/4810
- https://github.com/socketio/socket.io/issues/5139
2024-09-21 08:19:32 +02:00
Damien Arrachequesne
7085f0e3e4
refactor(sio-client): mangle private attributes
...
| | before | after |
|----------|---------|---------|
| min+gzip | 14.6 KB | 14.3 KB |
| min+br | 13.1 KB | 12.9 KB |
Reference: https://terser.org/docs/options/#mangle-properties-options
2024-09-21 07:48:50 +02:00
Damien Arrachequesne
4f66708210
chore(sio-client): use babel loose mode when transpiling classes
...
By default, Babel uses `Object.defineProperty()` when transpiling
classes. We'll now use the loose mode which creates a more terse
output.
| | before | after |
|----------|---------|---------|
| min+gzip | 14.9 KB | 14.6 KB |
| min+br | 13.4 KB | 13.1 KB |
Reference: https://babeljs.io/docs/babel-plugin-transform-classes
2024-09-21 07:44:15 +02:00
Damien Arrachequesne
1a95db2145
chore(sio-client): add a script to compute the bundle size
2024-09-21 07:34:49 +02:00
Damien Arrachequesne
282ae922a4
chore(sio-client): restore the debug package in the dev bundle
...
The debug package was not included anymore in the dev bundle since the
migration from webpack to rollup ([1]) in version 4.3.0.
[1]: 0661564dc2
Related: https://github.com/socketio/socket.io/issues/5108
2024-09-21 07:33:53 +02:00
Damien Arrachequesne
93010ca3c4
chore(eio-client): bump xmlhttprequest-ssl to version 2.1.1
...
Related:
- https://github.com/socketio/socket.io/issues/4402
- b01f69a689
2024-09-21 07:32:12 +02:00
Damien Arrachequesne
132d05fc0b
fix(sio): expose type of default engine
...
Related: https://github.com/socketio/socket.io/issues/4693
2024-09-20 11:18:23 +02:00
Damien Arrachequesne
d5095fe98c
fix(eio): prevent the client from upgrading twice (uws)
...
Related: https://github.com/socketio/socket.io/issues/5066
2024-09-19 12:13:42 +02:00
Damien Arrachequesne
da613810fd
test(eio): bump uWebSockets.js to version 20.48.0
2024-09-19 12:12:58 +02:00
Damien Arrachequesne
19c48a44e6
refactor(sio): break circular dependency in source code
...
Related: https://github.com/socketio/socket.io/issues/4329
2024-09-19 09:27:12 +02:00
Damien Arrachequesne
9b3c9abeca
fix(eio-client): only remove the event listener if it exists
...
Related: https://github.com/socketio/socket.io/issues/5088#issuecomment-2217202350
2024-09-19 09:26:26 +02:00
Damien Arrachequesne
043b55c418
refactor(sio): simplify middleware execution (bis)
2024-09-18 22:15:32 +02:00
Damien Arrachequesne
32c761f02f
refactor(sio): export the ExtendedError type
...
Related: https://github.com/socketio/socket.io/issues/4798
2024-09-18 18:22:06 +02:00
Damien Arrachequesne
1f54ee08c6
refactor(sio): simplify middleware execution
2024-09-18 18:21:58 +02:00
Damien Arrachequesne
923a12e2de
fix(eio): discard all pending packets when the server is closed
...
In some specific cases, the transport was not closed right away,
leaving the Node.js process alive even after closing the server.
The HTTP long-polling transport would be closed after the heartbeat
failure and the `closeTimeout` delay (20 + 25 + 30 seconds).
Example:
```js
io.on("connection", (socket) => {
// the writeBuffer is not empty, so the transport is not closed right away
io.close();
});
```
Related: https://github.com/socketio/socket.io/issues/5088
2024-09-18 18:17:14 +02:00
Damien Arrachequesne
13c6d2e89d
fix(sio-client): allow to manually stop the reconnection loop
...
```js
socket.io.on("reconnect_attempt", () => {
socket.io.reconnection(false); // will now work properly
});
```
Related: https://github.com/socketio/socket.io/issues/5126
2024-09-18 11:19:28 +02:00
Tom Jenkinson
8adcfbfde5
fix(sio-client): do not send a packet on an expired connection ( #5134 )
...
When a laptop is suspended or a phone is locked, the timer that is used
to check the liveness of the connection is paused and is not able to
detect that the heartbeat has failed.
Previously, emitting a message after resuming the page would lose the
message. The status of the timer will now be checked before sending the
message, so that it gets buffered and sent upon reconnection.
Note: we could also have used the Page Visibility API or a custom
setTimeout() method based on setInterval(), but this would not be as
reliable as the current solution.
Reference: https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
Related: https://github.com/socketio/socket.io/issues/5135
2024-09-18 11:11:22 +02:00
Damien Arrachequesne
7a23dde6ef
perf: do not reset the hearbeat timer on each packet
...
This reverts ed34a45a07
See also: 5359bae683
2024-09-18 11:06:39 +02:00
Damien Arrachequesne
60c757f718
fix(sio-client): accept string | undefined as init argument (bis)
...
Following: 5a3eafed1c
Related: https://github.com/socketio/socket.io/issues/4873
2024-09-18 08:09:47 +02:00
Damien Arrachequesne
04c8dd979c
fix(sio-client): close the engine upon decoding exception
...
Related: https://github.com/socketio/socket.io/issues/5128
2024-09-18 07:52:37 +02:00
Damien Arrachequesne
2194264820
test(eio-client): reduce test suite duration
2024-09-18 07:52:12 +02:00
Damien Arrachequesne
09f573cad8
test(sio-client): reduce test suite duration
2024-09-18 07:52:12 +02:00
Damien Arrachequesne
fcbecd4f46
ci: restore package-specific tests
2024-09-17 15:07:23 +02:00
Damien Arrachequesne
fd99f2e15f
refactor(sio): export the DefaultEventsMap type
...
Related: https://github.com/socketio/socket.io/issues/4747
2024-09-16 15:49:15 +02:00
Damien Arrachequesne
02d59a0e99
chore: re-enable publish workflow
...
This reverts commit 7160eb7eb0 .
[skip ci]
2024-09-16 09:11:35 +02:00
Damien Arrachequesne
7160eb7eb0
chore: temporarily disable publish workflow
...
In order to import tags from other repositories.
[skip ci]
2024-09-16 08:56:07 +02:00
Wang Guan
a1ccba3a77
chore: use prettier v3 everywhere ( #5169 )
2024-09-16 08:43:08 +02:00
Mark Nelissen
e347a3c24e
fix(sio): correctly await async close on adapters ( #4971 )
...
Following: bf64870957
2024-09-14 08:51:08 +02:00
nayounsang
b5ccfd4838
refactor(eio-client): improve transports type ( #5188 )
...
Related: https://github.com/socketio/socket.io/issues/5187
2024-09-14 08:17:36 +02:00
Wang Guan
5d9a2d5544
chore(socket.io-client): bump engine.io-client to version 6.6.0
2024-08-23 23:19:45 +02:00
Wang Guan
d5b22f5a76
chore(socket.io): bump engine.io to version 6.6.0
2024-08-23 23:19:31 +02:00
Damien Arrachequesne
582655f679
test(cluster-engine): fix flaky test cleanup
2024-07-26 09:26:47 +02:00
KartikeSingh
b79d80aa59
docs: fix conjunction with fastify example ( #5057 )
...
[skip ci]
2024-07-22 11:32:58 +02:00
Damien Arrachequesne
7fd75e6aac
docs(changelog): add changelog for socket.io-parser@3.3.4
...
Diff: https://github.com/Automattic/socket.io-parser/compare/3.3.3...3.3.4
[skip ci]
2024-07-22 11:28:47 +02:00
Damien Arrachequesne
b7577556e3
docs: add example with NestJS
...
Reference: https://docs.nestjs.com/websockets/gateways
[skip ci]
2024-07-22 10:07:45 +02:00
Damien Arrachequesne
6e9bff4fcf
docs: add example with @socket.io/postgres-adapter
...
[skip ci]
2024-07-19 15:20:12 +02:00
Damien Arrachequesne
8b0a40fd4a
docs: add examples with @socket.io/cluster-engine
...
[skip ci]
2024-07-19 08:42:38 +02:00
Damien Arrachequesne
1f09a3e979
ci(publish): compile all packages before publishing
...
As some packages depend on the types of others.
[skip ci]
2024-07-18 10:07:47 +02:00
Damien Arrachequesne
0af50758f6
chore(cluster-engine): update homepage URL
2024-07-18 10:03:57 +02:00
Damien Arrachequesne
b9b16132c2
chore(socket.io-adapter): remove dist before compilation
2024-07-17 10:34:57 +02:00
Damien Arrachequesne
be1e4cb24d
ci(publish): update the tag regex
...
In order to also match "@socket.io/some-package@1.2.3".
Reference: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
[skip ci]
2024-07-17 10:26:56 +02:00
Damien Arrachequesne
7521ac227b
chore(release): @socket.io/cluster-engine@0.1.0
2024-07-17 09:53:34 +02:00
Damien Arrachequesne
b00124b65a
feat: implement cluster-friendly engine
2024-07-17 09:27:12 +02:00
Damien Arrachequesne
b7da542890
chore: normalize repository URLs
...
In order to address the following warning when publishing:
> npm warn publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.
> npm warn publish errors corrected:
> npm warn publish "repository.url" was normalized to "git+https://github.com/socketio/socket.io.git "
2024-07-11 14:59:00 +02:00
Damien Arrachequesne
0692bed462
chore: fix the publish workflow
...
It seems the "registry-url" variable is mandatory: https://github.com/npm/cli/issues/6184
2024-07-11 13:45:44 +02:00
Damien Arrachequesne
f00fc89b07
chore(release): engine.io-parser@5.2.3
2024-07-11 13:33:58 +02:00
Damien Arrachequesne
f9cb983ab7
fix(engine.io-parser): do not expose the TransformStream type
...
The previous commit [1] tried to work around the fact that the
TransformStream object is not exposed in the global scope in the
`@types/node` package, even though it is since Node.js `v18.0.0`.
Unfortunately, it created two new issues:
- using an older `@types/node` version (before v16) would fail with:
> error TS2307: Cannot find module 'node:stream/web' or its corresponding type declarations.
Related: https://github.com/socketio/socket.io/issues/5064#issuecomment-2217149344
- browser-only environments would somehow include the node types,
leading to conflicts like the return value of the setTimeout() method
Related:
- https://github.com/socketio/socket.io/issues/5064#issuecomment-2217149374
- https://github.com/socketio/socket.io/issues/5065
[1]: 0305b4a7a5
2024-07-11 13:08:18 +02:00
Damien Arrachequesne
04033b241b
chore: add publish workflow (2)
...
We need to exclude the 'main' branch (it's an OR operator).
Reference: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
2024-07-11 12:38:47 +02:00
Damien Arrachequesne
fbc0313a10
chore: add publish workflow
...
Reference: https://docs.npmjs.com/generating-provenance-statements
2024-07-11 12:27:36 +02:00
Damien Arrachequesne
2a29c4c30e
chore: move dev dependencies in the parent package.json file
...
Notes:
- TypeScript is updated from v4 to v5
- WebDriverIO is updated from v7 to v8
- prettier is kept in v2, in order to reduce style changes
2024-07-10 10:42:22 +02:00
Damien Arrachequesne
d3761e3e9e
docs(security): add the list of CVE for the socket.io-client package
2024-07-09 12:32:14 +02:00
Damien Arrachequesne
afdc3b2916
ci: restore browser tests with Sauce Labs
...
The `pull_request` trigger is excluded, since the secrets are not
available for those builds.
2024-07-09 11:22:48 +02:00
Damien Arrachequesne
84d2aa74cd
chore: update the repository URLs
2024-07-09 10:51:43 +02:00
Damien Arrachequesne
5fae41a0d5
chore: align all MIT licenses text
...
Note: the owner of the `socket.io` repository was updated to Automattic
in [1], though it was never applied to the other repositories nor
mentioned in the client bundles.
[1]: 340281152f
2024-07-09 10:44:20 +02:00
Damien Arrachequesne
ec79211701
docs: init README for the monorepo
2024-07-08 16:07:34 +02:00
Damien Arrachequesne
8c3debf15a
docs: init the contributing guide
...
Related: https://github.com/socketio/socket.io/issues/4814
2024-07-08 15:33:41 +02:00
Damien Arrachequesne
cbf6df0812
Merge remote-tracking branch 'engine.io-protocol/v3'
...
Source: https://github.com/socketio/engine.io-protocol/tree/v3
2024-07-08 12:21:31 +02:00
Damien Arrachequesne
1d65f11e93
Merge remote-tracking branch 'engine.io-protocol/main'
...
Source: https://github.com/socketio/engine.io-protocol
2024-07-08 12:18:53 +02:00
Damien Arrachequesne
498e8e22d6
refactor: prepare the migration to a monorepo
2024-07-08 12:18:11 +02:00
Damien Arrachequesne
68efa28014
refactor: prepare the migration to a monorepo
2024-07-08 12:16:14 +02:00
Damien Arrachequesne
34137d39a9
chore: add new npm workspaces
...
The following repositories were merged:
- https://github.com/socketio/engine.io-parser
- https://github.com/socketio/engine.io-client
- https://github.com/socketio/engine.io-parser
- https://github.com/socketio/socket.io-adapter
- https://github.com/socketio/emitter
2024-07-08 12:10:24 +02:00
Damien Arrachequesne
8d0c4835dc
Merge remote-tracking branch 'socket.io-component-emitter/main' into monorepo
...
Source: https://github.com/socketio/emitter
2024-07-08 11:10:24 +02:00
Damien Arrachequesne
dce7200378
Merge remote-tracking branch 'socket.io-adapter/main' into monorepo
...
Source: https://github.com/socketio/socket.io-adapter
2024-07-08 11:09:26 +02:00
Damien Arrachequesne
3546094cfc
refactor: prepare the migration to a monorepo
2024-07-08 11:08:10 +02:00
Damien Arrachequesne
90bbd51440
Merge remote-tracking branch 'engine.io/main' into monorepo
...
Source: https://github.com/socketio/engine.io
2024-07-08 11:03:00 +02:00
Damien Arrachequesne
efe86ee20c
refactor: prepare the migration to a monorepo
2024-07-08 11:02:37 +02:00
Damien Arrachequesne
5b2d238dce
Merge remote-tracking branch 'engine.io-client/main' into monorepo
...
Source: https://github.com/socketio/engine.io-client
2024-07-08 11:00:37 +02:00
Damien Arrachequesne
32a1a6039f
refactor: prepare the migration to a monorepo
2024-07-08 10:59:50 +02:00
Damien Arrachequesne
e514852a37
Merge remote-tracking branch 'engine.io-parser/main' into monorepo
...
Source: https://github.com/socketio/engine.io-parser
2024-07-08 10:54:44 +02:00
Damien Arrachequesne
7c4efaa915
refactor: prepare the migration to a monorepo
2024-07-08 10:53:54 +02:00
Damien Arrachequesne
f98fc2810e
refactor: prepare the migration to a monorepo
2024-07-08 10:46:34 +02:00
Damien Arrachequesne
c0e448a023
docs: add links to each changelog
2024-07-04 19:02:47 +02:00
Damien Arrachequesne
59838b71a2
docs: move changelog of the socket.io package
2024-07-04 18:59:19 +02:00
Damien Arrachequesne
ae3c26fdd4
docs: restore readme
2024-07-04 18:58:18 +02:00
Damien Arrachequesne
c508501d86
Merge remote-tracking branch 'socket.io-protocol/v3'
...
Source: https://github.com/socketio/socket.io-protocol/tree/v3
2024-07-04 18:30:39 +02:00
Damien Arrachequesne
bbcad832fa
Merge remote-tracking branch 'socket.io-protocol/v4'
...
Source: https://github.com/socketio/socket.io-protocol/tree/v4
2024-07-04 18:29:51 +02:00
Damien Arrachequesne
f1c8410c3e
refactor: prepare the migration to a monorepo
2024-07-04 18:29:15 +02:00
Damien Arrachequesne
93b42f6b77
refactor: prepare the migration to a monorepo
2024-07-04 18:27:57 +02:00
Damien Arrachequesne
dfac908769
Merge remote-tracking branch 'socket.io-protocol/main'
...
Source: https://github.com/socketio/socket.io-protocol
2024-07-04 18:25:43 +02:00
Damien Arrachequesne
b4002c281f
refactor: prepare the migration to a monorepo
2024-07-04 18:23:59 +02:00
Damien Arrachequesne
4cac3724ad
chore: update the repository URLs
...
Reference: https://docs.npmjs.com/cli/v10/configuring-npm/package-json
2024-07-04 18:16:51 +02:00
Damien Arrachequesne
914716d71d
ci: move building the examples to its own workflow
2024-07-04 18:08:06 +02:00
Damien Arrachequesne
d9b4c3cb03
ci: create npm workspaces and sort out dependencies
...
This requires at least npm v7.
Reference: https://docs.npmjs.com/cli/v10/using-npm/workspaces
Note: @types/node is pinned at `18.15.3` because it's the last version
which supports TypeScript v4.2.
2024-07-04 17:48:46 +02:00
Damien Arrachequesne
7aedc79436
Merge remote-tracking branch 'socket.io-parser/main' into monorepo
...
Source: https://github.com/socketio/socket.io-parser
2024-07-04 17:38:27 +02:00
Damien Arrachequesne
bd02c7234a
refactor: prepare the migration to a monorepo
2024-07-04 17:37:35 +02:00
Damien Arrachequesne
b2cf3f72fd
Merge remote-tracking branch 'socket.io-client/main' into monorepo
...
Source: https://github.com/socketio/socket.io-client
2024-07-04 17:36:18 +02:00
Damien Arrachequesne
273093ceae
refactor: prepare the migration to a monorepo
2024-07-04 17:35:42 +02:00
Damien Arrachequesne
d9d19b4bb7
refactor: prepare the migration to a monorepo
2024-07-04 17:33:59 +02:00
Damien Arrachequesne
f21de7b00e
docs: add note about UTF-8 encoding
...
Related: https://github.com/socketio/engine.io-protocol/issues/42
2024-07-01 21:54:51 +02:00
Damien Arrachequesne
c815579e1b
docs: fix typo
...
Related: https://github.com/socketio/engine.io-protocol/issues/43
2024-07-01 17:23:19 +02:00
Damien Arrachequesne
88016b808a
docs(security): update the list of CVE
2024-06-25 15:48:06 +02:00
Damien Arrachequesne
71eaec477c
docs(changelog): improve the changelog for version 6.6.0
2024-06-22 10:20:15 +02:00
Damien Arrachequesne
791aa58f4c
chore(release): 6.6.0
...
Diff: https://github.com/socketio/engine.io/compare/6.5.4...6.6.0
2024-06-21 14:32:55 +02:00
Damien Arrachequesne
a17cbc5418
chore(release): 6.6.0
...
Diff: https://github.com/socketio/engine.io-client/compare/6.5.3...6.6.0
2024-06-21 14:11:15 +02:00
Damien Arrachequesne
6d8a0bea49
refactor: move the req attribute to the polling class
2024-06-21 14:03:22 +02:00
Damien Arrachequesne
c310b7b6b6
refactor: improve types
2024-06-21 14:03:01 +02:00
Damien Arrachequesne
362bc78191
fix: properly call the send callback during upgrade
...
The "drain" event (added in [1]) had two different meanings:
- the transport is ready to be written
- the packets are sent over the wire
For the WebSocket and the WebTransport transports, those two events
happen at the same time, but this is not the case for the HTTP
long-polling transport:
- the transport is ready to be written when the client sends a GET request
- the packets are sent over the wire when the server responds to the GET request
Which caused an issue with send callbacks during an upgrade, since the
packets were written but the client would not open a new GET request.
There are now two distinct events: "ready" and "drain"
Related: https://github.com/socketio/engine.io/issues/695
[1]: 2a93f06e27
2024-06-21 11:47:41 +02:00
dependabot[bot]
afd29341ee
chore(dev-deps): bump ws and engine.io-client in /examples/memory-usage ( #703 )
...
Bumps [ws](https://github.com/websockets/ws ) to 8.17.1 and updates ancestor dependency [engine.io-client](https://github.com/socketio/engine.io-client ). These dependencies need to be updated together.
Updates `ws` from 8.11.0 to 8.17.1
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/8.11.0...8.17.1 )
Updates `engine.io-client` from 6.5.3 to 6.5.4
- [Release notes](https://github.com/socketio/engine.io-client/releases )
- [Changelog](https://github.com/socketio/engine.io-client/blob/6.5.4/CHANGELOG.md )
- [Commits](https://github.com/socketio/engine.io-client/compare/6.5.3...6.5.4 )
---
updated-dependencies:
- dependency-name: ws
dependency-type: indirect
- dependency-name: engine.io-client
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 20:18:57 +02:00
dependabot[bot]
56c4664bcf
chore(deps-dev): bump braces from 3.0.2 to 3.0.3 ( #701 )
...
Bumps [braces](https://github.com/micromatch/braces ) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md )
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3 )
---
updated-dependencies:
- dependency-name: braces
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 20:18:35 +02:00
Damien Arrachequesne
6b9e3e458e
refactor: improve types
2024-06-18 17:37:12 +02:00
Damien Arrachequesne
f521cbab6d
refactor: simplify the heartbeat code
2024-06-18 17:32:06 +02:00
Damien Arrachequesne
5359bae683
perf: do not reset the hearbeat timer on each packet
...
This behavior was added in [1]. However, there are two problems:
- a new timer is allocated every time a packet is received, which is
wasteful
- the next heartbeat is not actually delayed, since it's the timeout
timer which gets reset, and not the interval timer
Note: delaying the next heartbeat would be a breaking change.
[1]: be7b4e7478
2024-06-18 17:17:17 +02:00
Semih Han Ordu
fb5904ee5f
chore(deps): bump ws to version 8.17.1 ( #5052 )
...
Includes the following security fix: e55e5106f1
Advisory: https://github.com/advisories/GHSA-3h5v-q93c-6h6q
Diff: https://github.com/websockets/ws/compare/8.11.0...8.17.1
2024-06-18 14:40:30 +02:00
Damien Arrachequesne
05a190a9db
chore(release): 6.5.5
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.5.4...2.5.5
2024-06-18 12:23:45 +02:00
Andrew Bromwich
93fe19019e
chore(deps): bump ws from 8.11.0 to 8.17.1 ( #93 )
...
Includes the following security fix: e55e5106f1
Advisory: https://github.com/advisories/GHSA-3h5v-q93c-6h6q
Diff: https://github.com/websockets/ws/compare/8.11.0...8.17.1
2024-06-18 12:21:29 +02:00
Damien Arrachequesne
d3f45dca38
docs(changelog): add release notes for versions 3.6.2 and 6.5.5
2024-06-18 10:47:10 +02:00
Damien Arrachequesne
72408ad462
docs(changelog): include release notes from versions 3.5.3, 3.5.4 and 6.5.4
2024-06-18 10:43:04 +02:00
dependabot[bot]
3c4d314998
chore(deps): bump ws from 8.11.0 to 8.17.1 ( #702 )
...
Bumps [ws](https://github.com/websockets/ws ) from 8.11.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/8.11.0...8.17.1 )
---
updated-dependencies:
- dependency-name: ws
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 09:57:32 +02:00
dependabot[bot]
e97a4d3b82
chore: bump ws from 8.11.0 to 8.17.1 ( #720 )
...
Bumps [ws](https://github.com/websockets/ws ) from 8.11.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/8.11.0...8.17.1 )
---
updated-dependencies:
- dependency-name: ws
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 09:54:33 +02:00
Damien Arrachequesne
b0721e6407
ci: upgrade to actions/checkout@4 and actions/setup-node@4
...
Reference: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
2024-06-17 17:50:39 +02:00
Damien Arrachequesne
9a68c8ce93
perf(websocket): use bound callbacks
...
Instead of allocating one temporary function for each WebSocket
`send()` call.
Regarding the test removal, the permessage-deflate threshold was
implemented in the "ws" package in [1], so it's not needed anymore.
[1]: 6b3904b42d
2024-06-17 17:47:46 +02:00
Damien Arrachequesne
62f59b6cf3
refactor: remove unnecessary array allocation
...
If the `packetsFn` array is empty, there is no need to allocate one new
array.
2024-06-14 01:07:48 +02:00
Damien Arrachequesne
407c3ad236
refactor: simplify the handling of the "drain" event
...
The two event handlers are merged into one.
2024-06-14 00:30:14 +02:00
Damien Arrachequesne
ef1c4c8bb7
refactor: remove the wsPreEncoded option
...
The wsPreEncoded option was added in the `socket.io-adapter` package
when broadcasting a message to multiple clients.
It was removed in [1] and is now superseded by the `wsPreEncodedFrame`
option, which directly computes the WebSocket frame once for all
clients (see [2]).
[1]: 88eee5948a
[2]: 5f7b47d40f
2024-06-13 23:55:16 +02:00
Damien Arrachequesne
8955eb7b75
docs(examples): add some examples to track the memory usage
...
Related: fc21c4a05f
2024-06-13 23:21:26 +02:00
Jonathan Perret
fc21c4a05f
fix: fix websocket and webtransport send callbacks ( #699 )
...
With the `websocket` transport, the callbacks which indicate that the
packets are actually written were not properly called.
Example:
```js
socket.send("hello", () => {
// the message has been written to the underlying transport
});
```
The bug was caused by the `websocket` transport (and `webtransport` as
well) having its `supportsFraming` property set to `true`, despite
having been changed in [1] to emit a single `drain` event for each
batch of messages written to the transport like the `polling` transport
always did. Note that although [1] is partially reverted in [2], the
new `drain` event behavior is preserved as called out in that commit's
message.
The `supportsFraming` attribute was introduced in [3] (amended by [4])
as a way to distinguish transports that emit one `drain` per message
from those that emit one `drain` per batch. Since the delivery of
`send` callbacks depends on matching `drain` events with
`transport.send` calls, that distinction is vital to correct behavior.
However, now that all transports have converged to "one `drain` per
batch" behavior, this `supportsFraming` property can be retired (and
the code for calling callbacks simplified).
[1]: https://github.com/socketio/engine.io/pull/618
[2]: a65a047526
[3]: https://github.com/socketio/engine.io/pull/130
[4]: https://github.com/socketio/engine.io/pull/132
Related: https://github.com/socketio/engine.io/issues/698
2024-06-13 23:02:22 +02:00
Jakub Szaredko
579d34412a
chore: fix compilation on macOS ( #1616 )
2024-06-11 12:30:57 +02:00
Damien Arrachequesne
b624c50832
fix: add some randomness to the cache busting string generator
...
The yeast() method could generate the same string twice when used in
two different iframes, which can cause Safari to only send one HTTP
request (deduplication) and trigger an HTTP 400 error afterwards since
the two iframes share the same session ID.
This new method, combining 5 chars from the timestamp and 3 chars from
Math.random() should be sufficient for our use case.
Related: https://github.com/socketio/engine.io/issues/690
See also: 874484cc1e
2024-06-05 13:44:55 +02:00
Damien Arrachequesne
c087dc5f32
docs(changelog): include the size of the bundle
2024-06-04 17:19:31 +02:00
Damien Arrachequesne
ce13763b52
ci: upgrade to actions/checkout@4 and actions/setup-node@4
...
Reference: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
2024-06-04 17:08:48 +02:00
Damien Arrachequesne
74cfb98f12
refactor: prefix private attributes to allow property mangling
...
| | before | after |
|----------|---------|---------|
| min | 27.3 KB | 26.1 KB |
| min+gzip | 8.8 KB | 8.7 KB |
| min+br | 8.0 KB | 7.8 KB |
Reference: https://terser.org/docs/options/#mangle-properties-options
2024-06-04 17:06:29 +02:00
Damien Arrachequesne
2b9abbbfae
chore: restore the debug package in the dev bundle
...
The debug package was not included anymore in the dev bundle since the
migration from webpack to rollup ([1]) in version 6.0.0.
[1]: 27de300de4
See also: 4683a954d4
2024-06-03 14:54:49 +02:00
Damien Arrachequesne
e105551ef1
fix: fix cookie management with WebSocket (Node.js only)
...
Before this commit, the cookies were only sent with the HTTP
long-polling transport, and not when upgrading to WebSocket.
See also: 5fc88a62d4
2024-06-03 09:58:56 +02:00
Damien Arrachequesne
3f6647897a
chore: remove unused rollup plugin
...
This plugin is not needed anymore, since the
`@socket.io/component-emitter` package now includes an ESM version.
2024-05-31 18:46:37 +02:00
Damien Arrachequesne
4aec72a53c
chore: use babel loose mode when transpiling classes
...
By default, Babel uses `Object.defineProperty()` when transpiling
classes. We'll now use the loose mode which creates a more terse
output.
| | before | after |
|----------|--------|--------|
| min+gzip | 8.8 KB | 8.6 KB |
| min+br | 8.0 KB | 7.7 KB |
Reference: https://babeljs.io/docs/babel-plugin-transform-classes
2024-05-31 18:35:31 +02:00
Damien Arrachequesne
dd52844f09
chore: add a script to compute the bundle size
2024-05-31 18:10:02 +02:00
Damien Arrachequesne
f4d898ee96
feat: allow to provide a list of transport implementations
...
This commit adds the ability to provide a list of transport
implementations to use when connecting to an Engine.IO server.
This can be used to use HTTP long-polling based on `fetch()`, instead
of the default implementation based on the `XMLHttpRequest` object.
```
import { Socket, Fetch, WebSocket } from "engine.io-client";
const socket = new Socket({
transports: [Fetch, WebSocket]
});
```
This is useful in some environments that do not provide a
`XMLHttpRequest` object, like Chrome extension background scripts.
> XMLHttpRequest() can't be called from a service worker, extension or
otherwise. Replace calls from your background script to
XMLHttpRequest() with calls to global fetch().
Source: https://developer.chrome.com/docs/extensions/develop/migrate/to-service-workers#replace-xmlhttprequest
Related:
- https://github.com/socketio/engine.io-client/issues/716
- https://github.com/socketio/socket.io/issues/4980
This is also useful when running the client with Deno or Bun, as it
allows to use the built-in `fetch()` method and `WebSocket` object,
instead of using the `xmlhttprequest-ssl` and `ws` Node.js packages.
Related: https://github.com/socketio/socket.io-deno/issues/12
This feature also comes with the ability to exclude the code related to
unused transports (a.k.a. "tree-shaking"):
```js
import { SocketWithoutUpgrade, WebSocket } from "engine.io-client";
const socket = new SocketWithoutUpgrade({
transports: [WebSocket]
});
```
In that case, the code related to HTTP long-polling and WebTransport
will be excluded from the final bundle.
Related: https://github.com/socketio/socket.io/discussions/4393
2024-05-31 16:56:25 +02:00
Damien Arrachequesne
579b243e89
feat: add the ability to test all transports
...
When setting the `tryAllTransports` option to `true`, if the first
transport (usually, HTTP long-polling) fails, then the other transports
will be tested too.
This is useful in two cases:
> when HTTP long-polling is disabled on the server, or if CORS fails
Related:
- https://github.com/socketio/engine.io-client/issues/575
- https://github.com/socketio/socket.io-client/issues/1448
> when WebSocket is tested first (`transports: ["websocket", "polling"])
Related:
- https://github.com/socketio/engine.io-client/issues/714
- https://github.com/socketio/socket.io-client/issues/1599
The only potential downside is that the connection attempt could take
more time in case of failure, as there have been reports of WebSocket
connection errors taking several seconds before being detected (that's
one reason for using HTTP long-polling first). That's why the option
defaults to `false` for now.
2024-05-28 19:31:36 +02:00
tnfAngel
31f10f6808
fix(types): make io#httpServer public ( #5035 )
...
Related: https://github.com/socketio/socket.io/issues/5034
2024-05-27 18:09:14 +02:00
Damien Arrachequesne
2c1851d095
refactor: simplify transport creation
...
The try/catch clause was needed for the JSONP transport, which was
removed in [1].
[1]: b2c73812e9
2024-05-20 05:32:08 +02:00
Damien Arrachequesne
68f9e0d8e0
refactor: improve the types
2024-05-19 19:54:56 +02:00
Damien Arrachequesne
c060d65947
refactor: improve the constructor types
2024-05-19 19:41:36 +02:00
Damien Arrachequesne
cb10d01fac
docs: improve documentation for the autoUnref option
2024-05-19 19:26:46 +02:00
Damien Arrachequesne
156d622c48
refactor: remove unused onlyBinaryUpgrades option
...
This option no longer has any effect since [1].
[1]: c46611ce44
2024-05-19 19:16:55 +02:00
pouria azad
89c4c7eb47
refactor(examples): minor tweak ( #5017 )
2024-05-10 05:00:20 +02:00
Gah Tang
239a2a82d0
fix: fix broadcasting from a parent namespace ( #5009 )
...
Following [1], emitting from a dynamic namespace to a room would throw
this error:
> node_modules/socket.io/dist/parent-namespace.js:88
> this.children.forEach((nsp) => {
> ^
>
> TypeError: Cannot read properties of undefined (reading 'forEach')
> at ParentBroadcastAdapter.broadcast (node_modules/socket.io/dist/parent-namespace.js:88:23)
> at BroadcastOperator.emit (node_modules/socket.io/dist/broadcast-operator.js:169:26)
> at Socket.<anonymous> (server.js:60:33)
> at Socket.emit (node:events:520:28)
> at Socket.emitReserved (node_modules/socket.io/dist/typed-events.js:56:22)
> at Socket._onclose (node_modules/socket.io/dist/socket.js:547:14)
> at Client.onclose (node_modules/socket.io/dist/client.js:247:20)
> at Socket.emit (node:events:532:35)
> at Socket.onClose (node_modules/engine.io/build/socket.js:304:18)
> at Object.onceWrapper (node:events:639:28)
Previous output code:
```js
class ParentNamespace extends namespace_1.Namespace {
constructor(server) {
super(server, "/_" + ParentNamespace.count++);
this.children = new Set();
}
_initAdapter() {
this.adapter = new ParentBroadcastAdapter(this, this.children);
}
}
```
Here, `super()` calls `Namespace._initAdapter()`, but `this.children`
is not defined yet, hence the problem.
[1]: b9ce6a25d1
Related: https://github.com/socketio/socket.io/issues/4985
2024-04-26 15:36:26 +02:00
Damien Arrachequesne
b25e728da0
docs: update TypeScript example
2024-04-26 07:45:48 +02:00
Damien Arrachequesne
8a2ece1f36
chore(release): 3.1.2
...
Diff: https://github.com/socketio/emitter/compare/3.1.1...3.1.2
2024-04-26 07:31:29 +02:00
Damien Arrachequesne
e6aa1a331c
fix: point towards the CommonJS types
...
In order to fix the following issue:
> error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@socket.io/component-emitter")' call instead.
>
> 1 import { Emitter } from "@socket.io/component-emitter";
This problem was introduced in [1], when reworking the dual packaging.
Related: https://github.com/socketio/socket.io-parser/issues/132
[1]: ba6b56de2c
2024-04-26 07:26:11 +02:00
Damien Arrachequesne
62cbed729d
refactor: change URL max length to 8000
...
The previous limit of 2000 characters was a bit too low in certain cases.
From https://www.rfc-editor.org/rfc/rfc9110#section-4.1-5
> It is RECOMMENDED that all senders and recipients support, at a minimum, URIs with lengths of 8000 octets in protocol elements.
Related: https://github.com/socketio/engine.io-client/issues/715
See also: 707597df26
2024-04-23 11:23:18 +02:00
Damien Arrachequesne
b11763beec
feat: add HTTP long-polling implementation based on fetch()
...
Usage:
```js
import { Socket, transports, Fetch } from "engine.io-client";
transports.polling = Fetch;
const socket = new Socket("https://example.com ");
```
Note: tree-shaking unused transports is not currently supported and
will be added later.
Related:
- https://github.com/socketio/socket.io/issues/4980
- https://github.com/socketio/engine.io-client/issues/716
2024-04-23 11:09:57 +02:00
Damien Arrachequesne
14d4997dbc
docs: add example with NW.js
2024-04-12 11:13:31 +02:00
Damien Arrachequesne
c68478dcf8
chore(release): 3.1.1
...
Diff: https://github.com/socketio/emitter/compare/4.0.0...3.1.1
2024-04-10 16:51:42 +02:00
Damien Arrachequesne
ba6b56de2c
refactor: rework the dual CommonJS/ES packages
...
In order to remove the .mjs file, which causes some problems with React
Native.
Related: https://github.com/socketio/socket.io-client/issues/1598
2024-04-10 16:27:02 +02:00
Damien Arrachequesne
4476b52981
revert: refactor: rename emitReserved to _emitReserved to improve mangling
...
This reverts commit 0852bda0b4 .
The impact on the final bundle size is negligible.
2024-04-10 16:20:21 +02:00
Damien Arrachequesne
28c9ed4331
ci: init GitHub Actions
2024-04-10 16:17:24 +02:00
Damien Arrachequesne
907f102517
docs: update React Native example
2024-04-05 19:19:39 +02:00
dependabot[bot]
79ea52dc09
chore(deps): bump express from 4.18.2 to 4.19.2 in /examples/latency ( #700 )
...
Bumps [express](https://github.com/expressjs/express ) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2 )
---
updated-dependencies:
- dependency-name: express
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 10:29:47 +01:00
Damien Arrachequesne
be2da4e4dc
docs: add example with Nuxt
2024-03-29 10:00:23 +01:00
Damien Arrachequesne
61f444956b
docs: add example with Next.js (with app router)
2024-03-27 11:02:03 +01:00
dependabot[bot]
218c3443f6
chore: bump express from 4.17.3 to 4.19.2 ( #718 )
...
Bumps [express](https://github.com/expressjs/express ) from 4.17.3 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.17.3...4.19.2 )
---
updated-dependencies:
- dependency-name: express
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-26 08:15:20 +01:00
Damien Arrachequesne
b0568b20c1
docs: add example with Next.js (with pages router)
2024-03-25 18:05:22 +01:00
Damien Arrachequesne
50176812a1
chore(release): 4.7.5
...
Diff: https://github.com/socketio/socket.io/compare/4.7.4...4.7.5
2024-03-14 17:55:23 +01:00
Damien Arrachequesne
bf64870957
fix: close the adapters when the server is closed
...
Related:
- https://github.com/socketio/socket.io-mongo-adapter/issues/9
- https://github.com/socketio/socket.io-postgres-adapter/issues/13
- 0e23ff0cc6
2024-02-23 12:10:29 +01:00
Jonathan Perret
0efa04b584
fix(types): make socket.request writable ( #697 )
...
Related: https://github.com/socketio/engine.io/issues/696
2024-02-23 10:21:43 +01:00
Damien Arrachequesne
748e18c22e
ci: test with older TypeScript version
...
Related: https://github.com/socketio/socket.io/issues/3891
2024-02-22 10:12:18 +01:00
Damien Arrachequesne
5eae5a0b54
chore(release): 2.5.4
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.5.3...2.5.4
2024-02-22 09:33:01 +01:00
Damien Arrachequesne
005d546767
ci: test with older TypeScript version
2024-02-22 09:31:39 +01:00
Damien Arrachequesne
a13f35f0e6
fix: ensure the order of the commands
...
Before this change, the broadcast() method would send the BROADCAST
command and then apply it locally (which is required to retrieve the
offset of the message, when connection state recovery is enabled),
while the other commands like disconnectSockets() would first apply it
locally and then send the command to the other nodes.
So, for example:
```js
io.emit("bye");
io.disconnectSockets();
```
In that case, the clients connected to the io instance would not receive
the "bye" event, while the clients connected to the other server
instances would receive it before being disconnected.
Related:
- https://github.com/socketio/socket.io-redis-streams-adapter/issues/13
- https://github.com/socketio/socket.io-postgres-adapter/issues/12
2024-02-22 09:15:45 +01:00
Damien Arrachequesne
207c0dba1a
refactor: break circular dependency (2)
2024-02-22 08:34:29 +01:00
Damien Arrachequesne
abc93a9ac7
refactor: break circular dependency (1)
...
This will be done in two steps, in order to preserve the history of the
index.ts file.
2024-02-22 08:32:40 +01:00
Damien Arrachequesne
9d4c4a75a4
refactor(cluster): export ClusterAdapterOptions and MessageType types
...
Related:
- 89d00a49e4/lib/adapter.ts (L17)
- 89d00a49e4/lib/adapter.ts (L191)
2024-02-22 08:01:30 +01:00
Damien Arrachequesne
ca397f3afe
fix(types): ensure compatibility with TypeScript < 4.5
...
"import { type ... }" was added in TypeScript 4.5.
Reference: https://devblogs.microsoft.com/typescript/announcing-typescript-4-5/
Related:
- https://github.com/socketio/socket.io-adapter/issues/86
- https://github.com/socketio/socket.io/issues/3891
2024-02-22 07:54:48 +01:00
Damien Arrachequesne
549156c064
chore(release): 2.5.3
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.5.2...2.5.3
2024-02-21 12:33:48 +01:00
Damien Arrachequesne
5dcd182736
refactor(cluster): make onMessage() method synchronous
...
The fetchSockets() method of the parent class is synchronous, so the
onMessage() method does not need to be asynchronous.
2024-02-21 12:09:29 +01:00
Damien Arrachequesne
1d8da64514
ci: upgrade to actions/checkout@4 and actions/setup-node@4
...
Reference: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
2024-02-21 11:46:21 +01:00
Damien Arrachequesne
48eddc19ea
ci: use Node.js 20
...
Reference: https://github.com/nodejs/Release
2024-02-21 11:46:21 +01:00
Damien Arrachequesne
2df5e94c81
test(cluster): init the test suite for the clustered adapter
...
The test suite is imported from [1].
[1]: 193883b9ca/test/index.ts
2024-02-21 11:38:16 +01:00
Damien Arrachequesne
2a6a215600
refactor(cluster): add explicit types
2024-02-20 16:49:23 +01:00
Damien Arrachequesne
d99a71b558
perf(cluster): use timer.refresh()
...
Reference: https://nodejs.org/api/timers.html#timeoutrefresh
2024-02-20 16:49:23 +01:00
Damien Arrachequesne
39d4220814
refactor(cluster): catch publish errors
...
Note: the current API does not currently allow the user to handle those
errors (and retry, for example). This might be worth investigating for
the next major version, maybe something like:
```js
try {
await io.emit("hello");
} catch (e) {
// something went wrong
}
```
Related: https://github.com/socketio/socket.io-mongo-adapter/issues/15
2024-02-20 16:49:12 +01:00
Damien Arrachequesne
1011ab3bfb
refactor(cluster): allow to call onMessage() with a cluster response
...
The Redis adapter is currently the only adapter which makes a
distinction between publishing messages (one channel for all) and
responses (one channel for each node).
2024-02-20 16:21:50 +01:00
Damien Arrachequesne
0e23ff0cc6
fix(cluster): notify the other nodes when closing
...
The clustered adapter will now:
- periodically check if a node has left the cluster
- send an event when it leaves the cluster
This should reduce the number of "timeout reached: only x responses
received out of y" errors.
2024-02-20 16:12:47 +01:00
Damien Arrachequesne
80af4e939c
fix(cluster): fix count in fetchSockets() method
...
Related: bd32763043
2024-02-20 15:53:08 +01:00
Damien Arrachequesne
b2d36951ef
refactor(cluster): add explicit message types
2024-02-20 15:53:04 +01:00
Damien Arrachequesne
b157e9e1ac
refactor: import the ClusterAdapter abstract class
...
Imported from ef5f0da0b4/lib/cluster-adapter.ts
This abstract class is currently used by the sharded Redis adapter. We
import it here because the logic can be reused by the other adapters,
which will then only need to handle the pub/sub mechanism.
2024-02-20 15:46:13 +01:00
Wang Guan
b9ce6a25d1
refactor: create specific adapter for parent namespaces ( #4950 )
2024-02-19 22:01:29 +01:00
Damien Arrachequesne
54dabe5bff
ci: upgrade to actions/checkout@4 and actions/setup-node@4
...
Reference: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
2024-02-12 18:16:10 +01:00
Damien Arrachequesne
e426f3e8e1
fix: remove duplicate pipeline when serving bundle
...
Related: https://github.com/socketio/socket.io/issues/4946
2024-02-12 18:11:38 +01:00
Damien Arrachequesne
69d02dd754
chore(release): 5.2.2
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.2.1...5.2.2
2024-02-05 18:35:35 +01:00
Damien Arrachequesne
0305b4a7a5
fix(typescript): properly import the TransformStream type
...
When compiling with TypeScript with module set to "node16" and
moduleResolution to "node16", the following error would be thrown:
> node_modules/engine.io-parser/build/cjs/index.d.ts:6:54 - error TS2304: Cannot find name 'TransformStream'.
> 6 export declare function createPacketEncoderStream(): TransformStream<Packet, any>;
> ~~~~~~~~~~~~~~~
> node_modules/engine.io-parser/build/cjs/index.d.ts:7:96 - error TS2304: Cannot find name 'TransformStream'.
> 7 export declare function createPacketDecoderStream(maxPayload: number, binaryType: BinaryType): TransformStream<Uint8Array, any>;
> ~~~~~~~~~~~~~~~
> Found 2 errors in the same file, starting at: node_modules/engine.io-parser/build/cjs/index.d.ts:6
This is because the TransformStream object is not exposed in the global
scope in the `@types/node` package, even though it is since Node.js
`v18.0.0`.
Reference: https://nodejs.org/api/webstreams.html#class-transformstream
Note: we only import the TransformStream type (not value) because it
isn't defined on older Node.js versions.
Related:
- https://github.com/socketio/engine.io-parser/issues/136
- https://github.com/socketio/socket.io-client/issues/1606
2024-02-05 18:20:49 +01:00
Damien Arrachequesne
08cff77a48
chore: bump prettier to version 3
...
This change is necessary to be able to write "import type { ... }".
2024-02-05 18:20:30 +01:00
Damien Arrachequesne
e36062ca2d
docs: update the webtransport example
...
Reference: https://github.com/fails-components/webtransport#changes-for-version-1xx
2024-01-17 13:01:57 +01:00
Damien Arrachequesne
0bbe8aec77
docs: only execute the passport middleware once
...
Before this change, the session and user context were retrieved once
per HTTP request and not once per session.
2024-01-13 17:56:17 +01:00
Damien Arrachequesne
914a8bd2b9
docs: add example with JWT
...
Related: https://github.com/socketio/socket.io/issues/4910
2024-01-13 17:14:01 +01:00
Damien Arrachequesne
d943c3e0b0
docs: update the Passport.js example
2024-01-12 17:08:19 +01:00
Damien Arrachequesne
6ab2509d52
chore(release): 4.7.4
...
Diff: https://github.com/socketio/socket.io/compare/4.7.3...4.7.4
2024-01-12 11:09:14 +01:00
Zachary Soare
d9fb2f64b6
chore(tests): add a test for noArgs in a namespace
2024-01-08 06:38:57 +01:00
Zachary Soare
2c0a81cd87
chore(tests): fix issues due to client#id type change
2024-01-08 06:38:57 +01:00
Zachary Soare
f8d2644921
chore(tests): add type defs for expectjs and fix invalid expectations
2024-01-08 06:38:57 +01:00
Zachary Soare
04640d68cf
chore(tests): indicate a future ts error with version
2024-01-08 06:38:57 +01:00
Zachary Soare
cb6d2e02aa
fix(typings): calling io.emit with no arguments incorrectly errored
...
Refs: #4914
2024-01-08 06:38:57 +01:00
Damien Arrachequesne
80b2c34478
chore: bump socket.io-client version
2024-01-03 21:37:25 +01:00
Damien Arrachequesne
0d893196f8
chore(release): 4.7.3
...
Diff: https://github.com/socketio/socket.io/compare/4.7.2...4.7.3
2024-01-03 21:33:29 +01:00
BCCSTeam
df8e70f798
fix: return the first response when broadcasting to a single socket ( #4878 )
2024-01-02 17:43:10 +01:00
Xì Gà
8c9ebc30e5
fix(typings): allow to bind to a non-secure Http2Server ( #4853 )
2023-11-22 17:48:59 +01:00
Damien Arrachequesne
efb5c21e85
docs(examples): add Vue client with CRUD example
2023-11-22 10:12:17 +01:00
Damien Arrachequesne
3848280125
docs(examples): upgrade basic-crud-application to Angular v17
...
Related: https://github.com/socketio/socket.io/issues/4875
2023-11-21 14:15:50 +01:00
dependabot[bot]
23213858c6
chore: bump browserify-sign from 4.2.1 to 4.2.2 ( #138 )
...
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign ) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md )
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2 )
---
updated-dependencies:
- dependency-name: browserify-sign
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 18:12:46 +01:00
Damien Arrachequesne
ff0fbfb61f
chore(release): 6.5.4
...
Diff: https://github.com/socketio/engine.io/compare/6.5.3...6.5.4
2023-11-09 18:07:45 +01:00
Damien Arrachequesne
09acb177a6
ci: add Node.js 20 in the test matrix
...
Reference: https://github.com/nodejs/Release
2023-11-09 18:04:07 +01:00
Damien Arrachequesne
fa47916425
chore(release): 6.5.3
...
Diff: https://github.com/socketio/engine.io-client/compare/6.5.2...6.5.3
2023-11-09 16:28:04 +01:00
Damien Arrachequesne
ef9ad7d1d6
ci: add Node.js 20 in the test matrix
...
Reference: https://github.com/nodejs/Release
2023-11-09 16:16:41 +01:00
Damien Arrachequesne
707597df26
fix: add a maximum length for the URL
...
The regular expression used to parse the URL provided by the user has a
time complexity of O(n^2), hence the length limitation.
Please note that this does not seem realistically exploitable, as an
attacker would have to be able to provide a malicious URL to the user
and inject it in the Engine.IO client.
We could also have:
- modified the regex, but there are a lot of edge cases and the current test coverage is probably not sufficient
- use the built-in URL object, but we would have to add a polyfill for old platforms like IE
Thanks to Young-jin Hwang from the Soonchunhyang University for the
responsible disclosure.
2023-11-09 15:35:57 +01:00
dependabot[bot]
8d86e0d892
chore: bump browserify-sign from 4.2.1 to 4.2.2 ( #713 )
...
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign ) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md )
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2 )
---
updated-dependencies:
- dependency-name: browserify-sign
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-09 15:19:00 +01:00
dependabot[bot]
f2aca29494
chore: bump @babel/traverse from 7.12.9 to 7.23.2 ( #712 )
...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse ) from 7.12.9 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse )
---
updated-dependencies:
- dependency-name: "@babel/traverse"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-09 15:18:47 +01:00
Damien Arrachequesne
39937f8f4d
refactor: minor cleanups
2023-11-09 12:18:55 +01:00
Damien Arrachequesne
43c1c1c1e2
refactor: simplify code
2023-11-09 12:13:15 +01:00
Damien Arrachequesne
3b5e79ef79
refactor: remove useless references
...
Those timers are only used during the upgrade, so there is no need to
keep those references in memory.
2023-11-09 12:05:38 +01:00
Damien Arrachequesne
f27a6c3501
refactor: remove useless reference
...
A reference to the initial IncomingMessage object (the first HTTP
request of the session) is kept in memory by default (`socket.request`),
so its attached ServerResponse object (`req.res`) would not be
garbage-collected. This will now be the case.
Note: the IncomingMessage object is needed in two cases:
- when working with the `express-session` middleware (`request.session`)
- when fetching the certificate of the client with `request.socket.getPeerCertificate()`
That's why removing it would be a breaking change.
2023-11-09 11:45:43 +01:00
James Baldassari
c1795ef568
refactor: export TransportError ( #709 )
2023-11-06 23:20:46 +01:00
Tyler Butler
46ef8512ed
fix: improve compatibility with node16 module resolution ( #711 )
...
Related:
- https://github.com/microsoft/TypeScript/issues/46770#issuecomment-966612103
- https://github.com/socketio/socket.io-client/issues/1589
2023-11-06 23:18:25 +01:00
dependabot[bot]
b96f0cb45a
chore: bump @babel/traverse from 7.9.5 to 7.23.2 ( #137 )
...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse ) from 7.9.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse )
---
updated-dependencies:
- dependency-name: "@babel/traverse"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 22:19:35 +02:00
Damien Arrachequesne
9f76ea22b4
ci: bump appiumVersion for Android tests in SauceLabs
...
> Error: Appium 1.22.1 does not support Android latest.
2023-10-23 22:18:28 +02:00
dependabot[bot]
9228596240
chore: bump @babel/traverse from 7.9.6 to 7.23.2 ( #126 )
...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse ) from 7.9.6 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse )
---
updated-dependencies:
- dependency-name: "@babel/traverse"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 22:17:11 +02:00
Damien Arrachequesne
9a2a83fdd4
refactor: cleanup after merge
2023-10-11 10:45:59 +02:00
Zachary Haber
f6ef267b03
refactor(typings): improve emit types ( #4817 )
...
This commit fixes several issues with emit types:
- calling `emit()` without calling `timeout()` first is now only available for events without acknowledgement
- calling `emit()` after calling `timeout()` is now only available for events with an acknowledgement
- calling `emitWithAck()` is now only available for events with an acknowledgement
- `timeout()` must be called before calling `emitWithAck()`
2023-10-11 10:37:13 +02:00
Maxime Kjaer
1cdf36bfea
test: build examples in the CI ( #3856 )
2023-10-10 20:02:52 +02:00
Toha
bbf1fdc7a6
docs: add Elephant.IO as PHP client library ( #4779 )
2023-10-10 17:32:19 +02:00
Damien Arrachequesne
2da559a8fa
chore(release): 6.5.3
...
Diff: https://github.com/socketio/engine.io/compare/6.5.2...6.5.3
2023-10-06 10:20:34 +02:00
Damien Arrachequesne
9545b44b3c
refactor: add cache-control header in the polling response
...
This header should not be needed since the client already includes a
cache busting query parameter ("t"), but a misconfigured CDN could
ignore the query parameters and cache the server response.
Related: https://github.com/socketio/socket.io/issues/4842
2023-10-05 17:19:08 +02:00
Damien Arrachequesne
ff1c861548
fix(webtransport): properly handle abruptly closed connections
...
Refreshing the page with a client connected with WebTransport would
trigger the following exception:
> node:internal/process/promises:288
> triggerUncaughtException(err, true /* fromPromise */);
> ^
>
> [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "0".] {
> code: 'ERR_UNHANDLED_REJECTION'
> }
Related: https://github.com/socketio/engine.io/issues/688
2023-10-05 16:57:33 +02:00
Damien Arrachequesne
b4dc83eb9b
docs(examples): add codesandbox configuration
2023-09-20 12:57:37 +02:00
Damien Arrachequesne
ccbb4c0773
docs: add example with connection state recovery
2023-09-20 12:45:04 +02:00
Théodore Prévot
4f633dd6a4
docs: add test should close the connection if no handshake is received ( #31 )
2023-09-19 17:15:55 +02:00
Damien Arrachequesne
d744fda772
docs: improve example with express-session
...
The example is now available with different syntaxes:
- CommonJS
- ES modules
- TypeScript
Related: https://github.com/socketio/socket.io/pull/4787
2023-09-13 15:56:15 +02:00
Damien Arrachequesne
8259cdac84
docs: use io.engine.use() with express-session
...
Related: https://github.com/socketio/socket.io/discussions/4819
2023-09-13 12:13:03 +02:00
Damien Arrachequesne
3dcb88cb31
docs: add note about the agent option
...
Related: https://github.com/socketio/engine.io-client/pull/708
2023-09-13 11:58:29 +02:00
Avi Vahl
c6bf8c0f57
fix: improve compatibility with node16 module resolution ( #689 )
...
Related: https://github.com/microsoft/TypeScript/issues/46770#issuecomment-966612103
2023-08-17 07:59:32 +02:00
Damien Arrachequesne
fd9dd74eee
docs: use "connection" instead of "connect"
...
"connect" and "connection" have the same meaning, but "connection" is
the preferred version.
2023-08-12 10:10:55 +02:00
Damien Arrachequesne
9efa1d0aec
test: add more stream decoding tests
2023-08-05 00:34:20 +02:00
Damien Arrachequesne
c332643ad8
chore(release): 4.7.2
...
Diff: https://github.com/socketio/socket.io/compare/4.7.1...4.7.2
2023-08-03 01:51:04 +02:00
Damien Arrachequesne
3468a197af
fix(webtransport): properly handle WebTransport-only connections
...
A WebTransport-only connection has no `request` attribute, so we need
to handle that case.
2023-08-03 01:45:21 +02:00
Damien Arrachequesne
09d45491c4
chore: bump engine.io to version 6.5.2
...
Diff: https://github.com/socketio/engine.io/compare/6.5.0...6.5.2
Release notes: https://github.com/socketio/engine.io/releases/tag/6.5.2
2023-08-03 00:39:46 +02:00
Damien Arrachequesne
12ca32b534
chore(release): 6.5.2
...
Diff: https://github.com/socketio/engine.io/compare/6.5.1...6.5.2
2023-08-02 02:00:02 +02:00
Damien Arrachequesne
10970563bf
chore(release): 6.5.2
...
Diff: https://github.com/socketio/engine.io-client/compare/6.5.1...6.5.2
2023-08-02 01:57:14 +02:00
Chris Dewbery
ed34a45a07
refactor: reset ping timeout on any incoming packet ( #706 )
...
The client will now match the behavior of the server.
See also: be7b4e7478
2023-08-02 01:53:29 +02:00
Damien Arrachequesne
8270e00d5b
fix(webtransport): honor the binaryType attribute
...
The Node.js client will now properly receive binary data as Buffers
instead of ArrayBuffers, when connecting with WebTransport. Browser
clients will still receive ArrayBuffers though (or Blobs, if
`socket.binaryType` is set to "blob").
2023-08-02 01:48:38 +02:00
Damien Arrachequesne
d55c39e0ed
fix(webtransport): add proper framing
...
WebTransport being a stream-based protocol, the chunking boundaries are
not necessarily preserved. That's why we need a header indicating the
type of the payload (plain text or binary) and its length.
See also: a306db09e8
2023-08-02 01:42:23 +02:00
Damien Arrachequesne
a306db09e8
fix(webtransport): add proper framing
...
WebTransport being a stream-based protocol, the chunking boundaries are
not necessarily preserved. That's why we need a header indicating the
type of the payload (plain text or binary) and its length.
We will use a format inspired by the WebSocket frame:
- first bit indicates whether the payload is binary
- the next 7 bits are either:
- 125 or less: that's the length of the payload
- 126: the next 2 bytes represent the length of the payload
- 127: the next 8 bytes represent the length of the payload
Reference: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#decoding_payload_length
Related:
- https://github.com/socketio/engine.io/issues/687
- https://github.com/socketio/engine.io/issues/688
2023-08-02 01:00:42 +02:00
Damien Arrachequesne
58626c7edd
chore(release): 5.2.1
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.2.0...5.2.1
2023-08-02 00:32:16 +02:00
Damien Arrachequesne
0b5e98591e
refactor: prepend a header to each WebTransport chunk
...
This commit updates the format of the header added in [1], in order to
match the format used for a WebSocket frame ([2]).
Two advantages:
- small payloads only need 1 byte instead of 4
- payloads larger than 2^31 bytes are supported
[1]: 6142324fa6
[2]: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#decoding_payload_length
2023-08-02 00:29:45 +02:00
Damien Arrachequesne
aea321cadc
chore(release): 5.2.0
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.1.0...5.2.0
2023-07-31 08:47:00 +02:00
Damien Arrachequesne
6142324fa6
feat: prepend a header to each WebTransport chunk
...
WebTransport is a stream-based protocol, so chunking boundaries are not
always preserved.
That's why we will now prepend a 4-bytes header to each chunk:
- first bit indicates whether the payload is plain text (0) or binary (1)
- next 31 bits indicate the length of the payload
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#format
2023-07-31 08:09:27 +02:00
Damien Arrachequesne
2d0b75595c
chore: bump dev dependencies
2023-07-31 08:08:54 +02:00
Jaro
0731c0d2f4
fix: clean up child namespace when client is rejected in middleware ( #4773 )
...
Related: https://github.com/socketio/socket.io/issues/4772
2023-07-21 08:33:46 +02:00
Damien Arrachequesne
03046a64ad
docs: update the list of supported Node.js versions
...
The Engine.IO server uses `timeout.refresh()` (see [1]), which was
added in Node.js 10.2.0.
Reference: https://nodejs.org/api/timers.html#timeoutrefresh
Related: https://github.com/socketio/engine.io/issues/686
[1]: 37474c7e67
2023-07-09 10:14:49 +02:00
Damien Arrachequesne
7dd1350bf9
docs: update the list of supported Node.js versions
...
The server uses `timeout.refresh()` (see [1]), which was added in Node.js 10.2.0.
Reference: https://nodejs.org/api/timers.html#timeoutrefresh
Related: https://github.com/socketio/engine.io/issues/686
[1]: 37474c7e67
2023-07-09 10:08:50 +02:00
Damien Arrachequesne
56a53bceb9
ci: add Node.js 20 in the test matrix
2023-07-09 10:03:47 +02:00
Damien Arrachequesne
683720a67d
test: fix flaky test
2023-07-09 10:03:46 +02:00
Damien Arrachequesne
a529eb08d6
chore: bump dev dependencies
2023-07-09 10:03:32 +02:00
Théodore Prévot
05488c41f6
docs: improve test suite ( #46 )
...
The second WebSocket created after an upgrade should gracefully close
and not throw an error as specified the official implementation.
2023-07-08 08:34:14 +02:00
Sleeyax
723c7bab4d
docs: add test suite ( #45 )
2023-07-02 09:39:37 +02:00
Damien Arrachequesne
443e447087
docs(examples): add example with WebTransport
2023-06-29 11:21:27 +02:00
Damien Arrachequesne
2f6cc2fa42
chore(release): 4.7.1
...
Diff: https://github.com/socketio/socket.io/compare/4.7.0...4.7.1
2023-06-28 09:32:32 +02:00
Damien Arrachequesne
500085dcf2
chore(release): 6.5.1
...
Diff: https://github.com/socketio/engine.io-client/compare/6.5.0...6.5.1
2023-06-28 08:44:52 +02:00
Damien Arrachequesne
a63066bdc8
fix: make closeOnBeforeunload default to false
...
Silently closing the connection when receiving a "beforeunload" event
is problematic, because it is emitted:
- when downloading a file from another host
Related: https://github.com/socketio/socket.io/issues/4436
- when the user already has a listener for the "beforeunload" event
(i.e. "are you sure you want to leave this page?")
Related:
- https://github.com/socketio/engine.io-client/issues/661
- https://github.com/socketio/engine.io-client/issues/658
- https://github.com/socketio/socket.io/issues/4065
That's why the `closeOnBeforeunload` option will now default to false.
2023-06-28 08:33:40 +02:00
Damien Arrachequesne
1fc61a3be5
refactor: expose the ESM build with debug (bis)
...
This reverts the previous commit ([1]), and expose the ESM build that
includes the debug package on a subpath:
```js
import { Socket } from "engine.io-client/debug";
```
Reference: https://nodejs.org/api/packages.html#subpath-exports
Related: https://github.com/socketio/socket.io-client/issues/1586
[1]: fe4d93ae20
2023-06-28 08:26:25 +02:00
Damien Arrachequesne
fe4d93ae20
refactor: expose the ESM build with debug
...
So that debug logs can be printed with vite:
```js
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
port: 4000
},
resolve: {
conditions: ["development"]
}
})
```
Reference: https://v2.vitejs.dev/config/#resolve-conditions
Related: 781d753a62
2023-06-27 15:00:05 +02:00
Damien Arrachequesne
6404391143
refactor: allow transportOptions to override all other options
...
Related: https://github.com/socketio/socket.io/issues/4719
2023-06-27 14:59:09 +02:00
Damien Arrachequesne
cf6aa1f43c
fix(webtransport): properly handle abruptly closed connections
2023-06-27 14:25:52 +02:00
Damien Arrachequesne
98915d0b61
chore(release): 6.5.1
...
Diff: https://github.com/socketio/engine.io/compare/6.5.0...6.5.1
2023-06-27 09:13:22 +02:00
Ben Weintraub
6dd2bc4f68
fix: prevent crash when accessing TextDecoder ( #684 )
...
The TextDecoder object was added on the global object in Node.js
v11.0.0, so older versions would throw:
> ReferenceError: TextDecoder is not defined
Reference: https://nodejs.org/api/util.html#new-textdecoderencoding-options
2023-06-27 09:01:26 +02:00
Damien Arrachequesne
00d8ee5b05
chore(release): 4.7.0
...
Diff: https://github.com/socketio/socket.io/compare/4.6.2...4.7.0
2023-06-22 11:27:45 +02:00
dependabot[bot]
87236baf87
chore: bump json5 from 2.1.3 to 2.2.3 ( #120 )
...
Bumps [json5](https://github.com/json5/json5 ) from 2.1.3 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.1.3...v2.2.3 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-22 09:12:30 +02:00
dependabot[bot]
021618886a
chore: bump decode-uri-component from 0.2.0 to 0.2.2 ( #119 )
...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component ) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases )
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2 )
---
updated-dependencies:
- dependency-name: decode-uri-component
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-22 09:12:16 +02:00
bitcoinfinancier
2d8b159e2a
chore: add security policy ( #124 )
2023-06-22 09:10:50 +02:00
Damien Arrachequesne
7594aa40c6
refactor: expose the ESM build with debug
...
So that debug logs can be printed with vite:
```js
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
port: 4000
},
resolve: {
conditions: ["development"]
}
})
```
Related: 781d753a62
2023-06-22 08:56:47 +02:00
Damien Arrachequesne
0eecad9185
refactor: export the isPacketValid() method
...
So that any custom parser does not have to implement their own.
Reference: https://socket.io/docs/v4/custom-parser/
2023-06-22 08:55:01 +02:00
Damien Arrachequesne
2dd5fa9dd4
ci: add Node.js 20 in the test matrix
...
Reference: https://github.com/nodejs/Release
2023-06-22 07:55:32 +02:00
Damien Arrachequesne
a5dff0ac83
docs(examples): increase httpd ProxyTimeout value (2)
2023-06-21 00:07:44 +02:00
Damien Arrachequesne
3035c25982
docs(examples): increase httpd ProxyTimeout value
...
With a value that is too small, the HTTP long-polling request receives
an HTTP 502 response code and the connection gets closed.
2023-06-20 23:57:46 +02:00
Damien Arrachequesne
63f181cc12
feat: serve client bundles with CORS headers
...
The version of the `cors` package matches the one used by `engine.io`.
Related: https://github.com/socketio/socket.io/issues/3552
2023-06-20 14:32:59 +02:00
Damien Arrachequesne
a250e283da
chore: bump engine.io to version 6.5.0
...
Diff: https://github.com/socketio/engine.io/compare/6.4.2...6.5.0
Release notes: https://github.com/socketio/engine.io/releases/tag/6.5.0
2023-06-20 09:17:10 +02:00
SyedTayyabUlMazhar
e5c62cad60
fix: remove the Partial modifier from the socket.data type ( #4740 )
...
Wrapping SocketData with Partial causes issues when reading data even
if you've made sure to pass all values. If someone want to make their
type Partial or make only a few properties optional, they can do so in
their own type instead.
Related: https://github.com/socketio/socket.io/issues/4537
2023-06-20 07:49:02 +02:00
Damien Arrachequesne
887396dbc2
ci: add Node.js 20 in the test matrix
...
Reference: https://github.com/nodejs/Release
2023-06-19 08:16:23 +02:00
Damien Arrachequesne
01804d59c3
chore: update bundle
2023-06-16 11:59:43 +02:00
dependabot[bot]
9608781efe
chore(deps): bump engine.io from 6.2.1 to 6.4.2 in /examples/latency ( #678 )
...
Bumps [engine.io](https://github.com/socketio/engine.io ) from 6.2.1 to 6.4.2.
- [Release notes](https://github.com/socketio/engine.io/releases )
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md )
- [Commits](https://github.com/socketio/engine.io/compare/6.2.1...6.4.2 )
---
updated-dependencies:
- dependency-name: engine.io
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-16 11:42:09 +02:00
Damien Arrachequesne
1f640a2a0f
chore(release): 6.5.0
...
Diff: https://github.com/socketio/engine.io/compare/6.4.2...6.5.0
2023-06-16 11:36:09 +02:00
Damien Arrachequesne
4abc2ca3df
chore(release): 6.5.0
...
Diff: https://github.com/socketio/engine.io-client/compare/6.4.0...6.5.0
2023-06-16 11:05:41 +02:00
Damien Arrachequesne
9d37b16e6a
feat: favor WebTransport over WebSocket
...
This commit ensures that when there are multiple possible upgrades
(like WebSocket and WebTransport), then the WebTransport is favored and
the other upgrades are delayed.
Following 7195c0f305
2023-06-16 10:24:51 +02:00
Damien Arrachequesne
13d08bc0ac
test: fix randomly failing test
2023-06-16 10:22:32 +02:00
Damien Arrachequesne
1bfa9cd088
refactor: adapt to latest uWebSockets.js changes
...
Reference: https://github.com/uNetworking/uWebSockets.js/releases
2023-06-16 10:19:58 +02:00
Damien Arrachequesne
36724da521
refactor: cleanup URI creation
...
Following 7195c0f305
2023-06-13 17:57:01 +02:00
Damien Arrachequesne
e05367f6bb
chore: bump caniuse-lite version
2023-06-13 17:40:54 +02:00
Damien Arrachequesne
73b2f11300
refactor: remove unused async attribute
...
The `async` flag was always true.
2023-06-13 17:39:59 +02:00
Damien Arrachequesne
2c16af3797
refactor: remove useless xscheme attribute
...
The xscheme attribute was used when XDomainRequest was supported (IE8).
Related: c6561928be
2023-06-13 17:38:40 +02:00
Damien Arrachequesne
5fc88a62d4
feat: implement cookie management for the Node.js client
...
When setting the `withCredentials` option to `true`, the Node.js client
will now include the cookies in the HTTP requests, making it easier to
use it with cookie-based sticky sessions.
Related: https://github.com/socketio/socket.io/issues/3812
2023-06-13 17:31:00 +02:00
Damien Arrachequesne
7195c0f305
feat: add support for WebTransport
...
Reference: https://developer.mozilla.org/en-US/docs/Web/API/WebTransport
Related:
- https://github.com/socketio/engine.io-client/issues/703
- https://github.com/socketio/socket.io/issues/3769
2023-06-12 09:58:47 +02:00
Damien Arrachequesne
123b68c04f
feat: add support for WebTransport
...
Reference: https://developer.mozilla.org/en-US/docs/Web/API/WebTransport
2023-06-11 09:42:45 +02:00
Damien Arrachequesne
a779bea9d7
chore(release): 5.1.0
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.0.7...5.1.0
2023-06-11 07:50:57 +02:00
Damien Arrachequesne
670160d604
ci: add Node.js 20 in the test matrix
2023-06-11 07:45:09 +02:00
Damien Arrachequesne
8039f2e421
ci: upgrade to actions/checkout@3 and actions/setup-node@3
...
Reference: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2023-06-11 07:44:23 +02:00
Damien Arrachequesne
bed70a4f25
feat: implement WebTransport-related encoding/decoding
2023-06-11 07:41:51 +02:00
Sean Oxley
3144d27458
fix(uws): discard any write to an aborted uWS response ( #682 )
...
This bug only exists for polling transport connections running on top
of uWS.
If the remote client abruptly disconnects (thus aborting the request)
while the server is waiting on an asynchronous operation such as
compression, the server may attempt to write a response via the aborted
response object. This causes an uncaught exception to be thrown.
2023-05-31 14:27:40 +02:00
Damien Arrachequesne
01d37624a8
docs(changelog): update the version range of the engine.io dependency
2023-05-31 11:28:00 +02:00
Damien Arrachequesne
faf914c9ab
chore(release): 4.6.2
...
Diff: https://github.com/socketio/socket.io/compare/4.6.1...4.6.2
2023-05-31 11:15:41 +02:00
Damien Arrachequesne
164ba2a11e
chore(release): 4.2.4
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.2.3...4.2.4
2023-05-31 10:56:08 +02:00
Damien Arrachequesne
b0e6400c93
fix: properly detect plain objects
...
The typeof check was not sufficient, as it also matches arrays and
nulls.
2023-05-31 10:44:05 +02:00
Damien Arrachequesne
d9db4737a3
fix: ensure reserved events cannot be used as event names
2023-05-31 08:29:52 +02:00
Damien Arrachequesne
0fc3694a13
chore(release): 5.0.7
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.0.6...5.0.7
2023-05-24 14:50:09 +02:00
Damien Arrachequesne
e4a1c2b082
refactor: export typescript declarations for the commonjs build
...
Related:
- https://github.com/socketio/socket.io/issues/4621#issuecomment-1551853243
- https://github.com/socketio/engine.io-parser/issues/129
2023-05-24 14:43:54 +02:00
Damien Arrachequesne
15af22fc22
refactor: add a noop handler for the error event
...
We should reduce the scope of the "event" error in the next major
version, as it is overloaded today:
- it can be sent by the client (`socket.emit("error")`, which is a perfectly valid event name)
- it can be emitted when the connection encounters an error (an invalid packet for example)
- it can be emitted when a packet is rejected in a middleware (`socket.use()`)
Related: https://github.com/socketio/socket.io/issues/2047
2023-05-24 10:47:52 +02:00
Damien Arrachequesne
d3658944e5
chore: bump socket.io-parser to version 4.2.3
...
Reference: https://github.com/advisories/GHSA-cqmj-92xf-r6r9
2023-05-24 07:27:12 +02:00
Damien Arrachequesne
db3de84ad5
docs(security): update the list of CVE
2023-05-23 08:48:13 +02:00
Damien Arrachequesne
7bd77759bd
docs: update the list of CVE
2023-05-23 08:40:03 +02:00
Damien Arrachequesne
6a5a004d1e
docs(changelog): include changelog for release 3.4.3
2023-05-22 10:06:05 +02:00
Damien Arrachequesne
b6c824f824
chore(release): 4.2.3
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.2.2...4.2.3
2023-05-22 08:25:34 +02:00
Damien Arrachequesne
dcc70d9678
refactor: export typescript declarations for the commonjs build
...
Related: https://github.com/socketio/socket.io/issues/4621#issuecomment-1551853243
2023-05-22 08:25:34 +02:00
Damien Arrachequesne
3b78117bf6
fix: check the format of the event name
...
A packet like '2[{"toString":"foo"}]' was decoded as:
{
type: EVENT,
data: [ { "toString": "foo" } ]
}
Which would then throw an error when passed to the EventEmitter class:
> TypeError: Cannot convert object to primitive value
> at Socket.emit (node:events:507:25)
> at .../node_modules/socket.io/lib/socket.js:531:14
History of the isPayloadValid() method:
- added in [78f9fc2 ](78f9fc2999 ) (v4.0.1, socket.io@3.0.0)
- updated in [1c220dd ](1c220ddbf4 ) (v4.0.4, socket.io@3.1.0)
2023-05-22 08:25:33 +02:00
Damien Arrachequesne
12b0de4f52
chore: bump engine.io to version 6.4.2
...
Reference: https://github.com/advisories/GHSA-q9mw-68c2-j6m5
Related: https://github.com/socketio/socket.io/issues/4711
2023-05-10 10:20:42 +02:00
Mateusz Burzyński
3d44aae381
fix(exports): move types condition to the top ( #4698 )
...
Related: https://github.com/microsoft/TypeScript/issues/50762
2023-05-04 07:27:09 +02:00
Damien Arrachequesne
cbf0362476
docs(examples): bump dependencies for the private messaging example
...
Related: https://github.com/socketio/socket.io/issues/4681
2023-05-02 18:07:07 +02:00
Damien Arrachequesne
95e215387c
chore(release): 6.4.2
...
Diff: https://github.com/socketio/engine.io/compare/6.4.1...6.4.2
2023-05-02 01:27:20 +02:00
Damien Arrachequesne
fc480b4f30
fix: prevent crash when provided with an invalid query param
...
A specially crafted request could lead to the following exception:
> TypeError: Cannot read properties of undefined (reading 'handlesUpgrades')
> at Server.onWebSocket (build/server.js:515:67)
This bug was introduced in [1], released in version 5.1.0 and included
in version 4.1.0 of the `socket.io` parent package. Older versions are
not impacted.
[1]: 7096e98a02
2023-05-02 01:07:40 +02:00
Damien Arrachequesne
0141951185
refactor(types): ensure compatibility with Express middlewares
...
In order to prevent issues like:
> error TS2345: Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'Middleware'.
> Types of parameters 'req' and 'req' are incompatible.
> Type 'IncomingMessage' is missing the following properties from type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>': get, header, accepts, acceptsCharsets, and 29 more.
>
> io.engine.use(sessionMiddleware);
~~~~~~~~~~~~~~~~~
Related: https://github.com/socketio/socket.io/issues/4644
We could also have use the RequestHandler type from the
@types/express-serve-static-core package, but that would add 5 new
dependencies.
See also: https://github.com/socketio/engine.io/issues/673
2023-05-02 00:51:33 +02:00
Damien Arrachequesne
8b22162903
fix(uws): prevent crash when using with middlewares
...
The class used to accumulate the response headers did not expose the
exact same API as its wrapped type, which could lead to the following
error in some rare cases:
> TypeError: Cannot read properties of undefined (reading 'end')
> at Polling.onDataRequest (build/transports-uws/polling.js:109:53)
> at Polling.onRequest (build/transports-uws/polling.js:47:18)
> at callback (build/userver.js:94:56)
> at uServer.verify (build/server.js:152:9)
Related: https://github.com/socketio/socket.io/issues/4643
2023-05-02 00:50:34 +02:00
Ciel
93957828be
fix: include error handling for Express middlewares ( #674 )
...
Following 24786e77c5 .
Reference: https://expressjs.com/en/guide/error-handling.html
2023-05-02 00:00:47 +02:00
Damien Arrachequesne
911d0e3575
refactor: return HTTP 400 upon invalid request overlap
...
In both cases, the error comes from the client as it should not send
multiple concurrent requests, so a HTTP 4xx code is mandated.
Related: https://github.com/socketio/engine.io/issues/650
2023-05-01 07:42:43 +02:00
Asger Hautop Drewsen
bd6d4713b0
fix(typings): make clientsCount public ( #675 )
...
Related: https://github.com/socketio/engine.io/issues/672
2023-04-19 23:25:16 +03:00
Damien Arrachequesne
59280da20b
docs(examples): update examples to docker compose v2
...
Reference: https://docs.docker.com/compose/
Related: https://github.com/socketio/socket.io/discussions/4669
2023-04-07 15:57:20 +02:00
Damien Arrachequesne
50a4d37cb8
docs(changelog): add version of transitive dependencies
2023-03-27 17:35:42 +02:00
Damien Arrachequesne
cddb78e5fa
chore(release): 0.2.2
...
Diff: https://github.com/socketio/socket.io-cluster-adapter/compare/0.2.1...0.2.2
2023-03-24 17:32:35 +01:00
Damien Arrachequesne
15fd56e78d
chore: add socket.io-parser to peerDependencies
...
This should (at least in theory) fix sync issues for the
`socket.io-adapter` package, which is imported by both the `socket.io`
and `@socket.io/cluster-adapter` packages:
- `socket.io@4.5.0` should resolve `socket.io-adapter@~2.4.0`
- `socket.io@4.6.0` should resolve `socket.io-adapter@~2.5.0`
2023-03-24 17:28:57 +01:00
Damien Arrachequesne
e86ef45f87
ci: upgrade to actions/checkout@3 and actions/setup-node@3
...
Reference: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2023-03-24 17:16:25 +01:00
Damien Arrachequesne
6458b2bef1
docs(example): basic WebSocket-only client
2023-03-24 11:17:29 +01:00
Damien Arrachequesne
b56da8a99f
docs(examples): upgrade to React 18
...
Reference: https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html
2023-03-07 08:31:21 +01:00
Damien Arrachequesne
7952312911
chore(release): 4.6.1
...
Diff: https://github.com/socketio/socket.io/compare/4.6.0...4.6.1
2023-02-20 17:49:41 +01:00
Damien Arrachequesne
0d0a7a22b5
fix: properly handle manually created dynamic namespaces
...
Namespaces that match the regex of a parent namespace will now be added
as a child of this namespace:
```js
const parentNamespace = io.of(/^\/dynamic-\d+$/);
const childNamespace = io.of("/dynamic-101");
```
Related:
- https://github.com/socketio/socket.io/issues/4615
- https://github.com/socketio/socket.io/issues/4164
- https://github.com/socketio/socket.io/issues/4015
- https://github.com/socketio/socket.io/issues/3960
2023-02-20 01:19:01 +01:00
Damien Arrachequesne
2a8565fd1e
refactor: catch errors when trying to restore the connection state
2023-02-20 01:18:08 +01:00
Igor Lins e Silva
d0b22c6302
fix(types): fix nodenext module resolution compatibility ( #4625 )
...
The import added in [1] was invalid, because it used an non-exported
class.
Related: https://github.com/socketio/socket.io/issues/4621
[1]: d4a9b2cdcb
2023-02-20 01:15:35 +01:00
Damien Arrachequesne
7033c0ed27
chore(release): 6.4.1
...
Diff: https://github.com/socketio/engine.io/compare/6.4.0...6.4.1
2023-02-20 00:54:54 +01:00
Igor Lins e Silva
6e78489486
refactor: export BaseServer class ( #669 )
...
Related: https://github.com/socketio/socket.io/issues/4621
2023-02-17 23:24:50 +01:00
Nabaraj Subedi
e71f3d7dbe
docs: minor style fix ( #4619 )
2023-02-16 09:25:43 +01:00
Damien Arrachequesne
535b068670
docs: add upgrade event in the documentation
...
Reference: 898bd1c9df/lib/socket.ts (L285)
Related: https://github.com/socketio/socket.io-website/issues/369
2023-02-14 15:25:57 +01:00
Damien Arrachequesne
a2e5d1f77f
chore(release): 4.6.0
...
Diff: https://github.com/socketio/socket.io/compare/4.5.4...4.6.0
2023-02-07 01:07:46 +01:00
Damien Arrachequesne
d8143cc067
refactor: do not persist session if connection state recovery if disabled
...
This is a follow-up commit of [1]. Without it, adapter.persistSession()
would be called even if the connection state recovery feature was
disabled.
[1]: 54d5ee05a6
2023-02-06 18:03:34 +01:00
Damien Arrachequesne
b2dd7cf660
chore: bump engine.io to version 6.4.0
...
Diff: https://github.com/socketio/engine.io/compare/6.3.1...6.4.0
Release notes: https://github.com/socketio/engine.io/releases/tag/6.4.0
2023-02-06 17:43:02 +01:00
Damien Arrachequesne
3734b74b45
revert: feat: expose current offset to allow deduplication
...
This reverts commit 4e64123862 .
Using the id of the socket is not possible, since it is lost upon
reconnection (unless connection recovery is successful), so we revert
the previous change.
2023-02-06 17:36:37 +01:00
Damien Arrachequesne
898bd1c9df
chore(release): 6.4.0
...
Diff: https://github.com/socketio/engine.io/compare/6.3.1...6.4.0
2023-02-06 17:16:32 +01:00
Damien Arrachequesne
89487d8a66
chore(release): 6.4.0
...
Diff: https://github.com/socketio/engine.io-client/compare/6.3.1...6.4.0
2023-02-06 17:10:22 +01:00
dependabot[bot]
6220d140cc
chore(deps): bump cookiejar from 2.1.2 to 2.1.4 ( #667 )
...
Bumps [cookiejar](https://github.com/bmeck/node-cookiejar ) from 2.1.2 to 2.1.4.
- [Release notes](https://github.com/bmeck/node-cookiejar/releases )
- [Commits](https://github.com/bmeck/node-cookiejar/commits )
---
updated-dependencies:
- dependency-name: cookiejar
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-06 17:06:11 +01:00
Damien Arrachequesne
24786e77c5
feat: add support for Express middlewares
...
This commit implements middlewares at the Engine.IO level, because
Socket.IO middlewares are meant for namespace authorization and are not
executed during a classic HTTP request/response cycle.
A workaround was possible by using the allowRequest option and the
"headers" event, but this feels way cleaner and works with upgrade
requests too.
Syntax:
```js
engine.use((req, res, next) => {
// do something
next();
});
// with express-session
import session from "express-session";
engine.use(session({
secret: "keyboard cat",
resave: false,
saveUninitialized: true,
cookie: { secure: true }
});
// with helmet
import helmet from "helmet";
engine.use(helmet());
```
Related:
- https://github.com/socketio/engine.io/issues/668
- https://github.com/socketio/engine.io/issues/651
- https://github.com/socketio/socket.io/issues/4609
- https://github.com/socketio/socket.io/issues/3933
- a lot of other issues asking for compatibility with express-session
2023-02-06 17:01:27 +01:00
Edouard Benauw
8aa94991ce
feat: add description to the disconnecting and disconnect events ( #4622 )
...
See also: b862924b7f
2023-02-04 09:03:01 +01:00
Damien Arrachequesne
4e64123862
feat: expose current offset to allow deduplication
...
Related: 655dce9755
2023-02-04 08:56:55 +01:00
dependabot[bot]
af1112a407
chore: bump engine.io from 6.2.0-alpha.1 to 6.2.1 ( #696 )
...
Bumps [engine.io](https://github.com/socketio/engine.io ) from 6.2.0-alpha.1 to 6.2.1.
- [Release notes](https://github.com/socketio/engine.io/releases )
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md )
- [Commits](https://github.com/socketio/engine.io/commits/6.2.1 )
---
updated-dependencies:
- dependency-name: engine.io
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-04 07:29:35 +01:00
dependabot[bot]
b59da3af0c
chore: bump loader-utils from 1.4.0 to 1.4.2 ( #695 )
...
Bumps [loader-utils](https://github.com/webpack/loader-utils ) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases )
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md )
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.2 )
---
updated-dependencies:
- dependency-name: loader-utils
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-04 07:27:15 +01:00
dependabot[bot]
e06891c93c
chore: bump express from 4.17.1 to 4.17.3 ( #697 )
...
Bumps [express](https://github.com/expressjs/express ) from 4.17.1 to 4.17.3.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.17.3 )
---
updated-dependencies:
- dependency-name: express
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-04 07:26:38 +01:00
dependabot[bot]
d35992983d
chore: bump decode-uri-component from 0.2.0 to 0.2.2 ( #698 )
...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component ) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases )
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2 )
---
updated-dependencies:
- dependency-name: decode-uri-component
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-04 07:25:16 +01:00
dependabot[bot]
df3e2f948a
chore: bump json5 from 1.0.1 to 1.0.2 ( #701 )
...
Bumps [json5](https://github.com/json5/json5 ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-04 07:24:48 +01:00
Damien Arrachequesne
828d447f57
chore(release): 6.3.1
...
Diff: https://github.com/socketio/engine.io-client/compare/6.3.0...6.3.1
2023-02-04 07:20:23 +01:00
Damien Arrachequesne
37d7a0aa79
fix(typings): do not expose browser-specific types
...
Related:
- https://github.com/socketio/socket.io-client/issues/1561
- b9252e2074
2023-02-04 07:12:52 +01:00
Damien Arrachequesne
c36883d243
refactor: use "import type" syntax
...
For some reason, "import { type A }" does not work in some cases:
> node_modules/engine.io-client/build/esm/socket.d.ts:2:15 - error TS1005: ',' expected.
> 2 import { type Packet, type BinaryType, RawData } from "engine.io-parser";
References: https://www.typescriptlang.org/docs/handbook/modules.html#importing-types
2023-02-03 09:22:36 +01:00
Damien Arrachequesne
115a9819fd
refactor: do not include the pid by default
...
So that the client knows whether the connection state recovery feature
is enabled.
See also: 54d5ee05a6
2023-01-25 09:39:22 +01:00
dependabot[bot]
0841bd5623
chore: bump ua-parser-js from 1.0.32 to 1.0.33 ( #121 )
...
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases )
- [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md )
- [Commits](https://github.com/faisalman/ua-parser-js/compare/1.0.32...1.0.33 )
---
updated-dependencies:
- dependency-name: ua-parser-js
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-25 07:23:55 +01:00
Waldemar Schlegel
0c0eb00163
fix: add timeout method to remote socket ( #4558 )
...
The RemoteSocket interface, which is returned when the client is
connected on another Socket.IO server of the cluster, was lacking the
`timeout()` method.
Syntax:
```js
const sockets = await io.fetchSockets();
for (const socket of sockets) {
if (someCondition) {
socket.timeout(1000).emit("some-event", (err) => {
if (err) {
// the client did not acknowledge the event in the given delay
}
});
}
}
```
Related: https://github.com/socketio/socket.io/issues/4595
2023-01-24 09:24:19 +01:00
Damien Arrachequesne
f8640d9451
refactor: export DisconnectReason type
...
Related: https://github.com/socketio/socket.io/issues/4556
2023-01-23 09:27:32 +01:00
Damien Arrachequesne
93d446a545
refactor: add charset when serving the bundle files
...
Reference: https://developer.mozilla.org/fr/docs/Web/HTTP/Headers/Content-Type
Related: https://github.com/socketio/socket.io/discussions/4589
2023-01-23 09:27:06 +01:00
Damien Arrachequesne
184f3cf7af
feat: add promise-based acknowledgements
...
This commit adds some syntactic sugar around acknowledgements:
- `emitWithAck()`
```js
try {
const responses = await io.timeout(1000).emitWithAck("some-event");
console.log(responses); // one response per client
} catch (e) {
// some clients did not acknowledge the event in the given delay
}
io.on("connection", async (socket) => {
// without timeout
const response = await socket.emitWithAck("hello", "world");
// with a specific timeout
try {
const response = await socket.timeout(1000).emitWithAck("hello", "world");
} catch (err) {
// the client did not acknowledge the event in the given delay
}
});
```
- `serverSideEmitWithAck()`
```js
try {
const responses = await io.timeout(1000).serverSideEmitWithAck("some-event");
console.log(responses); // one response per server (except itself)
} catch (e) {
// some servers did not acknowledge the event in the given delay
}
```
Related:
- https://github.com/socketio/socket.io/issues/4175
- https://github.com/socketio/socket.io/issues/4577
- https://github.com/socketio/socket.io/issues/4583
2023-01-23 09:06:25 +01:00
Steve Baum
5d9220b69a
feat: add the ability to clean up empty child namespaces ( #4602 )
...
This commit adds a new option, "cleanupEmptyChildNamespaces". With this
option enabled (disabled by default), when a socket disconnects from a
dynamic namespace and if there are no other sockets connected to it
then the namespace will be cleaned up and its adapter will be closed.
Note: the namespace can be connected to later (it will be recreated)
Related: https://github.com/socketio/socket.io-redis-adapter/issues/480
2023-01-23 07:56:14 +01:00
Damien Arrachequesne
129883958a
test: add test with onAnyOutgoing() and binary attachments
...
Related:
- https://github.com/socketio/socket.io/issues/4374
- ae8dd88995
2023-01-19 12:05:35 +01:00
Damien Arrachequesne
6c27b8b0a6
test: add test with socket.disconnect(true)
...
Related: a65a047526
2023-01-19 11:53:53 +01:00
Damien Arrachequesne
f3ada7d8cc
fix(typings): properly type emits with timeout
...
When emitting with a timeout (added in version 4.4.0), the "err"
argument was not properly typed and would require to split the client
and server typings. It will now be automatically inferred as an Error
object.
Workaround for previous versions:
```ts
type WithTimeoutAck<isEmitter extends boolean, args extends any[]> = isEmitter extends true ? [Error, ...args] : args;
interface ClientToServerEvents<isEmitter extends boolean = false> {
withAck: (data: { argName: boolean }, callback: (...args: WithTimeoutAck<isEmitter, [string]>) => void) => void;
}
interface ServerToClientEvents<isEmitter extends boolean = false> {
}
const io = new Server<ClientToServerEvents, ServerToClientEvents<true>>(3000);
io.on("connection", (socket) => {
socket.on("withAck", (val, cb) => {
cb("123");
});
});
const socket: Socket<ServerToClientEvents, ClientToServerEvents<true>> = ioc("http://localhost:3000 ");
socket.timeout(100).emit("withAck", { argName: true }, (err, val) => {
// ...
});
```
Related: https://github.com/socketio/socket.io-client/issues/1555
2023-01-19 11:48:18 +01:00
Damien Arrachequesne
28dd668502
chore(release): 4.2.2
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.2.1...4.2.2
2023-01-19 10:43:49 +01:00
Damien Arrachequesne
22c42e3545
fix: calling destroy() should clear all internal state
...
If a client was in the process of receiving some binary attachments
when the connection was abruptly closed, then the manager would call
`decoder.destroy()` ([1]) but was then stuck in a "parse error" loop
upon reconnection (since it expected a binary attachment and not a
CONNECT packet).
[1]: a1c528b089/lib/manager.ts (L520)
2023-01-19 10:16:42 +01:00
Damien Arrachequesne
ae8dd88995
fix: do not modify the input packet upon encoding
...
Note: this issue has existed since Socket.IO v1.0 (see [1]), because
the `deconstructPacket()` method also mutates its input argument.
This also explains why some adapters (like [2]) need to use
`process.nextTick()` when extending the `broadcast()` method, because
`Adapter.broadcast()` calls `Encoder.encode()` ([3]).
Related:
- https://github.com/socketio/socket.io/issues/4374
- https://github.com/socketio/socket.io-mongo-adapter/issues/10
[1]: 299849b002
[2]: https://github.com/socketio/socket.io-postgres-adapter/blob/0.3.0/lib/index.ts#L587-L590
[3]: https://github.com/socketio/socket.io-adapter/blob/2.4.0/lib/index.ts#L148
2023-01-19 10:06:13 +01:00
Marc Jansing
a21ad88828
docs(changelog): add note about maxHttpBufferSize default value ( #4596 )
...
Reference: https://github.com/socketio/socket.io/releases/tag/2.5.0
2023-01-18 08:16:27 +01:00
Damien Arrachequesne
214182b4f0
chore(release): 5.0.6
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.0.5...5.0.6
2023-01-16 08:35:56 +01:00
Damien Arrachequesne
54d5ee05a6
feat: implement connection state recovery
...
Connection state recovery allows a client to reconnect after a
temporary disconnection and restore its state:
- id
- rooms
- data
- missed packets
Usage:
```js
import { Server } from "socket.io";
const io = new Server({
connectionStateRecovery: {
// default values
maxDisconnectionDuration: 2 * 60 * 1000,
skipMiddlewares: true,
},
});
io.on("connection", (socket) => {
console.log(socket.recovered); // whether the state was recovered or not
});
```
Here's how it works:
- the server sends a session ID during the handshake (which is
different from the current `id` attribute, which is public and can be
freely shared)
- the server also includes an offset in each packet (added at the end
of the data array, for backward compatibility)
- upon temporary disconnection, the server stores the client state for
a given delay (implemented at the adapter level)
- upon reconnection, the client sends both the session ID and the last
offset it has processed, and the server tries to restore the state
A few notes:
- the base adapter exposes two additional methods, persistSession() and
restoreSession(), that must be implemented by the other adapters in
order to allow the feature to work within a cluster
See: f5294126a8
- acknowledgements are not affected, because it won't work if the
client reconnects on another server (as the ack id is local)
- any disconnection that lasts longer than the
`maxDisconnectionDuration` value will result in a new session, so users
will still need to care for the state reconciliation between the server
and the client
Related: https://github.com/socketio/socket.io/discussions/4510
2023-01-12 12:21:56 +01:00
Damien Arrachequesne
da2b542797
perf: precompute the WebSocket frames when broadcasting
...
Note:
- only packets without binary attachments are affected
- the permessage-deflate extension must be disabled (which is the default)
Related:
- 5f7b47d40f
- 5e34722b0b
2023-01-12 08:50:07 +01:00
Damien Arrachequesne
4d6f4541c3
chore(release): 6.3.1
...
Diff: https://github.com/socketio/engine.io/compare/6.3.0...6.3.1
2023-01-12 08:23:07 +01:00
Damien Arrachequesne
69603b955a
refactor: make the compress option optional
...
The compress option was inadvertently made mandatory in [1].
[1]: 6d87a4065a
2023-01-12 08:15:21 +01:00
Damien Arrachequesne
28f60b880a
chore(release): 2.5.2
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.5.1...2.5.2
2023-01-12 08:09:40 +01:00
Damien Arrachequesne
ca39942ce0
chore: move ws from peerDependencies to dependencies
...
In order to prevent issues like [1].
Note: the version matches the one imported by the `engine.io` package
See: https://github.com/socketio/engine.io/blob/6.3.0/package.json#L43
[1]: https://github.com/socketio/socket.io-redis-adapter/issues/478
2023-01-12 08:02:52 +01:00
Tristan F
b7d54dbe8d
docs: add Rust client implementation ( #4592 )
...
client-only implementation -- it *may* add server-side support in the future.
2023-01-12 06:26:22 +01:00
Tristan F
d4a9b2cdcb
refactor(typings): add types for io.engine ( #4591 )
...
This adds typings for the socket.io engine field, which offers better
IntelliSense when retrieving the server, as well as more confidence on
the developer-side of what types of fields are entering the server.
Related: https://github.com/socketio/socket.io/issues/4590
2023-01-11 10:45:57 +01:00
Damien Arrachequesne
ae1ea77991
chore(release): 6.3.0
...
Diff: https://github.com/socketio/engine.io/compare/6.2.1...6.3.0
2023-01-10 17:28:24 +01:00
Damien Arrachequesne
e2b39b63f1
chore(release): 6.3.0
...
Diff: https://github.com/socketio/engine.io-client/compare/6.2.3...6.3.0
2023-01-10 17:05:58 +01:00
Damien Arrachequesne
a65a047526
fix: wait for all packets to be sent before closing the WebSocket connection
...
This reverts commit [1], which was included in `engine.io@5.1.0` and
`socket.io@4.1.0`.
The WebSocket connection was closed before all packets were written
out, so for example when calling `socket.disconnect(true)` on the
Socket.IO server (which disconnect from all namespaces and close the
connection), the client would receive only the first disconnect packet
and kept trying to reconnect to the other namespaces.
The only difference with the previous implementation (pre 5.1.0) is
that the "drain" event gets only called once at the end, and not after
each packet.
[1]: ad5306aeae
Related: https://github.com/socketio/engine.io/issues/648
2023-01-10 16:42:12 +01:00
Damien Arrachequesne
ed87609baf
fix: fix the ES module wrapper
...
The package does not have a default export, so importing it from a
project using ES modules would break in some cases.
> Cannot destructure property 'Server' of '_engineIo.default'
Related: https://github.com/socketio/engine.io/issues/657
2023-01-10 15:28:43 +01:00
Damien Arrachequesne
bc98bf1232
refactor: bump prettier to version 2.8.1
...
This major bump creates a lot of noise, but it is necessary for
prettier to be able to parse new syntax such as:
- typed imports: `import { type xxx } from ...`
- private attributes: `class A { #b; #c() {} }`
2023-01-10 15:22:57 +01:00
Damien Arrachequesne
33dc073172
docs: add some TODOs for the next major release
2023-01-10 14:57:58 +01:00
iifawzi
d0fd4746af
feat: add the "addTrailingSlash" option ( #655 )
...
The "addTrailingSlash" option allows to control whether a trailing
slash is added to the path of the HTTP requests:
- true (default): "/engine.io/"
- false: "/engine.io"
Related: 21a6e1219a
Signed-off-by: iifawzi <iifawzie@gmail.com >
2023-01-10 14:51:31 +01:00
Zong
047f420b86
fix: use explicit context for setTimeout function ( #699 )
...
In order to fix "Illegal invocation" errors that happen on some
platforms.
2023-01-10 14:01:21 +01:00
Damien Arrachequesne
5e34722b0b
perf: add the wsPreEncodedFrame option
...
This optimization is only applied if:
- the permessage-deflate extension is disabled (which is the default)
- the "ws" package is used (which is the default)
In that case, the WebSocket frame will only be computed once, when
broadcasting to multiple clients.
Related: 5f7b47d40f
2023-01-09 10:34:25 +01:00
Damien Arrachequesne
12b7d7817e
fix: properly parse relative URL with a "@" character
...
A query parameter with a "@" character could be incorrectly parsed.
Example: "/foo?bar=@example.com " => host: example.com
The parse() method is also used in the `socket.io-client` package, to
extract the namespace and the query parameters.
Notes:
- this bug does not seem exploitable, as an attacker would need to
inject the query parameter in the code executed by the client.
- we might use the URL object in the next major version, but that
means dropping support for some platforms such as IE
Reference: https://caniuse.com/url
Thanks to Li Jiantao of STAR Labs (@starlabs_sg) for the responsible
disclosure.
2023-01-09 09:47:34 +01:00
Damien Arrachequesne
4e3991f740
chore(release): 2.5.1
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.5.0...2.5.1
2023-01-06 12:02:23 +01:00
Damien Arrachequesne
99b0f18819
fix: properly precompute the WebSocket frames
...
The named import is not supported in some cases:
> node_modules/socket.io-adapter/dist/index.js:170
> packetOpts.wsPreEncodedFrame = ws_1.WebSocket.Sender.frame(data, {
> ^
>
> TypeError: Cannot read properties of undefined (reading 'Sender')
> at RedisAdapter._encode (/.../node_modules/socket.io-adapter/dist/index.js:170:59)
> at RedisAdapter.broadcast (/.../node_modules/socket.io-adapter/dist/index.js:117:37)
Related: https://github.com/socketio/socket.io-redis-adapter/issues/478
2023-01-06 11:58:04 +01:00
Damien Arrachequesne
05ebbad996
ci: temporarily disable browser tests
...
Until we migrate to webdriver.io.
Related: d882822908
2023-01-06 11:39:30 +01:00
Damien Arrachequesne
ed2b0cbfa3
chore(release): 5.0.5
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.0.4...5.0.5
2023-01-06 11:38:26 +01:00
Mauricio Narvaez
351ba8245b
fix: properly encode empty buffer in base64 encoding ( #131 )
...
An empty buffer was encoded into `bundefined` instead of `b`
(reproduced on Chrome v108 / Ubuntu).
Co-authored-by: Mauricio Narvaez <nvz@fb.com >
2023-01-06 11:26:29 +01:00
Damien Arrachequesne
00a8e7589e
chore(release): 2.5.0
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.4.0...2.5.0
2023-01-06 09:26:10 +01:00
Damien Arrachequesne
5f7b47d40f
perf: precompute the WebSocket frames when broadcasting
...
Note:
- only packets without binary attachments are affected
- the permessage-deflate extension must be disabled (which is the default)
Previous attempt:
- wsPreEncoded option: 5579d40c24
- fix for binary packets: a33e42bb7b
- revert: 88eee5948a
2023-01-06 08:42:51 +01:00
Damien Arrachequesne
6fffc2c3d7
ci: upgrade to actions/checkout@3 and actions/setup-node@3
...
Reference: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2023-01-05 08:40:16 +01:00
Damien Arrachequesne
f5294126a8
feat: implement connection state recovery
...
More information about how this feature is supposed to work will be
provided in the main repository.
2023-01-05 08:39:19 +01:00
Damien Arrachequesne
d5c56d4094
refactor: bump prettier to version 2.8.1
...
This major bump creates a lot of noise, but it is necessary for
prettier to be able to parse new syntax.
2023-01-05 08:21:31 +01:00
Damien Arrachequesne
060745ada3
test: migrate to TypeScript
2023-01-02 11:28:45 +01:00
Damien Arrachequesne
5924e987b6
docs: improve the documentation of the protocol
2022-12-21 00:46:56 +01:00
Damien Arrachequesne
de247df875
docs: improve the documentation of the protocol
2022-12-19 11:00:06 +01:00
dependabot[bot]
8a937a4006
chore(deps): bump qs and express in /examples/latency ( #665 )
...
Bumps [qs](https://github.com/ljharb/qs ) to 6.11.0 and updates ancestor dependency [express](https://github.com/expressjs/express ). These dependencies need to be updated together.
Updates `qs` from 6.7.0 to 6.11.0
- [Release notes](https://github.com/ljharb/qs/releases )
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ljharb/qs/compare/v6.7.0...v6.11.0 )
Updates `express` from 4.17.1 to 4.18.2
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2 )
---
updated-dependencies:
- dependency-name: qs
dependency-type: indirect
- dependency-name: express
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 10:15:52 +01:00
dependabot[bot]
719e275ff7
chore(deps): bump qs from 6.9.4 to 6.11.0 ( #664 )
...
Bumps [qs](https://github.com/ljharb/qs ) from 6.9.4 to 6.11.0.
- [Release notes](https://github.com/ljharb/qs/releases )
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ljharb/qs/compare/v6.9.4...v6.11.0 )
---
updated-dependencies:
- dependency-name: qs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 10:15:26 +01:00
dependabot[bot]
8f8b217f1c
chore(deps): bump engine.io from 4.1.2 to 6.2.1 in /examples/latency ( #663 )
...
Bumps [engine.io](https://github.com/socketio/engine.io ) from 4.1.2 to 6.2.1.
- [Release notes](https://github.com/socketio/engine.io/releases )
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md )
- [Commits](https://github.com/socketio/engine.io/compare/4.1.2...6.2.1 )
---
updated-dependencies:
- dependency-name: engine.io
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 10:15:12 +01:00
Damien Arrachequesne
da45d84c09
chore: bump ws to version 8.11.0
...
Diff: https://github.com/websockets/ws/compare/8.2.3...8.11.0
2022-12-14 07:58:30 +01:00
Damien Arrachequesne
547c541fb9
chore: add security policy
2022-12-14 07:47:51 +01:00
Damien Arrachequesne
bd74e7c988
chore: add security policy
2022-12-14 07:42:42 +01:00
Damien Arrachequesne
ed6d016a52
chore: add security policy
2022-12-14 07:28:15 +01:00
Damien Arrachequesne
1eaeeece35
refactor: remove unused option
...
This option was added by error during the TypeScript migration.
Related: 587ccf3380
2022-12-14 06:56:05 +01:00
Damien Arrachequesne
ec5a596680
refactor: improve typings
...
Note: `readyState` and `writeBuffer` are set to public, as they might
be useful for the end user.
2022-12-14 06:49:23 +01:00
Damien Arrachequesne
2ddcb825ae
chore: bump caniuse-lite version
2022-12-13 15:40:56 +01:00
Damien Arrachequesne
528a61f86f
refactor: bump prettier to version 2.8.1
...
This major bump creates a lot of noise, but it is necessary for
prettier to be able to parse new syntax such as:
- typed imports: `import { type xxx } from ...`
- private attributes: `class A { #b; #c() {} }`
2022-12-13 15:36:28 +01:00
Damien Arrachequesne
721837c2c9
ci: update the versions of actions/checkout and actions/setup-node
...
Reference: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2022-12-13 15:33:39 +01:00
Damien Arrachequesne
6565c8e956
ci: temporarily disable browser tests
...
The tests are in failure since the 13th November, without any logs from
Saucelabs, so we temporarily disable them until further investigation.
See: https://github.com/socketio/engine.io-client/actions/runs/3453198221
2022-12-13 15:29:20 +01:00
Damien Arrachequesne
824ab4cdd8
chore: bump ws to version 8.11.0
...
Diff: https://github.com/websockets/ws/compare/8.2.3...8.11.0
2022-12-09 09:36:46 +01:00
iifawzi
21a6e1219a
feat: add the "addTrailingSlash" option ( #694 )
...
The "addTrailingSlash" option allows to control whether a trailing
slash is added to the path of the HTTP requests created by the library:
- true (default): "/engine.io/"
- false: "/engine.io"
Related: https://github.com/socketio/socket.io-client/issues/1550
Signed-off-by: iifawzi <iifawzie@gmail.com >
2022-12-09 08:50:03 +01:00
Damien Arrachequesne
6d87a4065a
refactor: add types to socket.send()
...
Related: https://github.com/socketio/engine.io/issues/645
2022-12-06 00:31:02 +01:00
Damien Arrachequesne
3d28229cf0
docs: add note about socket.id
...
Related: https://github.com/socketio/engine.io/issues/644
2022-12-05 23:57:32 +01:00
dependabot[bot]
7fbea714db
chore: bump decode-uri-component from 0.2.0 to 0.2.2 ( #130 )
...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component ) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases )
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2 )
---
updated-dependencies:
- dependency-name: decode-uri-component
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 21:58:42 +01:00
Damien Arrachequesne
3b7ced7af7
chore(release): 4.5.4
...
Diff: https://github.com/socketio/socket.io/compare/4.5.3...4.5.4
2022-11-22 22:45:13 +01:00
Damien Arrachequesne
c00bb9564c
chore: bump engine.io to version 6.2.1
...
In order to fix CVE-2022-41940.
See also: https://github.com/socketio/engine.io/security/advisories/GHSA-r7qp-cfhv-p84w
2022-11-22 22:35:53 +01:00
Damien Arrachequesne
57e5f25e26
chore: bump socket.io-parser to version 4.2.1
...
In order to fix CVE-2022-2421.
See also: https://github.com/advisories/GHSA-qm95-pgcg-qqfq
2022-11-22 22:32:09 +01:00
Damien Arrachequesne
4810bd7592
chore(release): 4.0.0
...
Diff: https://github.com/socketio/emitter/compare/3.1.0...4.0.0
2022-11-22 14:18:49 +01:00
Damien Arrachequesne
0852bda0b4
refactor: rename emitReserved to _emitReserved to improve mangling
...
Related: https://github.com/socketio/socket.io/discussions/4529
2022-11-22 14:03:24 +01:00
Damien Arrachequesne
d7bd2b1d52
docs: add changelog for version 3.6.1
2022-11-20 03:06:58 +01:00
Damien Arrachequesne
24b847be6a
chore(release): 6.2.1
...
Diff: https://github.com/socketio/engine.io/compare/6.2.0...6.2.1
2022-11-20 02:14:27 +01:00
Jonathan Neve
425e833ab1
fix: catch errors when destroying invalid upgrades ( #658 )
...
Before this change, receiving an HTTP2 upgrade would make the server
crash:
> Error: read ECONNRESET
> at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
> errno: -104,
> code: 'ECONNRESET',
> syscall: 'read'
> }
This can be reproduced with Node.js v14.15.3, v16.18.1 and v18.12.1.
2022-11-20 01:55:11 +01:00
dependabot[bot]
99adb00ba1
chore(deps): bump xmlhttprequest-ssl and engine.io-client in /examples/latency ( #661 )
...
Bumps [xmlhttprequest-ssl](https://github.com/mjwwit/node-XMLHttpRequest ) to 1.6.3 and updates ancestor dependency [engine.io-client](https://github.com/socketio/engine.io-client ). These dependencies need to be updated together.
Updates `xmlhttprequest-ssl` from 1.5.5 to 1.6.3
- [Release notes](https://github.com/mjwwit/node-XMLHttpRequest/releases )
- [Commits](https://github.com/mjwwit/node-XMLHttpRequest/compare/1.5.5...1.6.3 )
Updates `engine.io-client` from 4.0.0 to 4.1.4
- [Release notes](https://github.com/socketio/engine.io-client/releases )
- [Changelog](https://github.com/socketio/engine.io-client/blob/main/CHANGELOG.md )
- [Commits](https://github.com/socketio/engine.io-client/compare/4.0.0...4.1.4 )
---
updated-dependencies:
- dependency-name: xmlhttprequest-ssl
dependency-type: indirect
- dependency-name: engine.io-client
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-20 00:46:22 +01:00
dependabot[bot]
d196f6a6b7
chore(deps): bump minimatch from 3.0.4 to 3.1.2 ( #660 )
...
Bumps [minimatch](https://github.com/isaacs/minimatch ) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases )
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2 )
---
updated-dependencies:
- dependency-name: minimatch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-20 00:43:47 +01:00
dependabot[bot]
7c1270f98c
chore(deps): bump nanoid from 3.1.25 to 3.3.1 ( #659 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.25 to 3.3.1.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.25...3.3.1 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-20 00:43:37 +01:00
Damien Arrachequesne
535a01d889
ci: add Node.js 18 in the test matrix
...
A few notes:
- the certificates were recreated because Node.js 18 includes OpenSSL
v3, which has deprecated support for some legacy ciphers (like RC2)
- eiows currently fails to build on Node.js 18, so the tests are
temporarily skipped
See also: https://github.com/nodejs/Release
2022-11-20 00:20:30 +01:00
Tamas Flamich
1b71a6f5cb
docs: remove "Vanilla JS" highlight from README ( #656 )
2022-11-18 21:49:23 +01:00
Damien Arrachequesne
9143aa4c8e
chore: update browserslist
2022-11-15 10:34:46 +01:00
Damien Arrachequesne
194a9b762e
ci: migrate from zuul to webdriver.io
...
zuul is now archived [1] and does not support the new W3C WebDriver
protocol, since it relies on the wd package [2] under the hood, which
uses the (now deprecated) JSON Wire Protocol.
We will now use the webdriver.io test framework, which allows to run
our tests in local and on Sauce Labs (cross-browser and mobile tests).
This allows us to run our tests on latest versions of Android and iOS,
since Sauce Labs only supports the W3C WebDriver protocol for these
platforms ([3]).
[1]: https://github.com/defunctzombie/zuul
[2]: https://github.com/admc/wd
[3]: https://docs.saucelabs.com/dev/w3c-webdriver-capabilities/
2022-11-15 10:13:08 +01:00
Dirk Stolle
a9758da4be
ci: update actions in GitHub Actions workflows ( #117 )
2022-11-15 10:02:20 +01:00
Damien Arrachequesne
f0af8834f8
docs: add missing versions in the changelog
...
Related: https://github.com/advisories/GHSA-qm95-pgcg-qqfq
2022-11-09 11:42:23 +01:00
Damien Arrachequesne
f4b698418a
docs: add missing versions in the changelog
2022-11-02 08:40:26 +01:00
Damien Arrachequesne
945c84be47
chore(release): 4.5.3
...
Diff: https://github.com/socketio/socket.io/compare/4.5.2...4.5.3
2022-10-15 07:14:45 +02:00
Damien Arrachequesne
d3d0a2d5be
fix(typings): accept an HTTP2 server in the constructor
...
Related:
- https://github.com/socketio/socket.io/issues/4434
- https://github.com/socketio/socket.io/issues/4494
2022-10-14 11:24:36 +02:00
Damien Arrachequesne
19b225b0c8
docs(examples): update dependencies of the basic CRUD example
...
Related: https://github.com/socketio/socket.io/issues/4409
2022-10-14 10:39:40 +02:00
Damien Arrachequesne
8fae95dd18
docs: add jsdoc for each public method
2022-10-14 10:30:08 +02:00
Damien Arrachequesne
e6f6b906db
docs: add deprecation notice for the allSockets() method
2022-10-13 15:02:23 +02:00
Damien Arrachequesne
596eb88af7
ci: upgrade to actions/checkout@3 and actions/setup-node@3
...
Reference: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2022-10-13 14:50:09 +02:00
Damien Arrachequesne
e357daf585
fix(typings): apply types to "io.timeout(...).emit()" calls
...
Typed events were not applied when calling "io.timeout(...).emit()".
Related: https://github.com/socketio/socket.io-client/issues/1555#issuecomment-1277289733
Reference: https://socket.io/docs/v4/typescript/
2022-10-13 14:50:09 +02:00
Damien Arrachequesne
9d772e36b5
chore(release): 6.2.3
...
Diff: https://github.com/socketio/engine.io-client/compare/6.2.2...6.2.3
2022-10-13 12:36:04 +02:00
Damien Arrachequesne
99925a4775
fix: properly clear "beforeunload" event listener
...
Related: https://github.com/socketio/engine.io-client/issues/693
2022-10-13 12:20:03 +02:00
Damien Arrachequesne
d4d6463ded
refactor: export the nextTick helper method
...
Related: https://github.com/socketio/socket.io-client/issues/1551
2022-10-13 11:13:44 +02:00
dependabot[bot]
5e585705de
chore: bump terser from 4.8.0 to 4.8.1 ( #692 )
...
Bumps [terser](https://github.com/terser/terser ) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases )
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/terser/terser/commits )
---
updated-dependencies:
- dependency-name: terser
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-13 11:02:31 +02:00
Damien Arrachequesne
fe840e2eb3
chore(release): 0.2.1
...
Diff: https://github.com/socketio/socket.io-cluster-adapter/compare/0.2.0...0.2.1
2022-10-13 09:23:36 +02:00
Damien Arrachequesne
a5a1c29082
chore: update dev dependencies
2022-10-13 09:17:46 +02:00
Damien Arrachequesne
66b4079953
ci: add Node.js 18 in the test matrix
...
Reference: https://github.com/nodejs/Release
2022-10-13 09:15:34 +02:00
Rolando Andrade
be0a0e3217
fix: properly handle ERR_IPC_CHANNEL_CLOSED errors ( #6 )
...
Related: https://github.com/socketio/socket.io-cluster-adapter/issues/5
2022-10-13 09:11:37 +02:00
Damien Arrachequesne
ddf922aa9e
docs: update test suite
...
The server must send "noop" packets during the upgrade process, in
order to properly end the ongoing HTTP long-polling request (so that no
message gets lost).
Related: c706741544
2022-10-11 16:04:48 +02:00
Damien Arrachequesne
5dc01f73b4
docs: update test suite
...
- add delay between duplicate poll requests to ensure order
- accept HTTP 400 response for duplicate poll requests
- catch WebSocket "error" event instead of "close" event
2022-09-23 08:50:39 +02:00
Damien Arrachequesne
10fa4a2690
refactor: add list of possible disconnection reasons
...
Note: some disconnection reasons could be merged in the next major
release, i.e. the Deno impl does not have "forced server close" and
"server shutting down"
Related: https://github.com/socketio/socket.io/issues/4387
2022-09-13 08:25:13 +02:00
Damien Arrachequesne
8be95b3bd3
chore(release): 4.5.2
...
Diff: https://github.com/socketio/socket.io/compare/4.5.1...4.5.2
2022-09-02 23:46:14 +01:00
Damien Arrachequesne
ba497ee3eb
fix(uws): prevent the server from crashing after upgrade
...
This should fix a rare case where the Engine.IO connection was upgraded
to WebSocket while the Socket.IO socket was disconnected, which would
result in the following exception:
> TypeError: Cannot read properties of undefined (reading 'forEach')
> at subscribe (/node_modules/socket.io/dist/uws.js:87:11)
> at Socket.<anonymous> (/node_modules/socket.io/dist/uws.js:28:17)
> at Socket.emit (node:events:402:35)
> at WebSocket.onPacket (/node_modules/engine.io/build/socket.js:214:22)
> at WebSocket.emit (node:events:390:28)
> at WebSocket.onPacket (/node_modules/engine.io/build/transport.js:92:14)
> at WebSocket.onData (/node_modules/engine.io/build/transport.js:101:14)
> at message (/node_modules/engine.io/build/userver.js:56:30)
Related: https://github.com/socketio/socket.io/issues/4443
2022-09-02 23:42:26 +01:00
Alex
28038715cb
ci: add explicit permissions to workflow ( #4466 )
...
Reference: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
2022-09-02 23:10:19 +01:00
Daniel Rosenwasser
134226e96c
refactor: add missing constraints ( #4431 )
...
See also: https://github.com/microsoft/TypeScript/issues/49489
2022-09-01 21:13:55 +01:00
Damien Arrachequesne
5a2ccff9d1
chore(release): 4.2.1
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.2.0...4.2.1
2022-06-27 15:42:25 +02:00
Damien Arrachequesne
b5d0cb7dc5
fix: check the format of the index of each attachment
...
A specially crafted packet could be incorrectly decoded.
Example:
```js
const decoder = new Decoder();
decoder.on("decoded", (packet) => {
console.log(packet.data); // prints [ 'hello', [Function: splice] ]
})
decoder.add('51-["hello",{"_placeholder":true,"num":"splice"}]');
decoder.add(Buffer.from("world"));
```
As usual, please remember not to trust user input.
2022-06-27 15:39:24 +02:00
Damien Arrachequesne
9890b036cf
chore: bump dependencies
...
Production:
- socket.io-parser: ~4.0.4 => ~4.2.0
Development:
- superagent: ^6.1.0 => ^8.0.0
- tsd: ^0.17.0 => ^0.21.0
Related: https://github.com/socketio/socket.io/issues/3709
2022-06-27 09:16:08 +02:00
Damien Arrachequesne
713a6b451b
chore: bump mocha to version 10.0.0
...
Related: https://github.com/socketio/socket.io/issues/3710
2022-06-27 09:00:31 +02:00
Lam Wei Li
dfee8ded72
refactor: replace deprecated String.prototype.substr() ( #691 )
...
`.substr()` is deprecated so we replace it with `.slice()` which works
similarly but isn't deprecated.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr
Signed-off-by: Lam Wei Li <peteriman@mail.com >
2022-06-15 01:49:18 +02:00
Damien Arrachequesne
c814ce2968
feat: add the "maxPayload" field in the handshake
...
Added in `engine.io@6.2.0` and `socket.io@4.5.0`.
See also: 088dcb4dff
2022-06-12 09:55:08 +02:00
Damien Arrachequesne
1b3bb7cb03
feat: add the "maxPayload" field in the handshake
...
See also: 088dcb4dff
2022-06-12 09:48:47 +02:00
Lam Wei Li
917d1d29e1
refactor: replace deprecated String.prototype.substr() ( #646 )
...
`.substr()` is deprecated so we replace it with `.slice()` which works
similarily but isn't deprecated.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr
Signed-off-by: Lam Wei Li <peteriman@mail.com >
2022-06-06 08:42:45 +02:00
Damien Arrachequesne
020801ab8c
chore: add changelog for version 3.6.0
...
Diff: https://github.com/socketio/engine.io/compare/3.5.0...3.6.0
2022-06-06 08:40:21 +02:00
Damien Arrachequesne
18f3fdab12
fix: prevent the socket from joining a room after disconnection
...
Calling `socket.join()` after disconnection would lead to a memory
leak, because the room was never removed from the memory:
```js
io.on("connection", (socket) => {
socket.disconnect();
socket.join("room1"); // leak
});
```
Related:
- https://github.com/socketio/socket.io/issues/4067
- https://github.com/socketio/socket.io/issues/4380
2022-05-25 23:18:42 +02:00
Damien Arrachequesne
3410584a93
refactor: use correct type for BroadcastOptions#except
...
The 'except' attribute is a set of room IDs, which is then converted to
a set of socket IDs in the computeExceptSids() method.
That wasn't caught because both types are aliases for 'string', but
Room could be extended to all primitive values in the future.
Reference: https://developer.mozilla.org/en-US/docs/Glossary/Primitive
Related: https://github.com/socketio/socket.io-adapter/issues/82
2022-05-25 07:06:27 +02:00
Damien Arrachequesne
5ab8289c0a
chore(release): 4.5.1
...
Diff: https://github.com/socketio/socket.io/compare/4.5.0...4.5.1
2022-05-17 23:38:07 +02:00
Lucas Boemeke
ed1d6f912c
test: make test script work on Windows ( #643 )
2022-05-11 09:00:17 +02:00
Damien Arrachequesne
30430f0985
fix: forward the local flag to the adapter when using fetchSockets()
...
Related:
- https://github.com/socketio/socket.io/issues/4359
- https://github.com/socketio/socket.io-redis-adapter/issues/454
2022-05-03 15:41:24 +02:00
h110m
9b43c9167c
fix(typings): add HTTPS server to accepted types ( #4351 )
2022-05-03 08:15:22 +02:00
Damien Arrachequesne
1975c5c995
chore(release): 6.2.2
...
Diff: https://github.com/socketio/engine.io-client/compare/6.2.1...6.2.2
2022-05-02 10:11:32 +02:00
Damien Arrachequesne
7e3fe43965
chore: update caniuse-lite version
...
See https://github.com/browserslist/browserslist#browsers-data-updating
2022-05-02 10:00:31 +02:00
Damien Arrachequesne
ef1c28295e
refactor: use named export for XMLHttpRequest shim
2022-05-02 10:00:27 +02:00
Damien Arrachequesne
f158c8e255
fix: simplify the check for WebSocket availability
...
This check was added for the flashsocket transport, which has been
deprecated for a while now ([1]). But it fails with latest webpack
versions, as the expression `"__initialize" in WebSocket` gets
evaluated to `true`.
Related:
- https://github.com/socketio/engine.io-client/issues/689
- https://github.com/socketio/socket.io-client/issues/1537
[1]: dbc65f3b5a
2022-05-02 09:48:38 +02:00
yujiosaka
32878ea047
fix: use named export for globalThis shim ( #688 )
...
Default export of globalThis seems to have a problem in the "browser"
field when the library is loaded asynchronously with webpack.
2022-05-02 09:47:16 +02:00
Damien Arrachequesne
764c99f136
chore(release): 5.0.4
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.0.3...5.0.4
2022-04-30 14:13:42 +02:00
Damien Arrachequesne
bc7400a5e8
refactor: include base64-arraybuffer in the repository
...
In order to reduce the number of dependencies and the attack surface in
case of supply chain attacks.
2022-04-30 13:59:34 +02:00
Damien Arrachequesne
da182cba3e
chore: point the CI badge towards the main branch
2022-04-30 13:54:19 +02:00
Damien Arrachequesne
a421bbec7b
fix: add missing file extension for ESM import
...
Related: https://github.com/socketio/engine.io-parser/issues/127
2022-04-30 12:42:03 +02:00
Damien Arrachequesne
039b45cc65
fix(typings): update the type of RawData
...
We could also split the declaration of RawData with the "browser"
field:
```
// for Node.js
export type RawData = string | Buffer | ArrayBuffer | ArrayBufferView; // no Blob
// for the browser
export type RawData = string | ArrayBuffer | ArrayBufferView | Blob; // no Buffer
```
But it does not seem supported by the TypeScript compiler, so we'll
revert to just using "any" for now.
Related: https://github.com/socketio/engine.io-parser/issues/128
2022-04-30 12:36:57 +02:00
Damien Arrachequesne
43f9ee8d23
chore(release): 0.2.0
...
Diff: https://github.com/socketio/socket.io-cluster-adapter/compare/0.1.0...0.2.0
2022-04-28 16:16:13 +02:00
Damien Arrachequesne
055b7840d8
feat: broadcast and expect multiple acks
...
This feature was added in `socket.io@4.5.0`:
```js
io.timeout(1000).emit("some-event", (err, responses) => {
// ...
});
```
Thanks to this change, it will now work with multiple Socket.IO
servers.
Related: https://github.com/socketio/socket.io/issues/4163
2022-04-28 16:11:12 +02:00
Damien Arrachequesne
8ecfcba5c1
chore(release): 4.5.0
...
Diff: https://github.com/socketio/socket.io/compare/4.4.1...4.5.0
2022-04-24 00:45:57 +02:00
Damien Arrachequesne
572133a58d
docs(examples): update example with webpack
2022-04-22 23:10:01 +02:00
Damien Arrachequesne
6e1bb62982
chore: bump engine.io to version 6.2.0
...
Release notes: https://github.com/socketio/engine.io/releases/tag/6.2.0
Diff: https://github.com/socketio/engine.io/compare/6.1.3...6.2.0
2022-04-22 22:43:31 +02:00
Damien Arrachequesne
06e6838b18
docs(examples): add server bundling example with rollup
...
Related: https://github.com/socketio/socket.io/issues/4329
2022-04-22 22:40:15 +02:00
WD
1f03a44d1f
docs(examples): update create-react-app example ( #4347 )
2022-04-20 22:47:34 +02:00
Damien Arrachequesne
8437600aee
chore(release): 6.2.1
2022-04-18 00:46:54 +02:00
Damien Arrachequesne
a2946fc697
chore: bump engine.io-parser to version 5.0.3
...
In order to make sure the types added in [1] are included.
[1]: ad5bd7ddf5
2022-04-18 00:45:25 +02:00
Damien Arrachequesne
e2ab447d63
refactor: add missing .js extension for ESM usage
2022-04-18 00:43:40 +02:00
Damien Arrachequesne
582f4fe9ba
chore: point the CI badge towards the main branch
2022-04-18 00:42:52 +02:00
Damien Arrachequesne
c7514b5aa6
chore(release): 4.2.0
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.1.2...4.2.0
2022-04-18 00:26:27 +02:00
Damien Arrachequesne
931f1526a4
chore: add Node.js 16 in the test matrix
...
See also: https://github.com/nodejs/Release
2022-04-18 00:21:14 +02:00
Damien Arrachequesne
6c9cb27aeb
chore: bump @socket.io/component-emitter to version 3.1.0
...
Related: https://github.com/socketio/socket.io-client/issues/1536
2022-04-18 00:20:17 +02:00
David Pfeffer
b08bc1a93e
feat: allow the usage of custom replacer and reviver ( #112 )
...
Co-authored-by: Mocanu Cristian <mocanu.cristian93@gmail.com >
2022-04-18 00:19:02 +02:00
Damien Arrachequesne
d7e3ab7956
chore(release): 6.2.0
...
Diff: https://github.com/socketio/engine.io/compare/6.1.3...6.2.0
2022-04-17 23:53:53 +02:00
Damien Arrachequesne
d0773b8e6d
chore(release): 6.2.0
...
Diff: https://github.com/socketio/engine.io-client/compare/6.1.1...6.2.0
2022-04-17 23:46:57 +02:00
Damien Arrachequesne
bc3cefb57b
refactor: replace custom clone method by Object.assign()
2022-04-17 23:35:52 +02:00
Damien Arrachequesne
71cd3ba911
chore: bump @socket.io/component-emitter to version 3.1.0
...
Release notes: https://github.com/socketio/emitter/releases/tag/3.1.0
2022-04-17 23:28:12 +02:00
Damien Arrachequesne
ab6a6d4db8
chore(release): 3.1.0
2022-04-17 23:21:08 +02:00
Damien Arrachequesne
54468cf7a3
feat: add ESM version
...
Related: https://github.com/socketio/socket.io-client/issues/1536
2022-04-17 23:18:40 +02:00
Damien Arrachequesne
df32277c3f
refactor: import single-file 3rd party modules
...
This commit allows to:
- provide an ESM version of those modules ([1])
- reduce the attack surface in case of supply chain attacks
- reduce the size of the bundle with tree-shaking
As a downside, we won't receive security updates for those modules
anymore.
[1]: https://github.com/socketio/socket.io-client/issues/1536
2022-04-13 08:31:02 +02:00
Damien Arrachequesne
b4b3ed5c68
refactor: merge the polling.ts and polling-xhr.ts files
...
In the past, there were two implementations of the HTTP long-polling
feature, one with XMLHttpRequest and one based on JSONP for ancient
browsers (IE7/IE8). The JSONP implementation has been removed in [1].
[1]: b2c73812e9
2022-04-11 18:57:43 +02:00
Damien Arrachequesne
b9252e2074
feat: add details to the "close" event
...
The close event will now include additional details to help debugging
if anything has gone wrong.
Example when a payload is over the maxHttpBufferSize value in HTTP
long-polling mode:
```js
socket.on("close", (reason, details) => {
console.log(reason); // "transport error"
// in that case, details is an error object
console.log(details.message); "xhr post error"
console.log(details.description); // 413 (the HTTP status of the response)
// details.context refers to the XMLHttpRequest object
console.log(details.context.status); // 413
console.log(details.context.responseText); // ""
});
```
Note: the error object was already included before this commit and is
kept for backward compatibility
Example when a payload is over the maxHttpBufferSize value with
WebSockets:
```js
socket.on("close", (reason, details) => {
console.log(reason); // "transport close"
// in that case, details is a plain object
console.log(details.description); // "websocket connection closed"
// details.context is a CloseEvent object
console.log(details.context.code); // 1009 (which means "Message Too Big")
console.log(details.context.reason); // ""
});
```
Example within a cluster without sticky sessions:
```js
socket.on("close", (reason, details) => {
console.log(details.context.status); // 400
console.log(details.context.responseText); // '{"code":1,"message":"Session ID unknown"}'
});
```
Note: we could also print some warnings in development for the "usual"
errors:
- CORS error
- HTTP 400 with multiple nodes
- HTTP 413 with maxHttpBufferSize
but that would require an additional step when going to production
(i.e. setting NODE_ENV variable to "production"). This is open to
discussion!
Related:
- https://github.com/socketio/socket.io/issues/3946
- https://github.com/socketio/socket.io/issues/1979
- https://github.com/socketio/socket.io-client/issues/1518
2022-04-11 17:15:08 +02:00
Damien Arrachequesne
be3d7f0f1f
docs(examples): add TODO example with Postgres and Node.js cluster
2022-04-07 12:35:00 +02:00
Damien Arrachequesne
d12aab2d69
docs(examples): add example with express-session
...
Related: https://github.com/socketio/socket.io/issues/3933
2022-04-02 11:08:26 +02:00
Damien Arrachequesne
9f758689f6
docs(examples): pin the version of karma-jasmine-html-reporter
...
Related:
- https://github.com/socketio/socket.io/issues/4325
- https://github.com/dfederm/karma-jasmine-html-reporter/issues/54
2022-04-01 14:42:34 +02:00
Damien Arrachequesne
0b35dc77c0
refactor: make the protocol implementation stricter
...
This commit handles several edge cases that were silently ignored
before:
- receiving several CONNECT packets during a session
- receiving any packet without CONNECT packet first
2022-03-31 12:24:31 +02:00
Damien Arrachequesne
531104d332
feat: add support for catch-all listeners for outgoing packets
...
This is similar to `onAny()`, but for outgoing packets.
Syntax:
```js
socket.onAnyOutgoing((event, ...args) => {
console.log(event);
});
```
2022-03-31 10:35:09 +02:00
Damien Arrachequesne
8b204570a9
feat: broadcast and expect multiple acks
...
Syntax:
```js
io.timeout(1000).emit("some-event", (err, responses) => {
// ...
});
```
The adapter exposes two additional methods:
- `broadcastWithAck(packets, opts, clientCountCallback, ack)`
Similar to `broadcast(packets, opts)`, but:
* `clientCountCallback()` is called with the number of clients that
received the packet (can be called several times in a cluster)
* `ack()` is called for each client response
- `serverCount()`
It returns the number of Socket.IO servers in the cluster (1 for the
in-memory adapter).
Those two methods will be implemented in the other adapters (Redis,
Postgres, MongoDB, ...).
Related:
- https://github.com/socketio/socket.io/issues/1811
- https://github.com/socketio/socket.io/issues/4163
- https://github.com/socketio/socket.io-redis-adapter/issues/445
2022-03-31 07:49:09 +02:00
Damien Arrachequesne
0b7d70ca42
chore: bump lockfile to v2
2022-03-30 08:15:41 +02:00
Damien Arrachequesne
b92d65cf9c
chore(release): 2.4.0
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.3.3...2.4.0
2022-03-30 08:03:38 +02:00
Damien Arrachequesne
af9d7936e9
chore: bump lockfile to v2
2022-03-30 07:59:34 +02:00
dependabot[bot]
d9909203cf
chore(deps): bump ansi-regex from 3.0.0 to 3.0.1 ( #81 )
...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex ) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases )
- [Commits](https://github.com/chalk/ansi-regex/compare/v3.0.0...v3.0.1 )
---
updated-dependencies:
- dependency-name: ansi-regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-30 07:55:46 +02:00
Damien Arrachequesne
808c0450d8
refactor: do not throw on serverSideEmit() call
...
Related: https://github.com/socketio/socket.io-adapter/issues/75
2022-03-30 07:49:49 +02:00
Damien Arrachequesne
6c21bceb59
chore: add note about integers used as room identifier
2022-03-29 09:05:31 +02:00
Damien Arrachequesne
38ee887fef
feat: notify listeners for each outgoing packet
...
Related:
- https://github.com/socketio/socket.io/pull/4145
- https://github.com/socketio/socket.io-adapter/pull/78
2022-03-29 08:56:26 +02:00
Damien Arrachequesne
a7f1c90a32
feat: broadcast and expect multiple acks
...
Tests will be added in the parent repository.
Related:
- https://github.com/socketio/socket.io/issues/1811
- https://github.com/socketio/socket.io/issues/4163
2022-03-29 08:54:54 +02:00
dependabot[bot]
75455fa8ba
chore(deps): bump minimist from 1.2.5 to 1.2.6 ( #80 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 07:47:01 +02:00
Damien Arrachequesne
6e1bbff784
chore: add Node.js 16 in the test matrix
...
See also: https://github.com/nodejs/Release
2022-03-12 11:12:19 +01:00
Damien Arrachequesne
46fdc2f0ed
feat: slice write buffer according to the maxPayload value
...
The server will now include a "maxPayload" field in the handshake
details, allowing the clients to decide how many packets they have to
send to stay under the maxHttpBufferSize value.
Related:
- https://github.com/socketio/socket.io-client/issues/1531
- 088dcb4dff
2022-03-12 11:11:17 +01:00
Damien Arrachequesne
f4725f1021
test: exclude iOS 15 from the test matrix for now
...
Related:
- https://bugs.webkit.org/show_bug.cgi?id=228296
- https://github.com/socketio/socket.io/issues/4263
2022-03-12 06:24:02 +01:00
Damien Arrachequesne
088dcb4dff
feat: add the "maxPayload" field in the handshake details
...
So that clients in HTTP long-polling can decide how many packets they
have to send to stay under the maxHttpBufferSize value.
This is a backward compatible change which should not mandate a new
major revision of the protocol (we stay in v4), as we only add a field
in the JSON-encoded handshake data:
```
0{"sid":"lv_VI97HAXpY6yYWAAAC","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":5000,"maxPayload":1000000}
```
Related: https://github.com/socketio/socket.io-client/issues/1531
2022-03-10 14:20:54 +01:00
Damien Arrachequesne
657f04e0b8
chore: add Node.js 16 in the test matrix
...
See also: https://github.com/nodejs/Release
2022-03-10 14:20:36 +01:00
dependabot[bot]
f51ca4ac3e
chore: bump cached-path-relative from 1.0.2 to 1.1.0 ( #686 )
...
Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative ) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/ashaffer/cached-path-relative/releases )
- [Commits](https://github.com/ashaffer/cached-path-relative/commits )
---
updated-dependencies:
- dependency-name: cached-path-relative
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-08 07:10:28 +01:00
Damien Arrachequesne
97f2fa3269
docs: add test suite for checking server compliance
...
Related: https://github.com/socketio/socket.io-protocol/issues/14
2022-03-01 07:59:50 +01:00
Damien Arrachequesne
e24b27b8ef
refactor: return an HTTP 413 response for too large payloads
...
Before this, the connection was closed abrutly with an HTTP 502
response.
See also: f8100f9237
Related: https://github.com/socketio/socket.io/issues/4293
2022-02-28 07:21:53 +01:00
Damien Arrachequesne
ce3fe9d80b
chore(release): 6.1.3
...
Diff: https://github.com/socketio/engine.io/compare/6.1.2...6.1.3
2022-02-23 07:40:31 +01:00
Damien Arrachequesne
1bc5b1a2fd
chore: bump engine.io-parser to version 5.0.3
...
In order to make sure the types added in [1] are included.
Related:
- https://github.com/socketio/engine.io/issues/639
- https://github.com/socketio/engine.io/issues/640
[1]: ad5bd7ddf5
2022-02-23 07:36:58 +01:00
e3dio
5df4f18f3e
perf(uws): remove nested inner functions
2022-02-23 07:16:25 +01:00
e3dio
3367440308
fix(uws): properly handle chunked content ( #642 )
...
With the engine based on µWebSockets.js (introduced in version 6.1.0),
a huge request body split in multiple chunks would throw the following
error:
> node:buffer:254
> TypedArrayPrototypeSet(target, source, targetStart);
> ^
>
> TypeError: Cannot perform %TypedArray%.prototype.set on a detached ArrayBuffer
> at Buffer.set (<anonymous>)
> at _copyActual (node:buffer:254:3)
> node:buffer:254
> TypedArrayPrototypeSet(target, source, targetStart);
> ^
>
> TypeError: Cannot perform %TypedArray%.prototype.set on a detached ArrayBuffer
> at Buffer.set (<anonymous>)
> at _copyActual (node:buffer:254:3)
> at Function.concat (node:buffer:562:12)
> at onEnd (.../node_modules/engine.io/build/transports-uws/polling.js:126:32)
> at .../node_modules/engine.io/build/transports-uws/polling.js:143:17
Note: µWebSockets.js does not currently support chunked transfer
encoding.
2022-02-23 07:16:25 +01:00
Damien Arrachequesne
d3ae7ab878
docs: add test suite for checking server compliance
...
Related: https://github.com/socketio/socket.io-protocol/issues/14
2022-02-20 07:34:08 +01:00
dependabot[bot]
4952193c04
chore: bump cached-path-relative from 1.0.2 to 1.1.0 ( #125 )
...
Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative ) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/ashaffer/cached-path-relative/releases )
- [Commits](https://github.com/ashaffer/cached-path-relative/commits )
---
updated-dependencies:
- dependency-name: cached-path-relative
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-17 07:48:15 +01:00
Damien Arrachequesne
aed252c742
chore(release): 4.1.2
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.1.1...4.1.2
2022-02-17 07:37:18 +01:00
dependabot[bot]
89209fa22a
chore: bump cached-path-relative from 1.0.2 to 1.1.0 ( #113 )
...
Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative ) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/ashaffer/cached-path-relative/releases )
- [Commits](https://github.com/ashaffer/cached-path-relative/commits )
---
updated-dependencies:
- dependency-name: cached-path-relative
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-17 07:19:50 +01:00
dependabot[bot]
0a3b556de3
chore: bump path-parse from 1.0.6 to 1.0.7 ( #108 )
...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases )
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7 )
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-17 07:18:40 +01:00
Gabba90
7f6b262ac8
fix: allow objects with a null prototype in binary packets ( #114 )
2022-02-17 07:18:11 +01:00
Jeffrey van Norden
a463d268ed
fix(typings): allow CorsOptionsDelegate as cors options ( #641 )
...
Reference: https://www.npmjs.com/package/cors#configuring-cors-asynchronously
Related: 54a59cd8f0
2022-02-17 06:36:49 +01:00
dependabot[bot]
2b70ceee63
chore: bump ajv from 6.12.2 to 6.12.6 ( #126 )
...
Bumps [ajv](https://github.com/ajv-validator/ajv ) from 6.12.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases )
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.12.2...v6.12.6 )
---
updated-dependencies:
- dependency-name: ajv
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 21:58:23 +01:00
dependabot[bot]
8e8346b706
chore: bump ajv from 6.12.2 to 6.12.6 ( #115 )
...
Bumps [ajv](https://github.com/ajv-validator/ajv ) from 6.12.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases )
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.12.2...v6.12.6 )
---
updated-dependencies:
- dependency-name: ajv
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 21:57:15 +01:00
dependabot[bot]
00c673475a
chore: bump ajv from 6.10.2 to 6.12.6 ( #687 )
...
Bumps [ajv](https://github.com/ajv-validator/ajv ) from 6.10.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases )
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.10.2...v6.12.6 )
---
updated-dependencies:
- dependency-name: ajv
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 06:26:38 +01:00
Szegedi Ádám
2f96438952
chore: bump engine.io version to fix CVE-2022-21676 ( #4262 )
...
Related: https://github.com/socketio/engine.io/security/advisories/GHSA-273r-mgr4-v34f
2022-01-25 22:18:18 +01:00
Chris Swithinbank
02c87a8561
fix(typings): ensure compatibility with TypeScript 3.x ( #4259 )
...
Labeled tuple elements were added in TypeScript 4.0.
Reference: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#labeled-tuple-elements
Related: 44e20ba5bf
2022-01-25 01:25:05 +01:00
Damien Arrachequesne
90fb0a99ac
chore(release): 6.1.2
...
Diff: https://github.com/socketio/engine.io/compare/6.1.1...6.1.2
2022-01-18 18:00:23 +01:00
Damien Arrachequesne
e122e4be7b
refactor: add additional types
...
Merged from https://github.com/socketio/engine.io/pull/630
2022-01-18 17:55:55 +01:00
Damien Arrachequesne
3f1e312a2c
chore: bump package-lock.json file version
...
Note to future self: URL for dependencies from GitHub must use
"git+https" instead of "git+ssh" to make the CI pass, else you will
encounter the following error:
```
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/uNetworking/uWebSockets.js.git
npm ERR!
npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.112.3' to the list of known hosts.
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
```
2022-01-18 17:53:58 +01:00
Damien Arrachequesne
45112a30d1
fix(uws): fix HTTP long-polling with CORS
...
When binding to an uWebSockets.js application, the server could crash
with the following error:
```
TypeError: res.onData is not a function
at Polling.onDataRequest (build/transports-uws/polling.js:133:13)
at Polling.onRequest (build/transports-uws/polling.js:47:18)
at callback (build/userver.js:80:56)
```
Related: https://github.com/socketio/engine.io/issues/637
2022-01-18 17:49:28 +01:00
Damien Arrachequesne
8096c122bb
chore(release): 5.0.3
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.0.2...5.0.3
2022-01-17 10:24:51 +01:00
Damien Arrachequesne
ad5bd7ddf5
refactor: add additional types
...
Merged from https://github.com/socketio/engine.io/pull/630
2022-01-17 10:23:16 +01:00
Damien Arrachequesne
25a4b2bbf5
chore: replace base64-arraybuffer by @socket.io/base64-arraybuffer
...
The "base64-arraybuffer" package has been temporarily forked to [1],
until changes are merged upstream.
[1]: https://github.com/socketio/base64-arraybuffer
Related:
- https://github.com/niklasvh/base64-arraybuffer/issues/32
- https://github.com/socketio/socket.io-client/issues/1520
- https://github.com/socketio/socket.io-website/issues/313
- https://github.com/socketio/socket.io/discussions/4209
2022-01-17 10:23:11 +01:00
dependabot[bot]
56af9c59b9
chore: bump engine.io from 4.0.2 to 4.1.2 ( #685 )
...
Bumps [engine.io](https://github.com/socketio/engine.io ) from 4.0.2 to 4.1.2.
- [Release notes](https://github.com/socketio/engine.io/releases )
- [Changelog](https://github.com/socketio/engine.io/blob/4.1.2/CHANGELOG.md )
- [Commits](https://github.com/socketio/engine.io/compare/4.0.2...4.1.2 )
---
updated-dependencies:
- dependency-name: engine.io
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-15 07:59:15 +01:00
Yosi Attias
49bb7cf665
fix(uws): expose additional uWebSockets.js options ( #634 )
...
You can now pass additional options:
```js
const { App } = require("uWebSockets.js");
const { uServer } = require("engine.io");
const app = new App();
const server = new uServer();
server.attach(app, {
compression: uWS.DEDICATED_COMPRESSOR_128KB, // defaults to none
idleTimeout: 60, // defaults to 120
maxBackpressure: 8 * 1024 // defaults to 1024 * 1024
});
app.listen(3000);
```
Related: https://github.com/socketio/engine.io/issues/633
2022-01-14 08:57:46 +01:00
Damien Arrachequesne
8b4d6a8176
fix(uws): handle invalid websocket upgrades
...
When binding to an uWebSockets.js App, there was an unhandled case that
could crash the server:
```
curl "http://localhost:3000/engine.io/?EIO=4&transport=websocket "
```
would result in:
```
Error: Returning from a request handler without responding or attaching an abort handler is forbidden!
terminate called without an active exception
```
Note: this does not apply to the default server based on ws, because
the error was caught elsewhere in the source code.
Related: https://github.com/socketio/socket.io/issues/4250
2022-01-14 08:18:03 +01:00
dependabot[bot]
a84595a04e
chore(deps): bump engine.io from 4.0.0 to 4.1.2 in /examples/latency ( #636 )
...
Bumps [engine.io](https://github.com/socketio/engine.io ) from 4.0.0 to 4.1.2.
- [Release notes](https://github.com/socketio/engine.io/releases )
- [Changelog](https://github.com/socketio/engine.io/blob/4.1.2/CHANGELOG.md )
- [Commits](https://github.com/socketio/engine.io/compare/4.0.0...4.1.2 )
---
updated-dependencies:
- dependency-name: engine.io
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-14 07:59:43 +01:00
Damien Arrachequesne
f3b761dc56
chore(release): 6.1.1
...
Diff: https://github.com/socketio/engine.io/compare/6.1.0...6.1.1
2022-01-11 16:08:20 +01:00
Damien Arrachequesne
c0e194d449
fix: properly handle invalid data sent by a malicious websocket client
...
**IMPORTANT SECURITY FIX**
A malicious client could send a specially crafted HTTP request,
triggering an uncaught exception and killing the Node.js process:
> RangeError: Invalid WebSocket frame: RSV2 and RSV3 must be clear
> at Receiver.getInfo (/.../node_modules/ws/lib/receiver.js:176:14)
> at Receiver.startLoop (/.../node_modules/ws/lib/receiver.js:136:22)
> at Receiver._write (/.../node_modules/ws/lib/receiver.js:83:10)
> at writeOrBuffer (internal/streams/writable.js:358:12)
This bug was introduced by [1], included in `engine.io@4.0.0`, so
previous releases are not impacted.
[1]: f3c291fa61
Thanks to Marcus Wejderot from Mevisio for the responsible disclosure.
2022-01-11 15:52:15 +01:00
Damien Arrachequesne
37b6d8fff0
chore: update default label for bug reports
2022-01-10 08:55:56 +01:00
Damien Arrachequesne
af54565b2d
docs: remove broken badges
...
Related: https://github.com/socketio/socket.io/issues/4242
2022-01-10 08:03:53 +01:00
Damien Arrachequesne
aa5312a4b6
chore: revert to lockfile v1
...
Updating to v2 fails in the CI on Node.js 12 & 14 with the following
error:
> npm ERR! Error while executing:
> npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/uNetworking/uWebSockets.js.git
> npm ERR!
> npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.113.3' to the list of known hosts.
> npm ERR! git@github.com: Permission denied (publickey).
> npm ERR! fatal: Could not read from remote repository.
> npm ERR!
> npm ERR! Please make sure you have the correct access rights
> npm ERR! and the repository exists.
> npm ERR!
> npm ERR! exited with error code: 128
So we will revert the change for now.
2022-01-06 08:01:00 +01:00
Damien Arrachequesne
c82a4bdf1f
chore(release): 4.4.1
...
Diff: https://github.com/socketio/socket.io/compare/4.4.0...4.4.1
2022-01-06 07:32:03 +01:00
Orkhan Alikhanov
770ee5949f
fix(types): make RemoteSocket.data type safe ( #4234 )
...
Related:
- https://github.com/socketio/socket.io/issues/4229
- fe8730ca0f
2022-01-06 07:14:55 +01:00
Damien Arrachequesne
3bf5d92735
refactor: add note about fetchSockets() for parent namespaces
...
Related: https://github.com/socketio/socket.io/issues/4235
2022-01-05 08:50:40 +01:00
Shayan Yousefi
fc82e44f73
refactor(typings): export Event type ( #4215 )
...
So that it can be used by the end users:
```ts
const myMiddleware = ([eventName, ...args]: Event, next: (err?: Error) => void) => {
console.log(eventName); // inferred as string
next();
}
io.on("connection", (socket) => {
socket.use(myMiddleware);
});
```
2022-01-05 08:08:18 +01:00
Damien Arrachequesne
c840bad43a
test: fix flaky tests
2022-01-05 08:00:55 +01:00
Orkhan Alikhanov
f2b8de7191
fix(typings): pass SocketData type to custom namespaces ( #4233 )
...
The `SocketData` type was only available on the main namespace.
Related: https://github.com/socketio/socket.io/issues/4229
See also: fe8730ca0f
2022-01-04 09:09:42 +01:00
Gray Zhang
51784d0305
chore: add types to exports field to be compatible with nodenext module resolution ( #4228 )
...
See [1] for detail, in `nodenext` module resolution it requires a
`types` field in `exports` with full filename including extension.
[1]: https://github.com/microsoft/TypeScript/issues/46770#issuecomment-966612103
2021-12-28 10:27:08 +01:00
Damien Arrachequesne
c196689545
docs: fix basic crud example
...
Related: https://github.com/socketio/socket.io/issues/4213
2021-12-16 23:00:20 +01:00
Jeff Winder
b04967b52e
refactor: import Node's setTimeout & clearTimeout to prevent ambiguity ( #632 )
2021-12-14 09:09:23 +01:00
Mikhail Dudin
7a70f63499
docs: fix reconnection handling in the chat demo app ( #4189 )
2021-12-01 00:03:43 +01:00
anderslatif
e5897dd7dc
docs: add usage with ES modules ( #4195 )
2021-12-01 00:02:13 +01:00
Damien Arrachequesne
2071a66c5a
docs: simplify nginx cluster example
...
- remove useless Dockerfile
- clean format
- migrate to @socket.io/redis-adapter
2021-11-24 18:15:26 +01:00
Damien Arrachequesne
0f11c4745f
chore(release): 4.4.0
...
Diff: https://github.com/socketio/socket.io/compare/4.3.2...4.4.0
2021-11-18 14:10:19 +01:00
Damien Arrachequesne
b839a3b400
fix: prevent double ack when emitting with a timeout
...
The ack was not properly removed upon timeout, and could be called
twice.
Related: f0ed42f18c
2021-11-18 14:03:07 +01:00
Damien Arrachequesne
f0ed42f18c
feat: add timeout feature
...
Usage:
```js
socket.timeout(5000).emit("my-event", (err) => {
if (err) {
// the client did not acknowledge the event in the given delay
}
});
```
2021-11-16 20:07:53 +01:00
Damien Arrachequesne
b7213e71e4
test: fix flaky test
...
`srv.close()` only closes the underlying HTTP server, but this does not
terminate the existing WebSocket connections.
Reference: https://nodejs.org/api/http.html#serverclosecallback
2021-11-16 15:58:55 +01:00
Damien Arrachequesne
2da82103d2
test: add test for volatile packet with binary
...
See also: 88eee5948a
2021-11-16 15:57:32 +01:00
Damien Arrachequesne
75854a7518
chore(release): 2.3.3
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.3.2...2.3.3
2021-11-16 15:30:32 +01:00
Damien Arrachequesne
88eee5948a
fix: fix broadcasting volatile packets with binary attachments
...
The binary attachments of volatile packets were discarded (only the
header packet was sent) due to a bug introduced in [1].
Note: the `wsPreEncoded` option is removed by this commit, as I wasn't
able to find an elegant (read: non explosive) way to keep it.
[1]: 5579d40c24
Related: https://github.com/socketio/socket.io/issues/3919
2021-11-16 15:24:55 +01:00
dependabot[bot]
83cce96d1a
chore(deps): bump y18n from 4.0.0 to 4.0.3 ( #79 )
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.3.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3 )
---
updated-dependencies:
- dependency-name: y18n
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-16 15:24:26 +01:00
Damien Arrachequesne
1c0fd939a9
docs(changelog): add changelog for version 6.0.3
2021-11-14 08:28:06 +01:00
Damien Arrachequesne
3c40aa91b0
chore(release): 6.1.1
...
Diff: https://github.com/socketio/engine.io-client/compare/6.1.0...6.1.1
2021-11-14 08:03:50 +01:00
Damien Arrachequesne
6e798fbb5b
fix: add package name in nested package.json
...
Related: https://github.com/socketio/socket.io-client/issues/1513
2021-11-14 07:57:25 +01:00
Damien Arrachequesne
c557707fb6
fix: fix vite build for CommonJS users
...
Related: https://github.com/socketio/socket.io-client/issues/1504
2021-11-14 07:57:25 +01:00
Sten Feldman
8de51c3e37
chore: add bundle files as exportable asset ( #682 )
...
This restores the possibility to import the bundle directly, without
getting the following error:
> [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/engine.io.min.js' is not defined by "exports"
2021-11-14 07:56:31 +01:00
Damien Arrachequesne
cb26d5cbb6
chore(release): 5.0.2
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.0.1...5.0.2
2021-11-14 07:26:24 +01:00
Damien Arrachequesne
7e271596c3
fix: add package name in nested package.json
...
Related: https://github.com/socketio/socket.io-client/issues/1513
2021-11-14 07:23:10 +01:00
Damien Arrachequesne
5f22ed0527
fix: fix vite build for CommonJS users
...
Related: https://github.com/socketio/socket.io-client/issues/1504
2021-11-14 07:23:10 +01:00
Luigi Pinca
27936285ea
chore: make postcompile.sh script work on macOS ( #681 )
...
On macOS the script was interpreted as the value of the `-i` option. It
will now use an empty extension for the `-i` option and the `-e` option
to specify the script.
2021-11-13 06:33:06 +01:00
Damien Arrachequesne
02b0f73e2c
fix: only set 'connected' to true after middleware execution
...
The Socket instance is only considered connected when the "connection"
event is emitted, and not during the middleware(s) execution.
```js
io.use((socket, next) => {
console.log(socket.connected); // prints "false"
next();
});
io.on("connection", (socket) => {
console.log(socket.connected); // prints "true"
});
```
Related: https://github.com/socketio/socket.io/issues/4129
2021-11-12 07:31:52 +01:00
Damien Arrachequesne
c0d8c5ab23
feat: add an implementation based on uWebSockets.js
...
Usage:
```js
const { App } = require("uWebSockets.js");
const { Server } = require("socket.io");
const app = new App();
const server = new Server();
server.attachApp(app);
app.listen(3000);
```
The Adapter prototype is updated so we can benefit from the publish
functionality of uWebSockets.js, so this will apply to all adapters
extending the default adapter.
Reference: https://github.com/uNetworking/uWebSockets.js
Related:
- https://github.com/socketio/socket.io/issues/3601
- https://github.com/socketio/engine.io/issues/578
2021-11-12 07:01:55 +01:00
Nikita Kolmogorov
fe8730ca0f
feat: add type information to socket.data ( #4159 )
...
Usage:
```js
interface SocketData {
name: string;
age: number;
}
const io = new Server<ClientToServerEvents, ServerToClientEvents, InterServerEvents, SocketData>();
io.on("connection", (socket) => {
socket.data.name = "john";
socket.data.age = 42;
});
```
2021-11-08 15:21:48 +01:00
Damien Arrachequesne
4c306af945
chore(release): 6.1.0
...
Diff: https://github.com/socketio/engine.io/compare/6.0.0...6.1.0
2021-11-08 08:37:22 +01:00
Damien Arrachequesne
e7b4700d83
chore(release): 6.1.0
...
Diff: https://github.com/socketio/engine.io-client/compare/6.0.2...6.1.0
2021-11-08 08:29:00 +01:00
Damien Arrachequesne
972de60ffb
docs: add changelog for release 6.0.1
...
Merged from the 6.0.x branch.
2021-11-08 08:20:30 +01:00
Damien Arrachequesne
6d9f0c364a
chore: bump mocha to version 9.1.3
...
The uWebSocket.js App has no close method for now, so we can't properly
stop the engine at the end of the tests, hence the "--exit".
2021-11-08 08:18:18 +01:00
Damien Arrachequesne
35b6b505df
test: replace "s" package by string interpolation
2021-11-08 08:17:25 +01:00
dependabot[bot]
ab84c2d2f3
chore: bump ansi-regex from 5.0.0 to 5.0.1 ( #123 )
...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex ) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases )
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1 )
---
updated-dependencies:
- dependency-name: ansi-regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-08 06:41:27 +01:00
Damien Arrachequesne
ed8483da4d
chore(release): 4.3.2
...
Diff: https://github.com/socketio/socket.io/compare/4.3.1...4.3.2
2021-11-08 06:39:20 +01:00
Damien Arrachequesne
ed50fc346b
fix: fix payload encoding for v3 clients
...
The v3 parser (used for compatibility with older clients) was broken
during the migration to TypeScript ([1]).
This was not caught in the test suite because the Node.js client does
not support binary packet in polling mode (packets are base64-encoded).
[1]: c0d6eaa1ba
Backported from 6.0.x branch: 3f42262fd2
2021-11-06 08:03:57 +01:00
Damien Arrachequesne
e7ebf4b7dc
chore: update caniuse-lite
2021-11-05 07:45:47 +01:00
Damien Arrachequesne
c813fff67c
test: skip flaky test
...
This test fails in CI on chrome 95 / Windows 2012.
2021-11-05 07:42:38 +01:00
Damien Arrachequesne
018e1afcc5
fix(typings): allow any value in the query option
...
Related: https://github.com/socketio/engine.io-client/issues/679
2021-11-05 07:26:32 +01:00
Kaan Gökdemir
8f68f77825
fix(typings): allow port to be a number ( #680 )
...
`string` is kept for backward compatibility (and `location.port` is a
string).
Reference: https://developer.mozilla.org/en-US/docs/Web/API/Location/port
Related: https://github.com/socketio/socket.io-client/issues/1444
2021-11-05 07:22:58 +01:00
Damien Arrachequesne
271e2df94d
feat: add an implementation based on uWebSockets.js
...
```js
const { App } = require("uWebSockets.js");
const { uServer } = require("engine.io");
const app = new App();
const server = new uServer();
server.attach(app);
app.listen(3000);
```
Reference: https://github.com/uNetworking/uWebSockets.js
Related: https://github.com/socketio/engine.io/issues/578
2021-11-02 22:46:09 +01:00
Tom Atkinson
37474c7e67
perf: refresh ping timer ( #628 )
...
Reference: https://nodejs.org/docs/latest/api/timers.html#timeoutrefresh
2021-11-01 21:33:15 +01:00
Sebastiaan Marynissen
9d86397243
fix: fix race condition in dynamic namespaces ( #4137 )
...
Using an async operation with `io.use()` could lead to the creation of
several instances of a same namespace, each of them overriding the
previous one.
Example:
```js
io.use(async (nsp, auth, next) => {
await anOperationThatTakesSomeTime();
next();
});
```
Related: https://github.com/socketio/socket.io/pull/4136
2021-10-24 07:46:29 +02:00
Naseem
44e20ba5bf
refactor: add event type for use() ( #4138 )
2021-10-24 07:19:43 +02:00
Damien Arrachequesne
ccc5ec39a8
chore(release): 4.3.1
...
Diff: https://github.com/socketio/socket.io/compare/4.3.0...4.3.1
2021-10-17 00:02:16 +02:00
Josh Field
0ef2a4d02c
fix: fix server attachment ( #4127 )
...
The check excluded an HTTPS server from being properly attached.
Related: https://github.com/socketio/socket.io/issues/4124
2021-10-16 23:58:55 +02:00
Damien Arrachequesne
68dc241444
chore(release): 6.0.2
...
Diff: https://github.com/socketio/engine.io-client/compare/6.0.1...6.0.2
2021-10-16 01:39:53 +02:00
Damien Arrachequesne
faa9f318e7
fix(bundle): fix vite build
...
Some bundlers (like vite) do not support having a "browser" field in a
nested package.json.
Note: the previous commit ([1]) fixed the resolution of the "browser"
field in the dev bundle, but the production bundle still failed.
Related: https://github.com/socketio/socket.io-client/issues/1504
[1]: 49719142f6
2021-10-16 01:36:18 +02:00
Damien Arrachequesne
fa6d4f6d84
chore(release): 5.0.1
...
Diff: https://github.com/socketio/engine.io-parser/compare/5.0.0...5.0.1
2021-10-16 01:23:30 +02:00
Damien Arrachequesne
900346ea34
fix: fix vite build
...
Some bundlers (like vite) do not support having a "browser" field in a
nested package.json.
Related: https://github.com/socketio/socket.io-client/issues/1504
2021-10-16 01:19:51 +02:00
Damien Arrachequesne
95810aa62d
chore(release): 4.3.0
...
Diff: https://github.com/socketio/socket.io/compare/4.2.0...4.3.0
2021-10-14 14:59:13 +02:00
Damien Arrachequesne
9a622949a0
chore(release): 6.0.1
...
Diff: https://github.com/socketio/engine.io-client/compare/6.0.0...6.0.1
2021-10-14 14:01:49 +02:00
Damien Arrachequesne
ea86f413ed
chore(release): 4.1.1
...
DIff: https://github.com/socketio/socket.io-parser/compare/4.1.0...4.1.1
2021-10-14 13:52:49 +02:00
Damien Arrachequesne
00fcb6e540
chore: export package.json file
...
Reference: https://nodejs.org/api/packages.html#packages_package_entry_points
2021-10-14 13:49:06 +02:00
Damien Arrachequesne
49719142f6
fix: fix usage with vite
...
It seems vite has issues with absolute dependencies in the "browser"
field, so we'll provide a quick workaround.
Related:
- https://github.com/socketio/socket.io-client/issues/1494
- https://github.com/socketio/socket.io-client/issues/1495
2021-10-14 13:47:29 +02:00
Damien Arrachequesne
b3bb73aac7
chore: bump @socket.io/component-emitter to version 3.0.0
...
The typed events have been moved from [1] to [2] in order to remove
the intermediary class and reduce the bundle size.
Diff: https://github.com/socketio/emitter/compare/2.0.0...3.0.0
[1]: https://github.com/socketio/socket.io-client
[2]: https://github.com/socketio/emitter/
2021-10-14 13:46:08 +02:00
Damien Arrachequesne
eb708d1936
chore: bump @socket.io/component-emitter to version 3.0.0
...
The typed events have been moved from [1] to [2], in order to remove
the intermediary class and reduce the bundle size.
Diff: https://github.com/socketio/emitter/compare/2.0.0...3.0.0
[1]: https://github.com/socketio/socket.io-client/
[2]: https://github.com/socketio/emitter/
2021-10-14 13:11:55 +02:00
Damien Arrachequesne
cd703fe28e
chore(release): 3.0.0
...
Diff: https://github.com/socketio/emitter/compare/2.0.0...3.0.0
2021-10-14 12:35:03 +02:00
Damien Arrachequesne
84397cb0cd
feat: add support for typed events
...
The StrictEventEmitter class that was defined in the socket.io-client
repository ([1]) is moved here, so we don't need to create an
intermediary class (Socket > StrictEventEmitter > Emitter) to get the
proper types.
As an additional benefit, the final bundle size should be decreased.
BREAKING CHANGE: we now use a named export instead of a default export
```js
// before
import Emitter from "@socket.io/component-emitter"
// after
import { Emitter } from "@socket.io/component-emitter"
```
[1]: a9e5b85580/lib/typed-events.ts
2021-10-14 12:25:39 +02:00
Damien Arrachequesne
60edecb3bd
feat: serve ESM bundle
...
Related:
- 0661564dc2
- https://github.com/socketio/socket.io-client/issues/1198
2021-10-13 18:17:12 +02:00
Damien Arrachequesne
eb5fdbd03e
chore: bump engine.io to version 6.0.0
...
Release notes: https://github.com/socketio/engine.io/releases/tag/6.0.0
Diff: https://github.com/socketio/engine.io/compare/5.2.0...6.0.0
2021-10-12 00:05:10 +02:00
Damien Arrachequesne
5ad3e5cc4b
chore(release): 4.1.0
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.0.4...4.1.0
2021-10-11 22:37:46 +02:00
Damien Arrachequesne
388c616a92
feat: provide an ESM build with and without debug
...
See also: 00d7e7d7ee
2021-10-11 22:35:12 +02:00
Damien Arrachequesne
fe5d97fc3d
chore(release): 6.0.0
...
Diff: https://github.com/socketio/engine.io/compare/5.2.0...6.0.0
2021-10-08 16:12:32 +02:00
Damien Arrachequesne
15244139e7
chore(release): 6.0.0
...
Diff: https://github.com/socketio/engine.io-client/compare/5.2.0...6.0.0
2021-10-08 15:50:55 +02:00
Damien Arrachequesne
401f4b6069
chore: add an ES module wrapper
2021-10-08 15:23:57 +02:00
Damien Arrachequesne
64d5754511
chore: bump ws
...
Release notes: https://github.com/websockets/ws/releases/tag/8.0.0
2021-10-08 15:05:51 +02:00
Damien Arrachequesne
c0d6eaa1ba
chore: migrate to TypeScript
...
Related: https://github.com/socketio/engine.io/issues/510
2021-10-08 14:55:30 +02:00
roh-kan
4974e9077c
docs: update .NET client library link ( #4115 )
2021-10-08 14:18:03 +02:00
Damien Arrachequesne
c6561928be
refactor: remove XDomainRequest support
...
This was used in IE8 (but behind a flag).
BREAKING CHANGE: the enableXDR option is removed
Related: https://github.com/socketio/engine.io-client/issues/674
2021-10-08 13:11:19 +02:00
Damien Arrachequesne
00d7e7d7ee
feat: provide an ESM build without debug
...
Removing the debug library and the debug calls from the final bundle is
unexpectedly quite hard.
Actually, there are several solutions, each with its own pro and cons:
> use webpack-remove-debug (our previous solution)
Pro: works well, even with ESM imports with a little hack
```js
import debugModule from "debug"; // debug()
const debug = debugModule("my-library"); // debug()
debug("hello world");
```
Cons: only for webpack
See also: https://github.com/johngodley/webpack-remove-debug
> NODE_ENV variable
```js
import debugModule from "debug";
let debug = () => {}
if (process.env.NODE_ENV !== "production") {
debug = debugModule("my-library");
}
```
Pro: the `debug()` calls are properly removed when bundling for
production
Cons: some bundlers leave the debug library in the bundle, even if it
is not called (for example, rollup needs an additional
"moduleSideEffects: true")
Reference: https://rollupjs.org/guide/en/#treeshake
> dynamic import
```js
let debug = () => {}
if (process.env.NODE_ENV !== "production") {
import("debug").then(debugModule => {
debug = debugModule.default("my-library");
});
}
```
Pro: the sanest solution, which allows to use debug in development
Cons: will likely break some bundlers due to the dynamic import (for
example, not supported for UMD bundles)
> browser field
```json
{
"browser": {
"debug": "./noop.js"
}
}
```
Pro: the safest solution from a compatibility point of view
Cons: some bundlers leave the noop debug calls, even after minification
> remove debug from the source code
We could also remove the debug calls, but the ability to turn them with
a single env variable on is quite appealing (at least in a Node.js
environment):
```
DEBUG=* node index.js
```
> dual packaging (our selected solution)
We provide two ESM builds, one with debug and one without.
Pros:
- no tricky configuration for bundlers
- debug logs are still available in Node.js
Cons:
- no more debug logs in the browser
We will go with the latest solution for now, until there is a better
alternative.
2021-10-08 13:00:12 +02:00
Damien Arrachequesne
b2c73812e9
refactor: remove JSONP polling
...
JSONP polling was only used in IE7/8, which are not supported anymore.
BREAKING CHANGE: the jsonp and forceJSONP options are removed.
2021-10-08 11:49:15 +02:00
Damien Arrachequesne
27de300de4
chore: migrate to rollup
...
This change allows us to:
- reduce the size of the bundle
- provide an ESM bundle (for usage in <script type="module">)
BREAKING CHANGE: due to how default export works with ES modules, we
have removed the default export of the library, which means the
following code:
```js
require("engine.io-client")(...);
```
will not work anymore. The named export must be used instead:
```js
const { Socket } = require("engine.io-client);
// or import { Socket } from "engine.io-client";
const socket = new Socket(...);
```
Note: the UMD build still exposes a function though:
```html
<script src="/path/to/engine.io.js"></script>
<script>
const socket = eio(...);
</script>
```
Note: webpack is still used with zuul because of the custom builder
(zuul-builder-webpack)
2021-10-08 11:46:11 +02:00
Damien Arrachequesne
221433ed52
chore: bump ws
...
Release notes: https://github.com/websockets/ws/releases/tag/8.0.0
2021-10-08 11:45:53 +02:00
Damien Arrachequesne
7245b803e0
chore: migrate to TypeScript
...
This change introduces an ESM build which will allow tree shaking. A
CJS build is also provided for backward compatibility.
2021-10-04 23:12:09 +02:00
Damien Arrachequesne
965a567ca0
chore(release): 5.0.0
...
Diff: https://github.com/socketio/engine.io-parser/compare/4.0.3...5.0.0
2021-10-04 11:02:35 +02:00
Damien Arrachequesne
59b4bad558
chore(release): 2.0.0
...
Diff: https://github.com/socketio/emitter/compare/1.3.0...2.0.0
2021-10-04 08:12:06 +02:00
Damien Arrachequesne
b19524608b
chore: update package name
2021-10-04 08:06:06 +02:00
Damien Arrachequesne
2fd2d6bb0e
chore: add default export
...
So that we can use `import Emitter from ...` in both CommonJS and ESM
modules.
2021-10-04 08:04:09 +02:00
Damien Arrachequesne
908fbc4f4c
chore: add removeListener typings
...
Related: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55968
2021-10-04 08:01:23 +02:00
Damien Arrachequesne
e4d9fce4d8
chore: migrate to TypeScript
...
This change introduces an ESM build which will allow tree shaking. A
CJS build is also provided for backward compatibility.
2021-10-01 10:39:52 +02:00
douira
033c5d399a
fix(typings): add name field to cookie option ( #4099 )
...
Reference: 18a6eb89fb/lib/server.js (L355)
2021-09-20 09:13:38 +02:00
Damien Arrachequesne
7a74b66872
test: remove hardcoded ports
...
Related: https://github.com/socketio/socket.io/issues/3447
2021-09-09 08:57:11 +02:00
Damien Arrachequesne
dc81fcf461
fix: send volatile packets with binary attachments
...
The binary attachments of volatile packets were discarded (only the
header packet was sent) due to a bug introduced by [1].
Related: https://github.com/socketio/socket.io/issues/3919
[1]: dc381b72c6
2021-09-09 08:55:51 +02:00
mingkaili
18a6eb89fb
docs: remove the extra bracket in README ( #627 )
2021-09-09 07:21:04 +02:00
Damien Arrachequesne
c100b7b61c
chore(release): 4.2.0
...
Diff: https://github.com/socketio/socket.io/compare/4.1.3...4.2.0
2021-08-30 09:21:00 +02:00
Damien Arrachequesne
f03eeca39a
chore: bump dependencies
2021-08-30 08:27:46 +02:00
Damien Arrachequesne
d8cc8aef7e
docs: update the link of the Repl.it badge
...
The link will now point towards a sample project, instead of the root
repository.
Related: https://github.com/socketio/socket.io/issues/3934
2021-08-30 08:03:55 +02:00
Damien Arrachequesne
ccfd8caba6
fix(typings): allow async listener in typed events
...
So that:
```ts
socket.on("my-event", async () => {
// ...
});
```
is valid under the @typescript-eslint/no-misused-promises rule.
Related: https://github.com/socketio/socket.io-client/issues/1486
2021-08-30 08:01:29 +02:00
Tim Düsterhus
24fee27ba3
feat: ignore the query string when serving client JavaScript ( #4024 )
...
Related: https://github.com/socketio/socket.io/issues/4023
2021-08-30 07:59:47 +02:00
dependabot[bot]
ebb36f298d
chore(deps): bump xmlhttprequest-ssl from 1.5.5 to 2.0.0 ( #626 )
...
Bumps [xmlhttprequest-ssl](https://github.com/mjwwit/node-XMLHttpRequest ) from 1.5.5 to 2.0.0.
- [Release notes](https://github.com/mjwwit/node-XMLHttpRequest/releases )
- [Commits](https://github.com/mjwwit/node-XMLHttpRequest/compare/1.5.5...2.0.0 )
---
updated-dependencies:
- dependency-name: xmlhttprequest-ssl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-29 09:08:48 +02:00
Damien Arrachequesne
313ca50ce8
chore(release): 5.2.0
...
Diff: https://github.com/socketio/engine.io/compare/5.1.1...5.2.0
2021-08-29 08:32:20 +02:00
Kamil93
b9dc43c3e1
docs: add documentation about heartbeat event ( #623 )
2021-08-29 08:25:06 +02:00
Damien Arrachequesne
c7e27b0b1d
chore(release): 5.2.0
...
Diff: https://github.com/socketio/engine.io-client/compare/5.1.2...5.2.0
2021-08-29 08:20:47 +02:00
dependabot[bot]
1cf70a30f1
chore: bump path-parse from 1.0.6 to 1.0.7 ( #678 )
...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases )
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7 )
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-29 08:09:31 +02:00
Damien Arrachequesne
78cd3bc7b9
test: remove duplicate test
2021-08-29 08:05:05 +02:00
Damien Arrachequesne
412bcc4298
chore(release): 4.0.3
...
Diff: https://github.com/socketio/engine.io-parser/compare/4.0.2...4.0.3
2021-08-29 07:55:13 +02:00
Damien Arrachequesne
6d7dd76130
fix: respect the offset and length of TypedArray objects
...
The parser now returns the TypedArray object instead of the underlying
array buffer, so its offset and length are now taken in account (which
is the behavior of the classic WebSocket implementation).
Notes:
- this was already the case for the Node.js implementation
- in v3, the TypedArray object was always converted to an array buffer
because a byte was added at the beginning ("message" type)
- we could also have used "data.slice().buffer", but it would have
resulted in the copy of the buffer
Related:
- https://github.com/socketio/engine.io-parser/issues/122
- https://github.com/socketio/engine.io-client/issues/677
2021-08-29 07:54:03 +02:00
dependabot[bot]
6dfab6970c
chore: bump path-parse from 1.0.6 to 1.0.7 ( #120 )
...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases )
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7 )
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-29 07:53:56 +02:00
Damien Arrachequesne
d4ef54cccb
chore(release): 2.3.2
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.3.1...2.3.2
2021-08-28 08:19:55 +02:00
Damien Arrachequesne
12ee96147e
ci: add Node.js 16 in the test matrix
2021-08-28 08:10:50 +02:00
dependabot[bot]
2b4cec08a3
chore(deps): bump glob-parent from 5.1.1 to 5.1.2 ( #72 )
...
Bumps [glob-parent](https://github.com/gulpjs/glob-parent ) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases )
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md )
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2 )
---
updated-dependencies:
- dependency-name: glob-parent
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-28 08:07:27 +02:00
dependabot[bot]
5fe8cacd6a
chore(deps): bump path-parse from 1.0.6 to 1.0.7 ( #73 )
...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases )
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7 )
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-28 08:07:11 +02:00
Shrikant Sharat Kandula
912e13ad30
fix: fix race condition when leaving rooms ( #74 )
...
This should fix the related issue:
```
TypeError: Cannot read property 'size' of undefined
at Adapter._del (/app/node_modules/socket.io-adapter/dist/index.js:67:37)
at Adapter.delAll (/app/node_modules/socket.io-adapter/dist/index.js:83:18)
at Socket.leaveAll (/app/node_modules/socket.io/dist/socket.js:190:22)
at Socket._onclose (/app/node_modules/socket.io/dist/socket.js:334:14)
at Client.onclose (/app/node_modules/socket.io/dist/client.js:245:20)
at Socket.emit (events.js:412:35)
at Socket.onClose (/app/node_modules/engine.io/lib/socket.js:348:12)
at Object.onceWrapper (events.js:519:28)
at WebSocket.emit (events.js:400:28)
at WebSocket.onClose (/app/node_modules/engine.io/lib/transport.js:106:10)
```
A test case was added, which reproduces the issue by adding a listener
to the "leave-room" event. This does not seem to be the case for the
user reporting the issue though, which may indicate that the root cause
is elsewhere.
2021-08-28 07:51:31 +02:00
Michael Vartan
5d1d5bea11
feat: add an option to use native timer functions ( #672 )
...
This allows to control the behavior of mocked timers (@sinonjs/fake-timers),
depending on the value of the "useNativeTimers" option:
- true: use native setTimeout function
- false (default): use classic timers, that may be mocked
The "installTimerFunctions" method will also be used in the
`socket.io-client` package:
```
import { installTimerFunctions } from "engine.io-client/lib/util";
```
Note: we could also have put the method in its own library, but that
sounded a bit overkill
Related: https://github.com/socketio/socket.io-client/pull/1479
2021-07-30 09:11:49 +02:00
Damien Arrachequesne
08db7f62e4
ci: increase the build timeout
...
The CI sometimes fails after the 10 minutes timeout.
2021-07-30 09:13:02 +02:00
Damien Arrachequesne
c1713d1418
chore: revert zuul bump
...
The CI with the latest version of zuul (3.12.x) timeouts without any
logs.
2021-07-30 09:11:49 +02:00
brownman
310f8557a7
docs(examples): add missing module ( #4018 )
...
Fixes the following error:
> test/todo-management/todo.tests.ts:275:3 - error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
Co-authored-by: brownman <brownman@users.noreply.github.com >
2021-07-15 21:48:20 +02:00
dependabot[bot]
75530b4dcd
chore: bump browserslist from 4.12.0 to 4.16.6 ( #106 )
...
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.12.0 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.12.0...4.16.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-13 10:47:42 +02:00
dependabot[bot]
57324f3048
chore: bump elliptic from 6.5.3 to 6.5.4 ( #102 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-13 10:47:33 +02:00
Damien Arrachequesne
2de8b4ef97
refactor: remove forked xmlhttprequest-ssl
...
Our fork of the xmlhttprequest-ssl package, which was created for the
autoUnref feature (see [1]), is not needed anymore as our changes have
been merged upstream (see [2]).
[1]: 65516836b2
[2]: fd05315b41
Related: https://github.com/socketio/engine.io-client/issues/673
2021-07-13 09:10:27 +02:00
Damien Arrachequesne
dbd2a07cda
chore(release): 4.1.3
...
Diff: https://github.com/socketio/socket.io/compare/4.1.2...4.1.3
2021-07-10 12:13:15 +02:00
Damien Arrachequesne
94e27cd072
fix: fix io.except() method
...
Previously, calling `io.except("theroom").emit(...)` did not exclude
the sockets in the given room.
This method was forgotten in [1].
[1]: ac9e8ca6c7
2021-07-10 11:48:46 +02:00
Damien Arrachequesne
a4dffc6527
fix: remove x-sourcemap header
...
This header is useless, as the client bundle already contains a
sourceMappingURL field.
Besides, Firefox prints the following warning:
> <url> is being assigned a //# sourceMappingURL, but already has one
Related: https://github.com/socketio/socket.io/issues/3958
2021-07-04 00:51:41 +02:00
Damien Arrachequesne
7c44893d78
chore: bump dependencies
2021-07-04 00:37:35 +02:00
Daniele TDC
b833f918c8
ci: update to node 16 ( #3990 )
...
See also: https://github.com/nodejs/Release#release-schedule
2021-06-28 09:09:44 +02:00
Daniele TDC
24d8d1f67f
ci: update setup-node step ( #3986 )
2021-06-24 14:53:46 +02:00
Damien Arrachequesne
9c79ba65f5
chore(release): 5.1.2
...
Diff: https://github.com/socketio/engine.io-client/compare/5.1.1...5.1.2
2021-06-24 08:24:07 +02:00
Damien Arrachequesne
589d3ad638
fix: emit ping when receiving a ping from the server
...
The "ping" event was forgotten when reversing the ping-pong mechanism
in [1]. It will now be properly emitted when receiving a ping from the
server.
[1]: 81d7171c6b
Related: https://github.com/socketio/socket.io-client/issues/1475
2021-06-23 00:44:06 +02:00
Damien Arrachequesne
2525f14888
chore: npm audit fix
2021-06-23 00:14:36 +02:00
Xiaoxin Lu
f30a10b7f4
fix(websocket): fix timer blocking writes ( #670 )
...
An immediate setTimeout was used to unblock the WebSocket write.
Unfortunately, this setTimeout can be throttled by browsers when the
tab is backgrounded.
This can lead to missed pong responses to server pings, which
eventually leads to disconnection.
Related: https://github.com/socketio/engine.io-client/issues/649
2021-06-22 23:58:27 +02:00
Damien Arrachequesne
6397c1bdfd
chore(release): 0.1.0
2021-06-22 07:06:15 +02:00
Damien Arrachequesne
ff370cfc46
Initial commit
2021-06-22 07:02:16 +02:00
Damien Arrachequesne
6f2a50b932
docs(examples): update example to webpack 5
2021-06-15 22:35:06 +02:00
Damien Arrachequesne
1f8a6c4ecb
docs: add link to related packages
2021-06-14 08:21:28 +02:00
Damien Arrachequesne
eb01ff5803
chore(release): 0.1.0
2021-06-14 08:02:20 +02:00
Damien Arrachequesne
f2e3d162ab
Initial commit
2021-06-14 07:59:12 +02:00
dependabot[bot]
8b4dcfc04a
chore: bump browserslist from 4.12.0 to 4.16.6 ( #119 )
...
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.12.0 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.12.0...4.16.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 15:39:39 +02:00
dependabot[bot]
6ab8af0e07
chore: bump elliptic from 6.5.3 to 6.5.4 ( #117 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 15:39:27 +02:00
dependabot[bot]
52847fd958
chore: bump browserslist from 4.15.0 to 4.16.6 ( #665 )
...
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.15.0 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.15.0...4.16.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-03 16:41:35 +02:00
dependabot[bot]
3c9c8603fa
chore: bump ws from 7.4.2 to 7.4.6 ( #666 )
...
Bumps [ws](https://github.com/websockets/ws ) from 7.4.2 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/7.4.2...7.4.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-02 23:03:08 +02:00
dependabot[bot]
7e9e544a9a
chore(deps): bump ws from 7.4.2 to 7.4.6 ( #621 )
...
Bumps [ws](https://github.com/websockets/ws ) from 7.4.2 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/7.4.2...7.4.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-30 23:05:15 +02:00
Damien Arrachequesne
0667d826f6
chore(release): 2.3.1
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.3.0...2.3.1
2021-05-20 00:47:01 +02:00
Damien Arrachequesne
a33e42bb7b
fix: restore compatibility with binary parsers
...
Related: 5579d40c24
2021-05-20 00:46:19 +02:00
dependabot[bot]
36d0acfd7e
chore(deps): bump lodash from 4.17.20 to 4.17.21 ( #69 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-20 00:22:52 +02:00
Damien Arrachequesne
1633150b2b
chore(release): 4.1.2
...
Diff: https://github.com/socketio/socket.io/compare/4.1.1...4.1.2
2021-05-17 23:17:31 +02:00
Damien Arrachequesne
0cb6ac95b4
fix(typings): ensure compatibility with TypeScript 3.x
...
Labeled tuple elements were added in TypeScript 4.0.
Reference: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#labeled-tuple-elements
Related: https://github.com/socketio/socket.io/issues/3916
2021-05-17 23:15:22 +02:00
Damien Arrachequesne
a2cf2486c3
fix: ensure compatibility with previous versions of the adapter
...
Using `socket.io@4.1.0` with `socket.io-adapter@2.2.0` would lead to
the following error:
> Uncaught Error: unknown packet type NaN
Because the packet would be encoded twice, resulting in "undefined".
See also:
- 5579d40c24
- dc381b72c6
Related:
- https://github.com/socketio/socket.io/issues/3922
- https://github.com/socketio/socket.io/issues/3927
2021-05-17 23:14:36 +02:00
Damien Arrachequesne
733ad4dc4e
chore(release): 5.1.1
...
Diff: https://github.com/socketio/engine.io/compare/5.1.0...5.1.1
2021-05-17 00:29:34 +02:00
Damien Arrachequesne
43606865e5
fix: properly close the websocket connection upon handshake error
...
This should fix the following error:
> TypeError: Cannot read property 'writeHead' of undefined
This bug was introduced by [1], because the `if (res !== undefined) { ... }`
check was removed.
But `res` is indeed undefined when the client connects with WebSocket
directly, in that case we need to manually write the response content
(in the abortUpgrade method).
Please note that the previous behavior was invalid too, since the
WebSocket connection was left open when an error occurred during the
handshake.
[1]: 7096e98a02
2021-05-17 00:22:39 +02:00
dependabot[bot]
29bd4fe800
chore(deps): bump lodash from 4.17.20 to 4.17.21 ( #619 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 00:21:34 +02:00
Damien Arrachequesne
995f38f4cc
chore(release): 4.1.1
...
Diff: https://github.com/socketio/socket.io/compare/4.1.0...4.1.1
2021-05-12 00:04:52 +02:00
Damien Arrachequesne
891b1870e9
fix(typings): properly type the adapter attribute
...
Related: https://github.com/socketio/socket.io/issues/3796
2021-05-11 23:59:44 +02:00
Damien Arrachequesne
b84ed1e41c
fix(typings): properly type server-side events
...
See also: 93cce05fb3
2021-05-11 23:59:18 +02:00
Damien Arrachequesne
fb6b0efec9
chore(release): 4.1.0
...
Diff: https://github.com/socketio/socket.io/compare/4.0.2...4.1.0
2021-05-11 09:27:52 +02:00
Damien Arrachequesne
8bc9b3bb81
chore(release): 5.1.1
...
Diff: https://github.com/socketio/engine.io-client/compare/5.1.0...5.1.1
2021-05-11 08:34:14 +02:00
Damien Arrachequesne
bddd9928fc
fix: fix JSONP transport on IE9
...
This fixes the following error:
> Unable to get value of the property 'readyState': object is null or undefined
Which was introduced in c46611ce44
2021-05-11 08:22:36 +02:00
Damien Arrachequesne
95d9e4a42f
test: fix randomly failing test
2021-05-11 00:06:03 +02:00
Damien Arrachequesne
499c89250d
feat: notify upon namespace creation
...
A "new_namespace" event will be emitted when a new namespace is created:
```js
io.on("new_namespace", (namespace) => {
// ...
});
```
This could be used for example for registering the same middleware for
each namespace.
See https://github.com/socketio/socket.io/issues/3851
2021-05-11 00:09:18 +02:00
Damien Arrachequesne
93cce05fb3
feat: add support for inter-server communication
...
Syntax:
```js
// server A
io.serverSideEmit("hello", "world");
// server B
io.on("hello", (arg) => {
console.log(arg); // prints "world"
});
```
With acknowledgements:
```js
// server A
io.serverSideEmit("hello", "world", (err, responses) => {
console.log(responses); // prints ["hi"]
});
// server B
io.on("hello", (arg, callback) => {
callback("hi");
});
```
This feature replaces the customHook/customRequest API from the Redis
adapter: https://github.com/socketio/socket.io-redis/issues/370
2021-05-11 00:07:20 +02:00
Damien Arrachequesne
dc381b72c6
perf: add support for the "wsPreEncoded" writing option
...
Packets that are sent to multiple clients will now be pre-encoded for
the WebSocket transport (which means simply prepending "4" - which is
the "message" packet type in Engine.IO).
Note: buffers are not pre-encoded, since they are sent without
modification over the WebSocket connection
See also: 7706b123df
engine.io diff: https://github.com/socketio/engine.io/compare/5.0.0...5.1.0
2021-05-11 00:06:03 +02:00
Damien Arrachequesne
03bda43550
chore(release): 2.3.0
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.2.0...2.3.0
2021-05-10 10:36:22 +02:00
Damien Arrachequesne
c4cbd4ba2d
feat: add a serverSideEmit empty function
...
This function will be overriden in the Redis adapter, for inter-server
communication.
2021-05-10 10:35:42 +02:00
Damien Arrachequesne
5579d40c24
feat: add support for the "wsPreEncoded" writing option
...
A few notes:
- only the first element is pre-encoded, because the other elements are
buffers and will be sent as is over the WebSocket connection
- using `socket.packet()` was unexpectedly working, we will now use
`socket.client.writeToEngine()` (see [1])
See also: 7706b123df
[1]: https://github.com/socketio/socket.io/issues/3775
2021-05-10 10:09:54 +02:00
Damien Arrachequesne
9fff03487c
chore(release): 4.0.2
...
Diff: https://github.com/socketio/socket.io/compare/4.0.1...4.0.2
2021-05-06 14:38:26 +02:00
Damien Arrachequesne
b81ce4c9d0
fix(typings): make "engine" attribute public
2021-05-06 14:36:25 +02:00
Damien Arrachequesne
d65b6ee84c
fix: properly export the Socket class
...
Before this change, `require("socket.io").Socket` would return
"undefined".
Note: having access to the Socket class allows users to modify its
prototype.
Related: https://github.com/socketio/socket.io/issues/3726
2021-05-06 14:36:12 +02:00
Damien Arrachequesne
39c138a1b5
docs: clarify the upgrade mechanism
...
Related: https://github.com/socketio/engine.io-protocol/issues/37
2021-05-06 00:16:42 +02:00
Damien Arrachequesne
df6a54772d
docs(changelog): include changelog for releases 3.5.2 & 4.1.4
2021-05-05 22:45:20 +02:00
Damien Arrachequesne
8c9bd9262f
chore(release): 5.1.0
...
Diff: https://github.com/socketio/engine.io/compare/5.0.0...5.1.0
2021-05-04 10:31:23 +02:00
Damien Arrachequesne
0acbe5fded
chore(release): 5.1.0
...
Diff: https://github.com/socketio/engine.io-client/compare/5.0.1...5.1.0
2021-05-04 09:40:44 +02:00
Damien Arrachequesne
c46611ce44
refactor: remove "self" references
2021-05-04 09:28:21 +02:00
Damien Arrachequesne
dcb85e902d
feat: add the "closeOnBeforeunload" option
...
Since [1], the socket is now closed when receiving the "beforeunload"
event in the browser.
This change was meant to fix a discrepancy between Chrome and Firefox
when the user reloads/closes a browser tab: Firefox would close the
connection (and emit a "disconnect" event, at the Socket.IO level), but
not Chrome (see [2]).
But it also closes the connection when there is another "beforeunload"
handler, for example when the user is prompted "are you sure you want
to leave this page?".
Note: calling "stopImmediatePropagation()" was a possible workaround:
```js
window.addEventListener('beforeunload', (event) => {
event.preventDefault();
event.stopImmediatePropagation();
event.returnValue = 'are you sure you want to leave this page?';
});
```
This commit adds a "closeOnBeforeunload" option, which controls whether
a handler is registered for the "beforeunload" event.
Syntax:
```js
const socket = require('engine.io-client')('ws://localhost', {
closeOnBeforeunload: false // defaults to true
});
```
[1]: ed48b5dc34
[2]: https://github.com/socketio/socket.io/issues/3639
Related:
- https://github.com/socketio/engine.io-client/issues/661
- https://github.com/socketio/engine.io-client/issues/658
- https://github.com/socketio/socket.io-client/issues/1451
Reference: https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event
2021-05-04 08:45:09 +02:00
Damien Arrachequesne
7706b123df
perf: add a "wsPreEncoded" writing option
...
This option will be used when broadcasting a packet to multiple clients,
in order to only encode the packet once.
Usage:
```js
socket.write("test", {
wsPreEncoded: "4test"
});
```
Note: pre-encoding the content with HTTP long-polling is a bit harder,
since the concatenation of the packets is specific to each client.
2021-05-04 08:44:06 +02:00
Branislav Katreniak
ad5306aeae
perf(websocket): fix write back-pressure ( #618 )
...
This change should reduce memory usage when many packets are emitted to
many clients in a burst.
Co-authored-by: Branislav Katreniak <bkatreniak@slido.com >
2021-05-04 08:35:23 +02:00
Damien Arrachequesne
4c0aa73e06
refactor: remove "self" references
2021-04-30 14:38:31 +02:00
Damien Arrachequesne
252754353a
feat: add the "initial_headers" and "headers" events
...
Those events will be emitted before the response headers are written to
the socket:
- "initial_headers": on the first request of the connection
- "headers": on all requests (HTTP long-polling and WebSocket upgrade)
Syntax:
```js
server.on("initial_headers", (headers, req) => {
headers["test"] = "123";
headers["set-cookie"] = "mycookie=456";
});
server.on("headers", (headers, req) => {
headers["test"] = "789";
});
```
Related:
- https://github.com/socketio/engine.io/issues/557
- https://github.com/socketio/socket.io/issues/3630
2021-04-30 14:38:11 +02:00
Damien Arrachequesne
7096e98a02
feat: add a "connection_error" event
...
The "connection_error" event will be emitted when one of the following
errors occurs:
- Transport unknown
- Session ID unknown
- Bad handshake method
- Bad request
- Forbidden
- Unsupported protocol version
Syntax:
```js
server.on("connection_error", (err) => {
console.log(err.req); // the request object
console.log(err.code); // the error code, for example 1
console.log(err.message); // the error message, for example "Session ID unknown"
console.log(err.context); // some additional error context
});
```
Related:
- https://github.com/socketio/socket.io/issues/3819
- https://github.com/socketio/engine.io/issues/576
2021-04-30 13:04:28 +02:00
Damien Arrachequesne
3665aada47
docs(examples): basic CRUD application
...
See also: https://socket.io/get-started/basic-crud-application/
2021-04-23 00:08:18 +02:00
dependabot[bot]
129094f7a5
chore: bump y18n from 4.0.0 to 4.0.1 ( #118 )
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 10:41:25 +02:00
Damien Arrachequesne
1faa7e3aea
chore(release): 4.0.1
...
Diff: https://github.com/socketio/socket.io/compare/4.0.0...4.0.1
2021-04-01 01:25:56 +02:00
Damien Arrachequesne
9eeed5e0c0
chore(release): 5.0.1
...
Diff: https://github.com/socketio/engine.io-client/compare/5.0.0...5.0.1
2021-03-31 23:59:36 +02:00
Damien Arrachequesne
d291a4c9f6
fix: ignore packets when the transport is silently closed
...
In some cases, a "Transport not open" error could be thrown when the
transport was silently closed in the onbeforeunload event (added in
[1]).
To reproduce:
```js
window.addEventListener("unload", () => {
socket.write("...");
});
```
[1]: ed48b5dc34
Related: https://github.com/socketio/socket.io/issues/3838
2021-03-31 23:53:09 +02:00
Maxime Kjaer
a11152f42b
fix(typings): add fallback to untyped event listener ( #3834 )
...
Related: https://github.com/socketio/socket.io/issues/3833
2021-03-31 11:37:37 +02:00
Damien Arrachequesne
fc5dc6b91e
refactor: use ES6 syntax in tests
2021-03-31 11:35:12 +02:00
Maxime Kjaer
259f29720b
docs(examples): remove unnecessary type annotations ( #3855 )
...
Typed events in Socket.IO 4.0 remove the need for writing type
annotations in callbacks of reserved events.
2021-03-24 23:12:22 +01:00
Damien Arrachequesne
b4ae8d2e19
docs(examples): update all examples to Socket.IO v4
2021-03-18 15:07:04 +01:00
Adán Toscano
64be1c9985
docs(examples): fix chat example ( #3787 )
2021-03-18 14:06:13 +01:00
Solomon English
1a72ae4fe2
fix(typings): update return type from emit ( #3843 )
...
```
(channel ? io.to(channel) : io).emit("stuff", message);
```
would no longer compile.
Related: https://github.com/socketio/socket.io/issues/3844
2021-03-18 11:36:34 +01:00
Damien Arrachequesne
5eaeffc8e2
chore(release): 4.0.0
...
Diff: https://github.com/socketio/socket.io/compare/3.1.2...4.0.0
2021-03-10 12:43:53 +01:00
Damien Arrachequesne
1b6d6de4ed
chore: include Engine.IO v5
...
Release notes: https://github.com/socketio/engine.io/releases/tag/5.0.0
2021-03-10 11:14:33 +01:00
Damien Arrachequesne
887ba06536
chore(release): 5.0.0
...
Diff: https://github.com/socketio/engine.io/compare/4.1.1...5.0.0
2021-03-10 10:20:02 +01:00
Damien Arrachequesne
14e81805ab
chore(release): 5.0.0
...
The major bump is due to a breaking change on the server side.
Diff: https://github.com/socketio/engine.io-client/compare/4.1.2...5.0.0
2021-03-10 10:09:12 +01:00
Damien Arrachequesne
b8e06a8674
refactor: use globalObject "self" in webpack configuration
2021-03-10 10:05:36 +01:00
Maxime Kjaer
0107510ba8
feat: add support for typed events ( #3822 )
...
Syntax:
```ts
interface ClientToServerEvents {
"my-event": (a: number, b: string, c: number[]) => void;
}
interface ServerToClientEvents {
hello: (message: string) => void;
}
const io = new Server<ClientToServerEvents, ServerToClientEvents>(httpServer);
io.emit("hello", "world");
io.on("connection", (socket) => {
socket.on("my-event", (a, b, c) => {
// ...
});
socket.emit("hello", "again");
});
```
The events are not typed by default (inferred as any), so this change
is backward compatible.
Note: we could also have reused the method here ([1]) to add types to
the EventEmitter, instead of creating a StrictEventEmitter class.
Related: https://github.com/socketio/socket.io/issues/3742
[1]: https://github.com/binier/tiny-typed-emitter
2021-03-10 00:18:13 +01:00
Damien Arrachequesne
edb734316f
feat: remove dynamic require() with wsEngine
...
This change is necessary to get rid of:
> Critical dependency: the request of a dependency is an expression
when bundling the server with webpack.
BREAKING CHANGE: the syntax of the "wsEngine" option is updated
Before:
```js
const eioServer = require("engine.io")(httpServer, {
wsEngine: "eiows"
});
```
After:
```js
const eioServer = require("engine.io")(httpServer, {
wsEngine: require("eiows").Server
});
```
Related: https://github.com/socketio/engine.io/issues/609
2021-03-09 08:30:05 +01:00
Simone Mazzoni
868d89111d
fix: set default protocol version to 3 ( #616 )
...
socket.io-client-swift libs version <=15.2.0, which uses protocol
version 3, do not explicitly add the EIO query parameter at transport
initialization. This omission leads the server to treat the client as
a client that supports the protocol version 4, previously set as
default, which is not correct for those versions of the client lib.
From socket.io-client-swift version v16.0.0 the EIO query parameter is
explicitly passed to specify the protocol version supported, but since
the allowEIO3 parameter aims to make the server compatible with
previous versions which in most of the cases are already used in
production and not easily upgradable, it makes more sense to default
the EIO version to 3 if not explicitly set by the client since the
newer client versions pass the EIO protocol version in query
parameters.
Related: https://github.com/socketio/socket.io/issues/3794
2021-03-09 08:23:36 +01:00
Damien Arrachequesne
65516836b2
feat: add autoUnref option
...
With autoUnref set to true (default: false), the Engine.IO client will
allow the program to exit if there is no other active timer/socket in
the event system.
Note: the 'xmlhttprequest-ssl' package has been copied in the contrib/
directory, until the change is merged upstream
Related: https://github.com/socketio/engine.io-client/issues/653
2021-03-03 10:12:40 +01:00
Bastian Kersting
063136b91d
docs: fix typo ( #36 )
2021-03-02 12:40:47 +01:00
Damien Arrachequesne
b25495c069
feat: add some utility methods
...
This commit adds the following methods:
- fetchSockets: returns the matching socket instances
Syntax:
```js
// return all Socket instances
const sockets = await io.fetchSockets();
// return all Socket instances of the "admin" namespace in the "room1" room
const sockets = await io.of("/admin").in("room1").fetchSockets();
```
- socketsJoin: makes the matching socket instances join the specified rooms
Syntax:
```js
// make all Socket instances join the "room1" room
io.socketsJoin("room1");
// make all Socket instances of the "admin" namespace in the "room1" room join the "room2" room
io.of("/admin").in("room1").socketsJoin("room2");
```
- socketsLeave: makes the matching socket instances leave the specified rooms
Syntax:
```js
// make all Socket instances leave the "room1" room
io.socketsLeave("room1");
// make all Socket instances of the "admin" namespace in the "room1" room leave the "room2" room
io.of("/admin").in("room1").socketsLeave("room2");
```
- disconnectSockets: makes the matching socket instances disconnect
Syntax:
```js
// make all Socket instances disconnect
io.disconnectSockets();
// make all Socket instances of the "admin" namespace in the "room1" room disconnect
io.of("/admin").in("room1").disconnectSockets();
```
Those methods share the same semantics as broadcasting. They will also
work with multiple Socket.IO servers when using the Redis adapter. In
that case, the fetchSockets() method will return a list of RemoteSocket
instances, which expose a subset of the methods and attributes of the
Socket class (the "request" attribute cannot be mocked, for example).
Related:
- https://github.com/socketio/socket.io/issues/3042
- https://github.com/socketio/socket.io/issues/3418
- https://github.com/socketio/socket.io/issues/3570
- https://github.com/socketio/socket.io-redis/issues/283
2021-03-02 11:17:21 +01:00
Damien Arrachequesne
9bf70c17bd
docs(changelog): include changelog for release 3.5.1
...
Merged from the 3.5.x branch.
2021-03-02 09:45:18 +01:00
Damien Arrachequesne
c361bc691f
feat: listen to the "offline" event
...
The connection will be closed once the "offline" event is emitted by
the browser, in order not to wait for the heartbeat mechanism to detect
the disconnection.
Reference: https://developer.mozilla.org/en-US/docs/Web/API/Window/offline_event
Related: https://github.com/socketio/socket.io-client/issues/1433
2021-03-02 09:24:21 +01:00
Damien Arrachequesne
5a7fa132c4
feat: increase the default value of pingTimeout
...
This value was updated from 60000 to 5000 in [1], included in
`engine.io@3.2.0` (Feb 2018).
The reasoning back then:
Some users experienced long delays between disconnection on the
server-side and on the client-side. The "disconnect" event would take a
long time to fire in the browser, probably due to a timer being
delayed. Hence the change.
That being said, the current value (5s) now causes unexpected
disconnections when a big payload is sent over a slow network, because
it prevents the ping-pong packets from being exchanged between the
client and the server. This can also happen when a synchronous task
blocks the server for more than 5 seconds.
The new value (20s) thus seems like a good balance between quick
disconnection detection and tolerance to various delays.
Note: pingInterval + pingTimeout is still below the threshold of React
Native, which complains if a timer is set with a delay of more than 1
minute.
[1]: 65b1ad1b8a
Related:
- https://github.com/socketio/socket.io/issues/2770
- https://github.com/socketio/socket.io/issues/2769
- https://github.com/socketio/socket.io/issues/3054
- https://github.com/socketio/socket.io/issues/3376
2021-03-02 08:49:58 +01:00
Damien Arrachequesne
085d1de9df
feat: allow to pass an array to io.to(...)
...
In some cases it is necessary to pass an array of rooms instead of a single room.
New syntax:
```
io.to(["room1", "room2"]).except(["room3"]).emit(...);
socket.to(["room1", "room2"]).except(["room3"]).emit(...);
```
Related: https://github.com/socketio/socket.io/issues/3048
2021-03-01 23:20:46 +01:00
Damien Arrachequesne
ac9e8ca6c7
fix: make io.to(...) immutable
...
Previously, broadcasting to a given room (by calling `io.to()`) would
mutate the io instance, which could lead to surprising behaviors, like:
```js
io.to("room1");
io.to("room2").emit(...); // also sent to room1
// or with async/await
io.to("room3").emit("details", await fetchDetails()); // random behavior: maybe in room3, maybe to all clients
```
Calling `io.to()` (or any other broadcast modifier) will now return an
immutable instance.
Related:
- https://github.com/socketio/socket.io/issues/3431
- https://github.com/socketio/socket.io/issues/3444
2021-03-01 23:17:08 +01:00
Sebastiaan Marynissen
7de2e87e88
feat: allow to exclude specific rooms when broadcasting ( #3789 )
...
New syntax:
```
io.except("room1").emit(...);
io.to("room1").except("room2").emit(...);
socket.broadcast.except("room1").emit(...);
socket.to("room1").except("room2").emit(...);
```
Related:
- https://github.com/socketio/socket.io/issues/3629
- https://github.com/socketio/socket.io/issues/3657
2021-03-01 09:30:58 +01:00
Damien Arrachequesne
c679e62236
chore(release): 2.2.0
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.1.0...2.2.0
2021-02-27 02:08:54 +01:00
Damien Arrachequesne
1c9827ec11
feat: add some utility methods
...
This commit adds the following methods:
- fetchSockets: return the matching socket instances
- addSockets: make the matching socket instances join the specified rooms
- delSockets: make the matching socket instances leave the specified rooms
- disconnectSockets: disconnect the matching socket instances
Those methods will then be exposed by the Socket.IO server:
```js
// clear room
io.socketsLeave("room1");
// disconnect all sockets in room
io.in("room2").disconnectSockets();
// fetch socket instances in room
io.in("room3").fetchSockets();
```
This feature will also be extended in the Redis adapter to handle
multiple Socket.IO servers.
2021-02-27 01:37:53 +01:00
Sebastiaan Marynissen
985bb41fa2
feat: allow excluding all sockets in a room ( #66 )
2021-02-26 15:32:45 +01:00
Damien Arrachequesne
225ade062a
chore(release): 3.1.2
...
Diff: https://github.com/socketio/socket.io/compare/3.1.1...3.1.2
2021-02-26 01:18:42 +01:00
Damien Arrachequesne
494c64e44f
fix: ignore packet received after disconnection
...
Related: https://github.com/socketio/socket.io/issues/3095
2021-02-26 00:58:30 +01:00
Damien Arrachequesne
67a61e39e6
chore: loosen the version requirement of @types/node
...
Related: https://github.com/socketio/socket.io/issues/3793
2021-02-26 00:58:01 +01:00
Damien Arrachequesne
6f7c89db76
chore(release): 4.1.2
...
Diff: https://github.com/socketio/engine.io-client/compare/4.1.1...4.1.2
2021-02-25 22:42:51 +01:00
Damien Arrachequesne
ed48b5dc34
fix: silently close the transport in the beforeunload hook
...
Related:
- https://github.com/socketio/socket.io/issues/3639
- https://github.com/socketio/socket.io/issues/3069
2021-02-25 00:32:18 +01:00
Damien Arrachequesne
76338d79fb
refactor: use globalObject "this" in webpack configuration
2021-02-25 00:29:37 +01:00
Damien Arrachequesne
7467216e02
docs(examples): 4th and final part of the "private messaging" example
...
See also: https://socket.io/get-started/private-messaging-part-4/
2021-02-17 00:24:23 +01:00
Damien Arrachequesne
7247b4051f
docs(examples): 3rd part of the "private messaging" example
...
See also: https://socket.io/get-started/private-messaging-part-3/
2021-02-17 00:22:55 +01:00
Damien Arrachequesne
992c9380c3
docs(examples): 2nd part of the "private messaging" example
...
See also: https://socket.io/get-started/private-messaging-part-2/
2021-02-15 01:09:12 +01:00
Damien Arrachequesne
8b404f424b
docs(examples): 1st part of the "private messaging" example
2021-02-10 00:33:39 +01:00
Damien Arrachequesne
12221f296d
chore(release): 3.1.1
...
Diff: https://github.com/socketio/socket.io/compare/3.1.0...3.1.1
2021-02-03 22:57:21 +01:00
Damien Arrachequesne
6f4bd7f8e7
fix: properly parse the CONNECT packet in v2 compatibility mode
...
In Socket.IO v2, the Socket query option was appended to the namespace
in the CONNECT packet:
{
type: 0,
nsp: "/my-namespace?abc=123"
}
Note: the "query" option on the client-side (v2) will be found in the
"auth" attribute on the server-side:
```
// client-side
const socket = io("/nsp1", {
query: {
abc: 123
}
});
socket.query = { abc: 456 };
// server-side
const io = require("socket.io")(httpServer, {
allowEIO3: true // enable compatibility mode
});
io.of("/nsp1").on("connection", (socket) => {
console.log(socket.handshake.auth); // { abc: 456 } (the Socket query)
console.log(socket.handshake.query.abc); // 123 (the Manager query)
});
More information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/#Add-a-clear-distinction-between-the-Manager-query-option-and-the-Socket-query-option
Related: https://github.com/socketio/socket.io/issues/3791
2021-02-03 22:54:07 +01:00
Damien Arrachequesne
4f2e9a716d
fix(typings): update the types of "query", "auth" and "headers"
...
Related: https://github.com/socketio/socket.io/issues/3770
2021-02-03 22:53:38 +01:00
david-fong
9e8f288ca9
fix(typings): add return types and general-case overload signatures ( #3776 )
...
See also: https://stackoverflow.com/questions/52760509/typescript-returntype-of-overloaded-function/52760599#52760599
2021-02-02 11:50:08 +01:00
Damien Arrachequesne
9534355b89
chore(release): 4.1.1
...
Diff: https://github.com/socketio/engine.io/compare/4.1.0...4.1.1
2021-02-02 10:51:04 +01:00
Damien Arrachequesne
ae840fa8ed
chore: point towards the master branch for the CI badge
...
Reference: https://docs.github.com/en/actions/managing-workflow-runs/adding-a-workflow-status-badge#using-the-branch-parameter
2021-02-02 10:49:24 +01:00
Damien Arrachequesne
ff2b8aba48
fix: do not reset the ping timer after upgrade
...
There was two issues with this behavior:
- v3 clients (with allowEIO3: true) were also receiving a "ping" after
a successful upgrade, which is incorrect (in v3, it's the client that
sends the "ping", and the server answers with a "pong")
- the ping timer is not reset after upgrade on the client-side, so an
upgrade which took longer than the `pingTimeout` duration could lead to
a "ping timeout" error on the client-side
I think the latter issue is present since the initial implementation.
Related: https://github.com/socketio/socket.io-client-swift/pull/1309#issuecomment-768475704
2021-02-02 10:48:02 +01:00
Damien Arrachequesne
ee0a35d0e4
chore(release): 4.1.1
...
Diff: https://github.com/socketio/engine.io-client/compare/4.1.0...4.1.1
2021-02-02 09:59:44 +01:00
Damien Arrachequesne
e551fc082a
chore: point towards the master branch for the CI badge
...
Reference: https://docs.github.com/en/actions/managing-workflow-runs/adding-a-workflow-status-badge#using-the-branch-parameter
2021-02-02 09:58:40 +01:00
Damien Arrachequesne
c95fdea833
fix: remove polyfill for process in the bundle
...
A polyfill for Node.js "process" was included in the final bundle.
Reference: https://webpack.js.org/configuration/node/
2021-02-02 09:52:57 +01:00
Damien Arrachequesne
86eb4227b2
docs(examples): add example with traefik
...
Reference: https://doc.traefik.io/traefik/v2.0/
2021-01-31 23:47:23 +01:00
Damien Arrachequesne
cf873fd831
docs(examples): update cluster examples to Socket.IO v3
2021-01-28 11:21:38 +01:00
Damien Arrachequesne
0d10e6131b
docs(examples): update the nginx cluster example
...
Related: https://github.com/socketio/socket.io/discussions/3778
Reference: http://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash
2021-01-28 10:52:26 +01:00
JPSO
10aafbbc16
ci: add Node.js 15 ( #3765 )
2021-01-20 22:34:51 +01:00
Hamdi Bayhan
f34cfca26d
docs: fix broken link ( #3759 )
2021-01-17 22:10:37 +01:00
PrashoonB
d412e876b8
docs: add installation with yarn ( #3757 )
2021-01-15 22:20:04 +01:00
Damien Arrachequesne
f05a4a6f82
chore(release): 3.1.0
...
Diff: https://github.com/socketio/socket.io/compare/3.0.5...3.1.0
2021-01-15 02:21:54 +01:00
Damien Arrachequesne
af1b23ca85
chore(release): 4.0.4
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.0.3...4.0.4
2021-01-15 01:45:17 +01:00
Damien Arrachequesne
2c883f5d4e
chore: bump socket.io-adapter version
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.0.3...2.1.0
Includes:
- add room events ([155fa63 ](155fa6333a ))
- make rooms and sids public ([313c5a9 ](313c5a9fb6 ))
2021-01-15 01:41:37 +01:00
Damien Arrachequesne
1c220ddbf4
fix: allow integers as event names
...
This commit restores the possibility to use integers as event names,
which was possible in Socket.IO v2.
2021-01-15 01:38:03 +01:00
Damien Arrachequesne
c95ab42aef
chore(release): 2.1.0
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.0.3...2.1.0
2021-01-15 01:30:02 +01:00
Damien Arrachequesne
155fa6333a
feat: add room events
...
The adapter will now emit the following events:
- create-room (arg: room)
- delete-room (arg: room)
- join-room (args: room, sid)
- leave-room (args: room, sid)
Related: https://github.com/socketio/socket.io/issues/2897
2021-01-15 01:22:49 +01:00
Jakob Ackermann
161091dd4c
feat: confirm a weak but matching ETag ( #3485 )
...
When handling compression at the proxy server level, the client receives a weak ETag.
Weak ETags are prefixed with `W/`, e.g. `W/"2.2.0"`.
Upon cache validation we should take care of these too.
Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
2021-01-15 01:04:55 +01:00
汪心禾 Wang, Xinhe
d52532b7be
docs: add other client implementations ( #3593 )
...
Reference: https://socket.io/docs/#Other-client-implementations
2021-01-15 00:37:40 +01:00
Sergio Lenza
6b1d7901db
docs(examples): Improve the chat example with more ES6 features ( #3240 )
2021-01-15 00:36:17 +01:00
EloniX-X
b55892ae80
docs: add run on repl.it badge to README ( #3617 )
2021-01-15 00:30:17 +01:00
Pablo Tejada
233650c222
feat(esm): export the Namespace and Socket class ( #3699 )
2021-01-15 00:28:20 +01:00
Damien Arrachequesne
313c5a9fb6
feat: make rooms and sids public
...
Related: https://github.com/socketio/socket.io-adapter/issues/63
2021-01-14 23:56:30 +01:00
Damien Arrachequesne
9925746c8e
feat: add support for Socket.IO v2 clients
...
In order to ease the migration to Socket.IO v3, the Socket.IO server
can now communicate with v2 clients.
```js
const io = require("socket.io")({
allowEIO3: true
});
```
This feature is disabled by default.
2021-01-14 23:38:24 +01:00
Damien Arrachequesne
e5b307c16d
chore(release): 4.1.0
...
Diff: https://github.com/socketio/engine.io/compare/4.0.6...4.1.0
2021-01-14 01:47:14 +01:00
Damien Arrachequesne
663d326d18
feat: add support for v3.x clients
...
In order to ease the migration to Socket.IO v3, the Engine.IO server
can now communicate with v3.x clients.
```js
const eioServer = require("engine.io")(httpServer, {
allowEIO3: true // false by default
});
```
If `allowEIO3` is false, the v3.x clients will now receive an HTTP 400
response ("Unsupported protocol version").
Note: the code of the v3 parser has been imported from [1] and
browser-related dependencies were removed.
[1]: https://github.com/socketio/engine.io-parser/tree/2.2.1
Related:
- https://github.com/socketio/engine.io-protocol/issues/35
- https://github.com/socketio/socket.io-protocol/issues/21
2021-01-14 01:44:52 +01:00
Damien Arrachequesne
63939e6ae2
chore(release): 4.1.0
...
Diff: https://github.com/socketio/engine.io-client/compare/4.0.6...4.1.0
2021-01-14 01:25:48 +01:00
Damien Arrachequesne
8ad533fc6e
chore: ignore generated file
2021-01-14 01:22:46 +01:00
Damien Arrachequesne
d134feeaa6
feat: add missing ws options
...
Reference: https://github.com/websockets/ws/blob/master/doc/ws.md#new-websocketaddress-protocols-options
Related:
- https://github.com/socketio/engine.io-client/issues/574
- https://github.com/socketio/engine.io-client/issues/615
2021-01-14 01:19:25 +01:00
Rohan Chougule
de8dffd252
refactor: strict type check in if expressions ( #3744 )
2021-01-08 14:58:37 +01:00
Damien Arrachequesne
f8a66fd11a
chore(release): 3.0.5
...
Diff: https://github.com/socketio/socket.io/compare/3.0.4...3.0.5
2021-01-05 12:08:15 +01:00
Damien Arrachequesne
752dfe3b1e
chore: bump debug version
2021-01-05 11:53:27 +01:00
Damien Arrachequesne
bf54327421
revert: restore the socket middleware functionality
...
This functionality was removed in [1] (included in 3.0.0), but
catch-all listeners and socket middleware features are complementary
rather than mutually exclusive.
The only difference with the previous implementation is that passing an
error to the `next` handler will create an error on the server-side,
and not on the client-side anymore.
```js
io.on("connection", (socket) => {
socket.use(([ event, ...args ], next) => {
next(new Error("stop"));
});
socket.on("error", (err) => {
// to restore the previous behavior
socket.emit("error", err);
// or close the connection, depending on your use case
socket.disconnect(true);
});
});
```
This creates additional possibilities about custom error handlers, which
may be implemented in the future.
```js
// user-defined error handler
socket.use((err, [ event ], next) => {
// either handle it
socket.disconnect();
// or forward the error to the default error handler
next(err);
});
// default error handler
socket.use((err, _, next) => {
socket.emit("error", err);
});
```
Related: https://github.com/socketio/socket.io/issues/3678
[1]: 5c73733985
2021-01-05 11:51:50 +01:00
Damien Arrachequesne
170b739f14
fix: properly clear timeout on connection failure
...
Related: https://github.com/socketio/socket.io/issues/3720
2021-01-05 11:51:08 +01:00
Damien Arrachequesne
444520d6cd
chore(release): 4.0.3
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.0.2...4.0.3
2021-01-05 11:26:13 +01:00
Damien Arrachequesne
b076dbb722
ci: migrate to GitHub Actions
...
Due to the recent changes to the Travis CI platform (see [1]), we will
now use GitHub Actions to run the tests.
Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
[1]: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
2021-01-05 11:24:49 +01:00
Damien Arrachequesne
7c380d38eb
chore: bump debug version
2021-01-05 11:00:39 +01:00
Damien Arrachequesne
9b621523ef
chore(release): 4.0.6
...
Diff: https://github.com/socketio/engine.io/compare/4.0.5...4.0.6
2021-01-04 23:27:25 +01:00
Damien Arrachequesne
2bd444ae9f
chore(release): 4.0.6
...
Diff: https://github.com/socketio/engine.io-client/compare/4.0.5...4.0.6
2021-01-04 23:18:53 +01:00
Damien Arrachequesne
aeaf072b5e
chore: bump ws and debug versions
2021-01-04 23:07:25 +01:00
Damien Arrachequesne
5a91253f21
chore: bump ws and debug versions
2021-01-04 23:03:49 +01:00
Stijn de Witt
230cd19164
chore: bump dependencies
2021-01-04 10:28:17 +01:00
Damien Arrachequesne
a0a3481c64
test: fix random test failure
2021-01-04 10:27:57 +01:00
Nika Jones
65b657428a
docs: fix the protocol CONNECT character ( #22 )
...
The correct connect character is `0` (zero) and not `O` (the capital
letter 'o').
2021-01-02 23:27:34 +01:00
Dante Calderón
4111013bc7
refactor: validate socket id before loop in addAll ( #64 )
2021-01-02 23:24:15 +01:00
Damien Arrachequesne
788d95ad1c
ci: init GitHub actions
...
Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
2021-01-02 23:23:01 +01:00
Damien Arrachequesne
f773b4889c
chore: update GitHub issue templates
2020-12-30 11:34:30 +01:00
Damien Arrachequesne
acb221688e
chore: update GitHub issue templates
2020-12-30 10:31:10 +01:00
Damien Arrachequesne
fffa0a3fb7
chore: update GitHub issue templates
2020-12-30 10:28:34 +01:00
Marko Žarković
cec27502f5
fix: correctly pass the options when using the Server constructor ( #610 )
...
Fixes https://github.com/socketio/engine.io/issues/580
2020-12-30 10:04:47 +01:00
Damien Arrachequesne
04ea3585e8
docs(changelog): include changelog for release 3.5.0
...
Merged from the 3.5.x branch.
2020-12-30 10:01:18 +01:00
Damien Arrachequesne
ab8c746a73
docs(changelog): include changelog for release 3.5.0
...
Merged from the 3.5.x branch.
2020-12-30 09:55:05 +01:00
Damien Arrachequesne
292d62ea69
docs(examples): update TypeScript example
...
Includes b3de861a92
2020-12-30 09:45:22 +01:00
7006
70b3551503
style: fix Russian spelling ( #650 )
2020-12-30 08:16:01 +01:00
Damien Arrachequesne
178e899f48
docs(examples): add Angular TodoMVC + Socket.IO example
2020-12-17 12:42:23 +01:00
David Fong
d1bfe40dbb
refactor: add more typing info and upgrade prettier ( #3725 )
...
This upgrades prettier to 2.2.0 to gain support for TypeScript's new
type-only-imports feature.
2020-12-11 12:19:20 +01:00
Damien Arrachequesne
81c1f4e819
chore(release): 3.0.4
...
Diff: https://github.com/socketio/socket.io/compare/3.0.3...3.0.4
2020-12-07 12:01:24 +01:00
Damien Arrachequesne
1fba399b17
ci: migrate to GitHub Actions
...
Due to the recent changes to the Travis CI platform (see [1]), we will
now use GitHub Actions to run the tests.
Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
[1]: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
2020-12-07 11:37:03 +01:00
Damien Arrachequesne
e7115b88bb
chore(release): 4.0.5
...
Diff: https://github.com/socketio/engine.io/compare/4.0.4...4.0.5
2020-12-07 11:26:35 +01:00
Damien Arrachequesne
afd25b4902
chore(release): 4.0.5
...
Diff: https://github.com/socketio/engine.io-client/compare/4.0.4...4.0.5
2020-12-07 11:08:13 +01:00
Damien Arrachequesne
5c9726ce68
docs: fix withCredentials default value
2020-12-07 10:59:43 +01:00
Damien Arrachequesne
587ccf3380
refactor: remove the policyPort option
...
This option was used by the flash-websocket transport.
2020-12-07 10:59:43 +01:00
Damien Arrachequesne
f5efa1e02a
refactor: use ES6 syntax for the tests
2020-12-07 10:57:28 +01:00
Damien Arrachequesne
312bd356c7
ci: migrate to GitHub Actions
...
Due to the recent changes to the Travis CI platform (see [1]), we will
now use GitHub Actions to run the tests.
Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
[1]: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
2020-12-07 10:52:08 +01:00
Damien Arrachequesne
9146a577bc
chore: bump dev dependencies
2020-12-07 10:35:49 +01:00
Damien Arrachequesne
88799daa22
chore(release): 4.0.2
...
Diff: https://github.com/socketio/engine.io-parser/compare/4.0.1...4.0.2
2020-12-07 10:13:22 +01:00
Damien Arrachequesne
2ccdeb2779
fix: add base64-arraybuffer as prod dependency
...
The dependency was previously only listed as dev dependency, so that it
was not included when installing the server (the "engine.io" package,
which does not require it) and was explicitly included by the client
(the "engine.io-client" package, which needs it for the browser build).
But it failed with yarn v2, due to its stricter package boundaries:
> ERROR in ../../../.yarn/cache/engine.io-parser-npm-4.0.1-6bdb879e8a-3b71ef8b5a.zip/node_modules/engine.io-parser/lib/decodePacket.browser.js 7:18-47
> Module not found: Error: engine.io-parser tried to access base64-arraybuffer, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
> Required package: base64-arraybuffer (via "base64-arraybuffer")
> Required by: engine.io-parser@npm:4.0.1 (via xxx/.yarn/cache/engine.io-parser-npm-4.0.1-6bdb879e8a-3b71ef8b5a.zip/node_modules/engine.io-parser/lib/)
Related:
- https://dev.to/arcanis/introducing-yarn-2-4eh1#strict-package-boundaries
- https://github.com/socketio/engine.io-parser/issues/116
2020-12-07 09:53:28 +01:00
Damien Arrachequesne
b26993e51b
ci: update configuration for GitHub Actions
...
The specific cron hour is meant to prevent concurrent usage of the
Sauce Labs account.
2020-12-07 09:50:41 +01:00
Damien Arrachequesne
20f7fe0363
ci: migrate to GitHub Actions
...
Due to the recent changes to the Travis CI platform (see [1]), we will
now use GitHub Actions to run the tests.
Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
[1]: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
2020-12-05 01:11:41 +01:00
Camilo Rodríguez
c22681542c
refactor: avoid redeclaring const in xhr polling transport ( #645 )
2020-12-03 16:26:41 +01:00
Damien Arrachequesne
683fc1dd8e
docs: update CI badge
...
[skip ci]
2020-12-03 16:17:47 +01:00
Damien Arrachequesne
f5bdf6c40d
ci: migrate to GitHub Actions
...
Due to the recent changes to the Travis CI platform (see [1]), we will
now use GitHub Actions to run the tests.
Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
[1]: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
2020-12-03 16:05:05 +01:00
Stijn de Witt
4e6d40493d
chore: make tests work on Windows ( #3708 )
2020-11-28 01:55:19 +01:00
Pablo Tejada
28c7cc0856
style(issue-template): fix typo ( #3700 )
...
[skip ci]
2020-11-25 11:09:17 +01:00
Damien Arrachequesne
f2098b031d
chore(release): 4.0.2
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.0.1...4.0.2
2020-11-25 11:00:16 +01:00
Damien Arrachequesne
66973a340c
chore: cleanup dist folder before compilation
2020-11-25 10:59:02 +01:00
Pascal Sthamer
4efa005846
fix: move @types/component-emitter to dependencies ( #99 )
...
Otherwise consumers of socket.io-parser (and socket.io) need to have it
listed in their devDependencies.
2020-11-25 10:51:40 +01:00
Damien Arrachequesne
06a2bd313a
chore(release): 3.0.3
...
Diff: https://github.com/socketio/socket.io/compare/3.0.2...3.0.3
2020-11-19 01:31:31 +01:00
Damien Arrachequesne
85ebd356e9
chore: cleanup dist folder before compilation
2020-11-19 01:28:27 +01:00
Damien Arrachequesne
9b6f9711da
chore(release): 3.0.2
...
Diff: https://github.com/socketio/socket.io/compare/3.0.1...3.0.2
2020-11-18 00:53:51 +01:00
Damien Arrachequesne
43705d7a91
fix: merge Engine.IO options
...
So that the following example:
```js
const io = require('socket.io')({
pingTimeout: 10000
});
io.listen(3000);
```
behaves the same as:
```js
const io = require('socket.io')(3000, {
pingTimeout: 10000
});
```
Before this change, the options in the first example were not forwarded
to the Engine.IO constructor, which is not really intuitive.
The previous syntax (which is still valid):
```js
const io = require('socket.io')();
io.listen(3000, {
pingTimeout: 10000
});
```
2020-11-17 23:33:18 +01:00
Damien Arrachequesne
c2981c6040
chore(release): 4.0.4
...
Diff: https://github.com/socketio/engine.io/compare/4.0.3...4.0.4
2020-11-17 22:51:56 +01:00
Damien Arrachequesne
118cc686a1
chore: add 3rd party types in the list of dependencies
...
Those types are mandatory for TypeScript users.
Related:
- https://github.com/socketio/socket.io/issues/3690
- https://github.com/microsoft/types-publisher/issues/81#issuecomment-234051345
2020-11-17 11:55:41 +01:00
Damien Arrachequesne
091a619405
chore(release): 4.0.4
...
Diff: https://github.com/socketio/engine.io-client/compare/4.0.3...4.0.4
2020-11-17 11:37:29 +01:00
Damien Arrachequesne
1c8cba8818
fix: check the type of the initial packet
...
Before this fix, the client could mark the polling transport as open
even though the handshake packet was not received properly (for
example, after a parsing error).
This could lead to writes (POST requests) without "sid" query param,
which failed with:
```
{"code":2,"message":"Bad handshake method"}
```
Related:
- https://github.com/socketio/engine.io-client/issues/636
- https://github.com/socketio/socket.io-client/issues/1390
2020-11-17 11:19:07 +01:00
Damien Arrachequesne
4873a237f1
fix: restore the cherry-picking of the WebSocket options
...
The previous commit ([1]) makes the Engine.IO tests with Node.js SSL
options fail.
[1]: 177b95fe46
2020-11-17 11:15:53 +01:00
Damien Arrachequesne
67ca12c533
chore(release): 4.0.3
...
Diff: https://github.com/socketio/engine.io/compare/4.0.2...4.0.3
2020-11-17 10:06:52 +01:00
Damien Arrachequesne
c596e54343
docs(examples): update React Native example
...
This includes `engine.io-client@4.0.3`, which fixes two issues with
React Native.
See also:
- 177b95fe46
- ccb99e3718
[skip ci]
2020-11-17 09:44:05 +01:00
Damien Arrachequesne
8228a43335
chore(release): 4.0.3
...
Diff: https://github.com/socketio/engine.io-client/compare/4.0.2...4.0.3
2020-11-17 09:25:41 +01:00
Damien Arrachequesne
89cb771cf0
refactor: remove binary handling for the polling transport (bis)
...
The `supportsBinary` attribute and the `forceBase64` option are kept
untouched, though they are not used by the polling transport, which
now always converts the payloads to base64.
Related: https://github.com/socketio/socket.io-client/issues/1391
2020-11-17 09:19:28 +01:00
Damien Arrachequesne
177b95fe46
fix(react-native): exclude the localAddress option
...
React Native only supports the "headers" option in the WebSocket constructor.
Related: https://github.com/socketio/socket.io-client/issues/1397
2020-11-16 23:17:21 +01:00
Damien Arrachequesne
ccb99e3718
fix(react-native): add a default value for the withCredentials option
...
The undefined value breaks React Native on Android with a rather cryptic error message:
```
Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue() on a null object reference
```
This bug was introduced by [1].
[1]: 5f47a50ee5
Related: https://github.com/socketio/socket.io-client/issues/1403
2020-11-16 23:17:21 +01:00
Damien Arrachequesne
567231e27a
docs: minor fix
...
Related: https://github.com/socketio/socket.io-client-swift/pull/1309#issuecomment-723518797
2020-11-09 11:31:38 +01:00
Damien Arrachequesne
f7e0009120
docs(examples): update TypeScript example
...
In order to test 50671d984a
[skip ci]
2020-11-09 10:47:50 +01:00
Damien Arrachequesne
e69d0ad602
chore: bump socket.io-client version
2020-11-09 10:32:10 +01:00
Damien Arrachequesne
0317a077be
chore(release): 3.0.1
...
Diff: https://github.com/socketio/socket.io/compare/3.0.0...3.0.1
2020-11-09 10:27:58 +01:00
Damien Arrachequesne
d00c0c0d9d
docs(examples): update examples to Socket.IO v3
...
Other examples need some additional work (Redis adapter migration, ...).
2020-11-09 10:19:40 +01:00
Damien Arrachequesne
82987d5efb
chore: bump engine.io version
2020-11-09 10:12:02 +01:00
Damien Arrachequesne
9ddccf398e
chore: bump engine.io-client
2020-11-09 10:11:20 +01:00
Damien Arrachequesne
b6df250c5c
chore(release): 4.0.2
...
Diff: https://github.com/socketio/engine.io-client/compare/4.0.1...4.0.2
2020-11-09 10:03:19 +01:00
Damien Arrachequesne
16fd658274
chore(release): 4.0.2
...
Diff: https://github.com/socketio/engine.io/compare/4.0.1...4.0.2
2020-11-09 10:03:04 +01:00
Avi Vahl
f62f180eda
fix: export ServerOptions and Namespace types ( #3684 )
...
@types/socket.io used to export these.
2020-11-09 08:58:14 +01:00
Damien Arrachequesne
ec3f677e92
refactor: remove binary handling for the polling transport
...
Since Engine.IO v4, the binary payloads are always encoded as base64
with the polling transport.
See https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4
Possibly related: https://github.com/socketio/socket.io-client/issues/1391
2020-11-08 02:12:11 +01:00
Andrew Stoker
17b8c2f199
fix: add extension in the package.json main entry ( #608 )
...
The `main` entry for the `package.json` file is for defining the entry
point. The entry is currently missing the required `.js` extension,
this PR brings it back.
2020-11-08 02:00:54 +01:00
Damien Arrachequesne
50671d984a
fix(typings): update the signature of the emit method
...
The previous signature was not compatible with EventEmitter.emit(). The typescript compilation threw:
```
node_modules/socket.io/dist/namespace.d.ts(89,5): error TS2416: Property 'emit' in type 'Namespace' is not assignable to the same property in base type 'EventEmitter'.
Type '(ev: string, ...args: any[]) => Namespace' is not assignable to type '(event: string | symbol, ...args: any[]) => boolean'.
Type 'Namespace' is not assignable to type 'boolean'.
node_modules/socket.io/dist/socket.d.ts(84,5): error TS2416: Property 'emit' in type 'Socket' is not assignable to the same property in base type 'EventEmitter'.
Type '(ev: string, ...args: any[]) => this' is not assignable to type '(event: string | symbol, ...args: any[]) => boolean'.
Type 'this' is not assignable to type 'boolean'.
Type 'Socket' is not assignable to type 'boolean'.
```
Note: the emit calls cannot be chained anymore:
```js
socket.emit("hello").emit("world"); // will not work anymore
```
2020-11-08 00:07:56 +01:00
Damien Arrachequesne
8a69f15437
chore: restore package-lock.json file
2020-11-05 22:25:35 +01:00
Damien Arrachequesne
1af3267e3f
chore(release): 3.0.0
...
Diff: https://github.com/socketio/socket.io/compare/2.3.0...3.0.0
2020-11-05 22:07:47 +01:00
Damien Arrachequesne
e73271e652
chore(release): 2.0.3
...
Diff: https://github.com/socketio/socket.io-adapter/compare/1.1.2...2.0.3
2020-11-05 16:19:45 +01:00
Damien Arrachequesne
c04443375f
docs: add compatibility table
2020-11-05 16:16:36 +01:00
Damien Arrachequesne
e339323654
chore(release): 4.0.1
...
Diff: https://github.com/socketio/socket.io-parser/compare/3.4.1...4.0.1
2020-11-05 16:07:35 +01:00
Damien Arrachequesne
b80de070cb
docs: describe the 5th revision of the protocol
...
This revision will be included in Socket.IO v3.
2020-11-05 11:36:59 +01:00
Damien Arrachequesne
02951c4391
chore(release): 3.0.0-rc4
...
Diff: https://github.com/socketio/socket.io/compare/3.0.0-rc3...3.0.0-rc4
2020-10-30 23:02:43 +01:00
Damien Arrachequesne
54bf4a44e9
feat: emit an Error object upon middleware error
...
This commit restores the ability to send additional data in the
middleware functions, which was removed during the rewrite to
Typescript ([1]).
The only difference with the previous implementation is that the client
will now emit a "connect_error" (previously, "error") event with an
actual Error object, with both the message and an optional "data"
attribute.
```js
// server-side
io.use((socket, next) => {
const err = new Error("not authorized");
err.data = { content: "Please retry later" };
next(err);
});
// client-side
socket.on("connect_error", err => {
console.log(err.message); // not authorized
console.log(err.data.content); // Please retry later
});
```
[1]: a5581a9789
2020-10-30 22:52:08 +01:00
Damien Arrachequesne
aa7574f884
feat: serve msgpack bundle
...
See 71d60480af
2020-10-27 23:17:12 +01:00
Damien Arrachequesne
64056d6616
docs(examples): update TypeScript example
2020-10-27 22:18:07 +01:00
Damien Arrachequesne
cacad7029a
chore(release): 3.0.0-rc3
...
Diff: https://github.com/socketio/socket.io/compare/3.0.0-rc2...3.0.0-rc3
2020-10-27 00:44:30 +01:00
Damien Arrachequesne
d16c035d25
refactor: rename ERROR to CONNECT_ERROR
...
The meaning is not modified: this packet type is still used by the
server when the connection to a namespace is refused.
2020-10-26 00:29:11 +01:00
Damien Arrachequesne
412769fd18
chore(release): 4.0.1-rc3
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.0.1-rc2...4.0.1-rc3
2020-10-26 00:16:09 +01:00
Damien Arrachequesne
5c73733985
feat: add support for catch-all listeners
...
Inspired from EventEmitter2 [1]
```js
io.on("connect", socket => {
socket.onAny((event, ...args) => {});
socket.prependAny((event, ...args) => {});
socket.offAny(); // remove all listeners
socket.offAny(listener);
const listeners = socket.listenersAny();
});
```
Breaking change: the socket.use() method is removed
This method was introduced in [2] for the same feature (having a
catch-all listener), but there were two issues:
- the API is not very user-friendly, since the user has to know the structure of the packet argument
- it uses an ERROR packet, which is reserved for Namespace authentication issues (see [3])
[1]: https://github.com/EventEmitter2/EventEmitter2
[2]: https://github.com/socketio/socket.io/issues/434
[3]: https://github.com/socketio/socket.io-protocol
2020-10-25 23:44:01 +01:00
Damien Arrachequesne
db1d27432d
refactor: rename ERROR to CONNECT_ERROR
...
The meaning is not modified: this packet type is still used by the
server when the connection to a namespace is refused. But I feel the
name makes more sense:
```js
socket.on("connect", () => {});
socket.on("connect_error", () => {});
// instead of
socket.on("error", () => {});
```
2020-10-25 22:57:26 +01:00
Damien Arrachequesne
129c6417bd
feat: make Socket#join() and Socket#leave() synchronous
...
Depending on the adapter, Socket#join() may return:
- nothing (in-memory and Redis adapters)
- a promise (custom adapters)
Breaking change: Socket#join() and Socket#leave() do not accept a
callback argument anymore.
Before:
```js
socket.join("room1", () => {
io.to("room1").emit("hello");
});
```
After:
```
socket.join("room1");
io.to("room1").emit("hello");
// or await socket.join("room1"); for custom adapters
```
Note: the need for an asynchronous method came from the Redis adapter,
which did override the Adapter#add() method in earlier versions, but
this is not the case anymore.
Reference:
- https://github.com/socketio/socket.io/blob/2.3.0/lib/socket.js#L236-L258
- https://github.com/socketio/socket.io-adapter/blob/1.1.2/index.js#L56-L65
- 05f926e13e
Related: https://github.com/socketio/socket.io/issues/3662
2020-10-22 01:50:13 +02:00
Damien Arrachequesne
17649168d3
chore: bump engine.io
2020-10-22 00:38:13 +02:00
Damien Arrachequesne
3284208a6d
chore: bump engine.io-client
2020-10-22 00:36:45 +02:00
Damien Arrachequesne
276597f92d
chore(release): 4.0.1
...
Diff: https://github.com/socketio/engine.io-client/compare/4.0.0...4.0.1
2020-10-22 00:31:35 +02:00
Damien Arrachequesne
58943c3b30
chore(release): 4.0.1
...
Diff: https://github.com/socketio/engine.io/compare/4.0.0...4.0.1
2020-10-22 00:30:51 +02:00
Damien Arrachequesne
c099338e04
refactor: remove binary handling for the polling transport
...
Since Engine.IO v4, the binary payloads are always encoded as base64
with the polling transport.
See https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4
2020-10-22 00:12:05 +02:00
Damien Arrachequesne
fe093bae1a
fix: do not overwrite CORS headers upon error
...
The Access-Control-Allow-xxx headers added by the cors middleware were
overwritten when sending an error response.
Those lines should have been removed in [1].
[1]: 61b949259e
Related: https://github.com/socketio/engine.io/issues/605
2020-10-22 00:11:06 +02:00
dependabot[bot]
a54e417bb7
chore: bump elliptic from 6.5.2 to 6.5.3 ( #641 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-22 00:01:34 +02:00
Damien Arrachequesne
6d3d83687c
chore: bump parseuri version ( #642 )
...
parseuri now lists better-assert as devDependency.
Source: https://github.com/galkn/parseuri
2020-10-21 23:36:42 +02:00
Aleksey Druzhinin
e3d272f542
docs: fix small typo ( #98 )
2020-10-21 23:28:36 +02:00
Damien Arrachequesne
d5ceef94ed
chore(release): 2.0.3-rc2
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.0.3-rc1...2.0.3-rc2
2020-10-20 14:27:38 +02:00
Damien Arrachequesne
f7c6eca48c
docs: add compatibility table
2020-10-20 14:22:57 +02:00
Damien Arrachequesne
2e023bf2b6
feat: add init() and close() methods
...
These extension points may be used by another adapter, in order to open
or close a connection to a database for example.
In Socket.IO v2, the join() method did accept a callback:
```js
socket.join("room1", () => {
io.to("room1").emit("hello");
});
```
Depending on the adapter, it may now return a promise:
```js
await socket.join("room1");
io.to("room1").emit("hello");
```
Related: https://github.com/socketio/socket.io/issues/3662
2020-10-20 14:18:57 +02:00
Damien Arrachequesne
0d74f290cd
refactor(typings): export Socket class
...
In order to be able to cast it on the argument of the "connect" event:
```js
import { Socket } from "socket.io";
io.on("connect", (socket: Socket) => {
// ...
});
```
2020-10-17 03:36:15 +02:00
Damien Arrachequesne
7603da71a5
feat: remove prod dependency to socket.io-client
...
The client bundles are included in the repository in order to remove
socket.io-client from the list of production dependencies and thus to
reduce the total number of dependencies when installing the server.
This means the release of the client and the server must now be in sync
(which is almost always the case actually).
The minified build is now served:
- /<path>/socket.io.js
- /<path>/socket.io.js.map
- /<path>/socket.io.min.js
- /<path>/socket.io.min.js.map
The content will now be compressed as well.
2020-10-17 02:11:15 +02:00
Damien Arrachequesne
a81b9f31cf
docs(examples): add example with TypeScript
...
There are two issues with the typings:
- on the client-side, the Emitter class is not properly imported (hence the @ts-ignore)
- on the server-side, the Socket class is not exported (in order to cast it in the "connect" event)
2020-10-15 13:38:46 +02:00
Damien Arrachequesne
20ea6bd277
docs(examples): add example with ES modules
2020-10-15 13:26:55 +02:00
Damien Arrachequesne
0ce5b4ca68
chore(release): 3.0.0-rc2
...
Diff: https://github.com/socketio/socket.io/compare/3.0.0-rc1...3.0.0-rc2
2020-10-15 13:02:59 +02:00
Damien Arrachequesne
8a5db7fa36
refactor: remove duplicate _sockets map
...
Both the "connected" and the "_sockets" maps were used to track the
Socket instances in the namespace.
Let's merge them into "sockets". It's a breaking change, but:
- the "sockets" object did already exist in Socket.IO v2 (and appears in some examples/tutorials)
- "sockets" makes more sense than "connected" in my opinion
- there was already a breaking change regarding the "connected" property (from object to Map)
Breaking change: the "connected" map is renamed to "sockets"
2020-10-15 12:45:42 +02:00
Damien Arrachequesne
5f417d256b
chore(release): 2.0.3-rc1
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.0.2...2.0.3-rc1
2020-10-15 12:18:09 +02:00
Damien Arrachequesne
0a9762cac2
refactor: use Namespace#sockets to broadcast
2020-10-15 12:15:32 +02:00
Damien Arrachequesne
2a05042e2c
refactor: add additional typings
2020-10-15 12:04:42 +02:00
Damien Arrachequesne
91cd255ba7
fix: close clients with no namespace
...
After a given timeout, a client that did not join any namespace will be
closed in order to prevent malicious clients from using the server
resources.
The timeout defaults to 45 seconds, in order not to interfere with the
Engine.IO heartbeat mechanism (30 seconds).
2020-10-15 11:54:06 +02:00
Damien Arrachequesne
58b66f8089
refactor: hide internal methods and properties
...
There is no concept of package-private methods in TypeScript, so we'll
just prefix them with "_" and mark them as private in the JSDoc.
2020-10-15 11:54:06 +02:00
Damien Arrachequesne
669592d120
feat: move binary detection back to the parser
...
See 285e7cd0d8
Breaking change: the Socket#binary() method is removed, as this use
case is now covered by the ability to provide your own parser.
2020-10-15 10:45:56 +02:00
Damien Arrachequesne
64b6648236
chore(release): 4.0.1-rc2
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.0.1-rc1...4.0.1-rc2
2020-10-15 10:24:47 +02:00
Damien Arrachequesne
58b3d09f1c
chore: protocol version 5
...
There are two differences with the 4th version:
- a CONNECT packet can now contain a payload (for authentication purposes)
- the underlying Engine.IO protocol has been updated
Reference: https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4
2020-10-15 01:51:51 +02:00
Damien Arrachequesne
285e7cd0d8
feat: move binary detection back to the parser
...
The binary detection was moved from the parser to the client/server in
[1], in order to allow the user to skip the binary detection for huge
JSON payloads.
```js
socket.binary(false).emit(...);
```
The binary detection is needed in the default parser, because the
payload is encoded with JSON.stringify(), which does not support binary
content (ArrayBuffer, Blob, ...).
But other parsers (like [2] or [3]) do not need this check, so we'll
move the binary detection back here and remove the socket.binary()
method, as this use case is now covered by the ability to provide your
own parser.
Note: the hasBinary method was copied from [4].
[1]: f44256c523
[2]: https://github.com/darrachequesne/socket.io-msgpack-parser
[3]: https://github.com/darrachequesne/socket.io-json-parser
[4]: https://github.com/darrachequesne/has-binary
2020-10-15 01:46:47 +02:00
Damien Arrachequesne
2d2a31e5c0
chore: publish the wrapper.mjs file
2020-10-14 01:53:37 +02:00
Damien Arrachequesne
ebb0575fa8
chore(release): 3.0.0-rc1
...
Diff: https://github.com/socketio/socket.io/compare/2.3.0...3.0.0-rc1
2020-10-13 23:36:21 +02:00
Damien Arrachequesne
c0d171f728
test: use the reconnect event of the Manager
...
Following 132f8ec918
2020-10-13 23:02:09 +02:00
Damien Arrachequesne
9c7a48d866
test: use the complete export name
...
Following fa7d41f55d
Ref: https://nodejs.org/dist/latest-v14.x/docs/api/packages.html#packages_subpath_exports
2020-10-13 23:02:09 +02:00
Damien Arrachequesne
4bd5b2339a
feat: throw upon reserved event names
...
These events cannot be used by the end users, because they are part of
the Socket.IO public API, so using them will now throw an error
explicitly.
2020-10-13 23:02:09 +02:00
Damien Arrachequesne
a8c0600609
feat: remove the 'origins' option
...
The underlying Engine.IO server now supports a 'cors' option, which
will be forwarded to the cors module.
Breaking change: the 'origins' option is removed
Before:
```js
new Server(3000, {
origins: ["https://example.com "]
});
```
The 'origins' option was used in the allowRequest method, in order to
determine whether the request should pass or not. And the Engine.IO
server would implicitly add the necessary Access-Control-Allow-xxx
headers.
After:
```js
new Server(3000, {
cors: {
origin: "https://example.com ",
methods: ["GET", "POST"],
allowedHeaders: ["content-type"]
}
});
```
The already existing 'allowRequest' option can be used for validation:
```js
new Server(3000, {
allowRequest: (req, callback) => {
callback(null, req.headers.referer.startsWith("https://example.com "));
}
});
```
2020-10-13 23:02:08 +02:00
Damien Arrachequesne
8b6b100c28
feat: add ES6 module export
...
Both CommonJS and ES6 import are now supported:
- with `{ "type": "commonjs" }` in the package.json file
```js
const io = require("socket.io")(8080);
// or
const { Server } = require("socket.io");
const io = new Server(8080);
```
- with `{ "type": "module" }`
```js
import { Server } from "socket.io";
const io = new Server(8080);
```
Related: https://nodejs.org/api/packages.html#packages_dual_commonjs_es_module_packages
2020-10-13 23:02:08 +02:00
Damien Arrachequesne
83a2356648
refactor: properly delegate to the main namespace
2020-10-13 23:02:08 +02:00
Damien Arrachequesne
2875d2cfdf
feat: do not reuse the Engine.IO id
...
In previous versions, the Socket#id attribute was equal (or derived,
for a non-default namespace) to the underlying Engine.IO id, which is
used as a mean to authenticate the user throughout the Engine.IO
session and thus is sensitive information that should be kept secret.
The problem with reusing the Engine.IO id is that users could be
tempted to transmit this id to other clients, in order to implement
private messaging for example.
So we'll now generate a new random id for each new socket.
Please note that this id will now be different from the one found in
the query parameters of the HTTP requests.
2020-10-13 23:02:07 +02:00
Damien Arrachequesne
3289f7ec37
feat: remove the implicit connection to the default namespace
...
In previous versions, a client was always connected to the default
namespace, even if it requested access to another namespace.
This meant that the middlewares registered for the default namespace
were triggered in any case, which is a surprising behavior for end
users.
This also meant that the query option of the Socket on the client-side
was not sent in the Socket.IO CONNECT packet for the default namespace:
```js
// default namespace: query sent in the query params
const socket = io({
query: {
abc: "def"
}
});
// another namespace: query sent in the query params + the CONNECT packet
const socket = io("/admin", {
query: {
abc: "def"
}
});
```
The client will now send a CONNECT packet in any case, and the query
option of the Socket is renamed to "auth", in order to make a clear
distinction with the query option of the Manager (included in the query
parameters of the HTTP requests).
```js
// server-side
io.use((socket, next) => {
// not triggered anymore
});
io.of("/admin").use((socket, next => {
// triggered
console.log(socket.handshake.query.abc); // "def"
console.log(socket.handshake.auth.abc); // "123"
});
// client-side
const socket = io("/admin", {
query: {
abc: "def"
},
auth: {
abc: "123"
}
});
```
2020-10-13 23:02:07 +02:00
Damien Arrachequesne
7a51c76413
refactor: migrate tests to TypeScript
2020-10-13 23:02:06 +02:00
Damien Arrachequesne
64bd9fb01a
chore: include Engine.IO v4
...
Release notes: https://github.com/socketio/engine.io/releases/tag/4.0.0
2020-10-13 23:02:06 +02:00
Damien Arrachequesne
4396bd0b3d
chore: point towards the develop branch of the client
...
The package-lock.json file is temporarily removed in order to include
the latest commits to the client and make the tests pass.
2020-10-13 23:02:06 +02:00
Damien Arrachequesne
7fc3c42234
chore(release): 4.0.1-rc1
...
Diff: https://github.com/socketio/socket.io-parser/compare/4.0.0...4.0.1-rc1
2020-10-12 15:21:44 +02:00
Damien Arrachequesne
78f9fc2999
feat: add support for a payload in a CONNECT packet
2020-10-08 02:00:09 +02:00
Damien Arrachequesne
9eb8561cbc
refactor: use require for debug dependency
...
So that the lines can be properly excluded by the webpack-remove-debug
loader ([1]).
[1] https://github.com/johngodley/webpack-remove-debug
2020-10-06 01:17:31 +02:00
Damien Arrachequesne
091d25edf1
chore: add dist
2020-10-06 01:15:30 +02:00
Damien Arrachequesne
8df2120a6f
docs: add a sample session with HTTP requests and WebSocket frames
2020-10-05 01:43:53 +02:00
Damien Arrachequesne
f9c0e74b14
chore: bump eiows to 3.3.2
...
The CI was failing with Node.js 14.13.0.
2020-10-05 01:04:17 +02:00
Alessandro Magionami
bb43ff2988
docs: add example with fastify ( #3654 )
...
See https://github.com/alemagio/fastify-socket.io
2020-10-04 23:20:05 +02:00
Damien Arrachequesne
ba55991ba0
style: minor edits
2020-10-02 12:38:18 +02:00
Damien Arrachequesne
621aeba569
docs: add a history of revisions
...
Backported from master.
2020-10-02 12:32:42 +02:00
Damien Arrachequesne
4b9e14a951
docs: add a history of revisions
2020-10-02 12:28:40 +02:00
Damien Arrachequesne
d389bb93e4
docs: rework of the protocol documentation
2020-10-02 12:06:26 +02:00
Damien Arrachequesne
bce66e8296
docs: rework of the protocol documentation
2020-10-02 00:11:24 +02:00
Damien Arrachequesne
27a0ab5d38
docs: restore the 'upgrades' param in the handshake
...
Related: 660263fae2
2020-10-01 15:18:43 +02:00
Damien Arrachequesne
2f1abed2e2
docs: clarify the session examples
2020-10-01 15:09:24 +02:00
Damien Arrachequesne
bd2ba234d9
docs: clarify the session examples
2020-10-01 14:59:37 +02:00
dependabot[bot]
45670a14f0
chore: bump js-yaml from 3.4.5 to 3.14.0 ( #640 )
...
Bumps [js-yaml](https://github.com/nodeca/js-yaml ) from 3.4.5 to 3.14.0.
- [Release notes](https://github.com/nodeca/js-yaml/releases )
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nodeca/js-yaml/compare/3.4.5...3.14.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-30 23:41:37 +02:00
Damien Arrachequesne
ea8804eee5
docs(changelog): include changelog for release 2.2.1
...
Merged from the 2.2.x branch.
2020-09-30 15:31:11 +02:00
Damien Arrachequesne
ccadd5a462
docs(changelog): include changelog for release 3.3.1
...
Merged from the 3.3.x branch.
2020-09-30 02:45:53 +02:00
Damien Arrachequesne
0ba4615822
docs(changelog): include changelog for release 3.4.4
...
Merged from the 3.4.x branch.
2020-09-30 02:32:48 +02:00
Damien Arrachequesne
bc9d6c1669
refactor: fix typo
...
Closes https://github.com/socketio/socket.io-client/pull/1354
2020-09-30 01:46:50 +02:00
Damien Arrachequesne
0540c36510
refactor(typings): add server options
...
Greatly inspired from:
- https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/engine.io
- https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/socket.io
2020-09-29 02:04:27 +02:00
Damien Arrachequesne
1108ede120
chore: bump socket.io-parser
...
Breaking change:
- the encode() method is now synchronous
Please note that the exchange [protocol][1] is left untouched and thus
stays in version 4.
Diff: https://github.com/socketio/socket.io-parser/compare/3.4.1...4.0.0
[1] https://github.com/socketio/socket.io-protocol
2020-09-28 16:07:09 +02:00
Damien Arrachequesne
5d81b13431
chore(release): 2.0.2
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.0.1...2.0.2
2020-09-28 15:32:41 +02:00
Damien Arrachequesne
e57f528944
chore(release): 2.0.1
...
Diff: https://github.com/socketio/socket.io-adapter/compare/2.0.0...2.0.1
2020-09-28 15:14:58 +02:00
Damien Arrachequesne
c043650f1c
fix: Adapter#encode() is now synchronous
...
See https://github.com/socketio/socket.io-parser/releases/tag/4.0.0
2020-09-28 15:11:56 +02:00
Damien Arrachequesne
c04d7f5c47
chore(release): 4.0.0
...
This release will be included in Socket.IO v3.
Diff: https://github.com/socketio/socket.io-parser/compare/3.4.1...4.0.0
2020-09-28 14:55:19 +02:00
Damien Arrachequesne
9e601c6940
refactor: export Packet interface and refactor imports
2020-09-28 14:37:47 +02:00
Damien Arrachequesne
029f478992
feat: remove Server#set() method
...
This method was kept for backward-compatibility with pre-1.0 versions.
2020-09-26 01:47:17 +02:00
Damien Arrachequesne
424a473c22
refactor: use ES6 Maps instead of plain objects
...
These attributes were not part of the public API, so there's no
breaking change.
2020-09-26 01:21:51 +02:00
Damien Arrachequesne
1507b416d5
feat: remove Socket#rooms object
...
The value stored in the adapter will now be used, instead of
duplicating it in the Socket class.
Breaking change: Socket#rooms is now a Set instead of an object
Closes https://github.com/socketio/socket.io/issues/2890
2020-09-26 00:48:55 +02:00
Damien Arrachequesne
84437dc2a6
chore: bump socket.io-adapter
...
Breaking changes:
- Namespace#connected is now a Map instead of an object.
- Namespace#clients() is renamed to Namespace#allSockets() and now
returns a Promise
Diff: https://github.com/socketio/socket.io-adapter/compare/1.1.2...2.0.0
2020-09-26 00:24:54 +02:00
Damien Arrachequesne
2464de7d2b
refactor: use prettier to format tests
2020-09-25 23:47:23 +02:00
Damien Arrachequesne
a5581a9789
refactor: migrate to TypeScript
2020-09-25 23:41:53 +02:00
Damien Arrachequesne
7216d7adfb
chore(release): 2.0.0
...
Diff: https://github.com/socketio/socket.io-adapter/compare/1.1.2...2.0.0
2020-09-25 23:09:21 +02:00
Damien Arrachequesne
b52b4ef49e
refactor: migrate to TypeScript
2020-09-25 23:01:42 +02:00
Damien Arrachequesne
cfdc4794f6
refactor: use prettier to format test code
2020-09-24 12:02:19 +02:00
Damien Arrachequesne
28d4f0309b
refactor: do not convert Blobs
...
This was needed in a previous version of the parser, which used msgpack
to encode the payload.
Blobs (and Files) will now be included in the array of binary
attachments without any additional transformation.
Breaking change: the encode method is now synchronous
See also 299849b002
2020-09-24 11:48:25 +02:00
Damien Arrachequesne
fe33ff7c87
test: actually test the parser
...
The assertions were not checked, because the functions are asynchronous.
Besides, the Blob tests were throwing in the browser:
> Uncaught ReferenceError: can't access lexical declaration 'BlobBuilder' before initialization
2020-09-24 11:48:24 +02:00
dependabot[bot]
00e73598a0
chore: bump elliptic from 6.5.2 to 6.5.3 ( #96 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-23 00:57:41 +02:00
Damien Arrachequesne
dd7cd60ba2
refactor: convert all tests to ES6 syntax
2020-09-23 00:28:54 +02:00
Damien Arrachequesne
aeae87c220
fix: do not catch encoding errors
...
It does not make sense to catch the errors thrown by JSON.stringify()
and convert them to an ERROR packet (which are meant for namespace
authentication errors), it should be caught higher in the stack.
Related: 92c530da47
2020-09-23 00:28:53 +02:00
Damien Arrachequesne
567c0ca965
refactor: use PacketType enum wherever applicable
2020-09-23 00:24:38 +02:00
Damien Arrachequesne
c327acbc3c
fix: throw upon invalid payload format
...
An invalid packet was previously parsed as an ERROR packet, which was
then ignored because it didn't contain any 'nsp' (namespace) field.
This behavior was wrong because:
- it means the other side is sending invalid payloads, so the
connection must be closed right away
- ERROR packets are meant for namespace authentication failures
Parsing an invalid payload will now throw an error, which must be
caught by the caller.
Closes https://github.com/socketio/socket.io-parser/issues/86
2020-09-22 23:33:03 +02:00
Damien Arrachequesne
b23576a73e
refactor: migrate to TypeScript
2020-09-22 22:42:17 +02:00
Diego Molina
af165ae1c2
docs: adjusting Sauce Labs name ( #3578 )
2020-09-19 03:01:19 +02:00
Damien Arrachequesne
ea41f225ee
perf: update benchmarks
2020-09-18 14:09:53 +02:00
Damien Arrachequesne
6a59237ed0
test: add Node.js 12 and 14 in the build matrix
...
Node.js 8 is removed, as it is now EOL.
Note: the node_modules folder is cached by default
2020-09-17 15:27:33 +02:00
Damien Arrachequesne
3d760b71d7
refactor: use ES6 syntax
2020-09-17 14:48:46 +02:00
Damien Arrachequesne
13cc07d6ad
refactor: use prettier to format code
2020-09-17 14:31:06 +02:00
Damien Arrachequesne
d9bfcaeedb
test: add Node.js 12 and 14 in the build matrix
...
Node.js 8 is removed, as it is now EOL.
Note: the node_modules folder is cached by default
2020-09-17 14:30:34 +02:00
Damien Arrachequesne
1238ddb995
chore: add package-lock.json file
2020-09-17 12:14:57 +02:00
Damien Arrachequesne
130f28a43c
refactor: rename clients and clientRooms methods
...
In Socket.IO glossary:
- a Client manages the low-level connection and can be associated with several Sockets
- a Socket belongs to a given Namespace
2020-09-16 22:27:27 +02:00
Damien Arrachequesne
53ed3f4099
feat: use ES6 Sets and Maps
...
The sids and the rooms objects are now Map<string, Set<string>>:
sids => Map<SocketId, Set<Room>>
rooms => Map<Room, Set<SocketId>>
Breaking changes: the clients() and clientRooms() methods will now
return a Set instead of an array.
Also, the rooms argument in the broadcast() method will now be a Set
too.
Besides, the callbacks were removed from all function signatures, as
every operation is synchronous. Regarding the Redis adapter, the
clients() method is the only operation which will now return a promise.
This change allows us to remove the Room class, which was used to have
an external length attribute (instead of computing Object.keys()
everytime).
2020-09-16 22:19:56 +02:00
Damien Arrachequesne
a05379b1e8
test: use eiows
...
The eiows package is the published version of [1], which is a fork of
uws (a performant WebSocket server written in C++ with bindings for
Node.js).
[1] https://github.com/mmdevries/uws
2020-09-14 22:20:36 +02:00
Damien Arrachequesne
428b4f5200
docs: update links to other repositories
2020-09-14 22:04:49 +02:00
Damien Arrachequesne
ec83022ef4
docs: update examples with ES6 syntax
2020-09-14 22:00:40 +02:00
Damien Arrachequesne
609223959c
docs: update latency example
...
The enchilada module fails to bundle the Engine.IO client, so we'll
just import the published bundle.
The exception seems to come from debug:
> Spread must be the final element of an element list
2020-09-11 02:40:28 +02:00
Damien Arrachequesne
2ea0d13094
chore(release): 4.0.0
...
Diff: https://github.com/socketio/engine.io-client/compare/v4.0.0-alpha.1...4.0.0
Full diff: https://github.com/socketio/engine.io-client/compare/3.4.0...4.0.0
2020-09-11 01:01:49 +02:00
Damien Arrachequesne
70b1c36be1
chore(release): 4.0.0
...
Diff: https://github.com/socketio/engine.io/compare/v4.0.0-alpha.1...4.0.0
Full diff: https://github.com/socketio/engine.io/compare/3.4.0...4.0.0
2020-09-11 00:59:57 +02:00
Damien Arrachequesne
851c1177fc
chore(release): 4.0.1
...
Diff: https://github.com/socketio/engine.io-parser/compare/4.0.0...4.0.1
2020-09-11 00:49:45 +02:00
Damien Arrachequesne
886f9ea7c4
fix: use a terser-compatible representation of the separator
...
By default, terser (the mangler used by webpack) will replace the '\x1e'
by an unreadable character in the optimized output.
One solution would be to use the 'ascii_only' option:
```
module.exports = {
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
terserOptions: {
output: {
ascii_only: true
}
}
})
]
}
};
```
But it would require anyone who tries to bundle the engine.io client to
use this plugin, so we'll rather use String.fromCharCode().
Note: String.fromCharCode(30) === '\u001e' === '\x1e'
2020-09-11 00:24:56 +02:00
Damien Arrachequesne
9df38d57fb
docs: update the list of supported engines
...
As Node.js 8 is now EOL.
2020-09-10 15:52:32 +02:00
Damien Arrachequesne
078527a384
feat: disable perMessageDeflate by default
...
The WebSocket permessage-deflate extension, while useful is some cases,
adds some extra memory overhead for each WebSocket connection, and
results in huge memory usage in production deployments.
It will now be disabled by default.
2020-09-10 15:46:04 +02:00
Damien Arrachequesne
54c67978d5
docs: update the default value of maxHttpBufferSize
...
Following 734f9d1268
2020-09-10 15:22:43 +02:00
Damien Arrachequesne
1916d3ae62
test: remove Node.js 8 from the test matrix
...
Reference: https://github.com/nodejs/Release
2020-09-10 15:20:00 +02:00
Damien Arrachequesne
4683a954d4
chore: provide a development bundle
...
Two bundles will now be created:
- one for development, with debug and unminified: dist/engine.io.js
- one for production, without debug and minified: dist/engine.io.min.js
2020-09-10 15:17:53 +02:00
Damien Arrachequesne
14ca7a1cfc
chore: restore package-lock.json file
...
The package-lock.json file was removed in the previous commit, in order
to sync the client version when upgrading the parser (and make the
tests pass).
2020-09-09 02:09:44 +02:00
Damien Arrachequesne
f7ba966e53
feat: strip debug from the browser bundle
...
Striping the debug module (both imports and method calls) helps
reduce the bundle size from 41 to 33 KB.
Note: while removing debug from the source code is not desirable, it
might be interesting to provide the library without debug included, so
that users don't have to use something like webpack-remove-debug when
bundling the library.
2020-09-09 01:53:22 +02:00
Damien Arrachequesne
ab3de6ab53
test: add Node.js 14 in the test matrix
...
Reference: https://github.com/nodejs/Release
2020-09-09 01:36:13 +02:00
Damien Arrachequesne
8440a57f76
chore: bump engine.io-parser version
...
See also: https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4
Release: https://github.com/socketio/engine.io-parser/releases/tag/4.0.0
Diff: https://github.com/socketio/engine.io-parser/compare/2.2.0...4.0.0
2020-09-09 00:02:24 +02:00
Damien Arrachequesne
ed29e5955d
chore: bump engine.io-parser version
...
See also: https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4
Release: https://github.com/socketio/engine.io-parser/releases/tag/4.0.0
Diff: https://github.com/socketio/engine.io-parser/compare/2.2.0...4.0.0
2020-09-09 00:00:25 +02:00
Damien Arrachequesne
01df755d4b
docs: update README
2020-09-08 23:30:51 +02:00
Damien Arrachequesne
ebf6e8cd49
chore(release): 4.0.0
...
Diff: https://github.com/socketio/engine.io-parser/compare/v4.0.0-alpha.1...v4.0.0
2020-09-08 23:15:39 +02:00
Damien Arrachequesne
03b49674e6
chore: bump cookie version
...
Release: https://github.com/jshttp/cookie/releases/tag/v0.4.0
Diff: https://github.com/jshttp/cookie/compare/v0.3.1...v0.4.1
2020-09-08 02:47:18 +02:00
Gal Koren
cabb78d666
chore: bump parseqs version ( #639 )
...
Release notes: https://github.com/galkn/querystring/releases/tag/v0.0.6
2020-09-08 01:54:50 +02:00
Damien Arrachequesne
eb2d8cc4c6
test: add Node.js 14 in the test matrix
...
Ref: https://github.com/nodejs/Release
2020-09-08 01:31:17 +02:00
Damien Arrachequesne
8edf2d1478
fix: keep track of the buffer initial length
...
The write buffer is mutable, so its initial length must be saved when
encoding the payload.
2020-09-08 01:30:32 +02:00
Damien Arrachequesne
6efedfa0f3
feat: restore the upgrade mechanism
...
See 660263fae2
2020-09-08 01:30:32 +02:00
Damien Arrachequesne
66287d919f
test: pin the Node.js version for the browser tests
...
The build fails with Node.js 12. Let's pin the version for now, we'll
investigate later.
2020-09-08 01:30:21 +02:00
dependabot[bot]
373886f195
chore: bump elliptic from 6.5.2 to 6.5.3 ( #115 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-07 13:23:44 +02:00
Damien Arrachequesne
660263fae2
docs: restore the upgrade mechanism in v4
...
After re-reading the goals of Engine.IO [1], it seems the upgrade
mechanism is better for the user experience, so we'll keep that way.
[1] https://github.com/socketio/engine.io#goals
2020-09-07 13:18:54 +02:00
Damien Arrachequesne
e0b35d054f
docs: points towards the website
...
The website is now much more stable, so there's no need to keep two
copies of the same content (which must be manually kept in sync).
2020-09-01 09:37:29 +02:00
Damien Arrachequesne
a66f083d3e
docs(examples): add create-react-app example
...
Related: https://github.com/socketio/socket.io-client/issues/1330
2020-07-09 11:32:48 +02:00
Damien Arrachequesne
f5a8f52f19
docs(examples/react-native): update video
2020-06-05 21:36:15 +02:00
Damien Arrachequesne
7a219f9459
docs(examples/react-native): add example with React Native
...
Includes e5bc1063cc
2020-06-05 08:57:04 +02:00
Damien Arrachequesne
5d16319692
docs(examples/webpack-build-server): update engine.io version
...
In order to include [0], which fixes the following error:
ERROR in ./node_modules/engine.io/lib/server.js
Module not found: Error: Can't resolve 'uws' in '/media/damien/git/other-bets/socket.io-parent/socket.io/examples/webpack-build-server/node_modules/engine.io/lib'
@ ./node_modules/engine.io/lib/server.js 107:27-41
@ ./node_modules/engine.io/lib/engine.io.js
@ ./node_modules/socket.io/lib/index.js
@ ./lib/index.js
[0] 85e544afd9
2020-06-04 16:36:19 +02:00
Damien Arrachequesne
09708eb307
docs(changelog): include changelog for release 3.4.2
...
Merged from the 3.4.x branch.
2020-06-04 16:23:05 +02:00
Damien Arrachequesne
82cdca23ba
fix: remove implicit require of uws
...
So that bundlers like webpack do not try to include it in the build.
As a side-effect, any implementation which matches the API of the ws
module can now be used.
Before that change, you had to explicitly exclude uws:
```
// webpack.config.js
module.exports = {
// ...
externals: {
uws: 'uws'
}
};
```
Related: https://github.com/socketio/engine.io/issues/575
2020-06-04 14:24:42 +02:00
Damien Arrachequesne
a5e76bc011
docs: add example with extraHeaders in the browser
2020-06-04 10:20:42 +02:00
Damien Arrachequesne
dac76f249b
docs: use ES6 syntax for the code examples
2020-06-04 10:09:22 +02:00
Damien Arrachequesne
d5d81a7c75
chore: bump component-emitter dependency
...
Subscribing/unsubscribing for a lot of different event types could lead
to a memory leak.
See aa2e57acc7
Diff: https://github.com/component/emitter/compare/1.2.1...1.3.0
2020-06-04 08:12:10 +02:00
Damien Arrachequesne
f3a48329e7
test: restore tests on all browsers
...
iphone / ipad / edge were excluded in [1], though there is no clear
explanation.
[1] 28765c5430
2020-06-04 07:43:47 +02:00
Damien Arrachequesne
2f5c948abe
fix(react-native): restrict the list of options for the WebSocket object
...
Only 'headers' and 'localAddress' options are supported by the
WebSocket implementation in React Native.
The following message was printed to the console:
> Unrecognized WebSocket connection option(s) `agent`, `perMessageDeflate`, `pfx`, `key`, `passphrase`, `cert`, `ca`, `ciphers`, `rejectUnauthorized`. Did you mean to put these under `headers`?
Reference: https://reactnative.dev/docs/network.html#websocket-support
2020-05-25 07:34:17 +02:00
Damien Arrachequesne
8f90ba9c67
docs(examples): add example with passport authentication
2020-05-22 08:36:43 +02:00
Damien Arrachequesne
3dd2a0ea41
chore(release): 4.0.0-alpha.1
...
Diff: https://github.com/socketio/engine.io-parser/compare/v4.0.0-alpha.0...v4.0.0-alpha.1
2020-05-19 15:15:20 +02:00
Damien Arrachequesne
cab7db0404
feat: implement the version 4 of the protocol
...
See https://github.com/socketio/engine.io-protocol for the list of
changes.
Note: The 'base64-arraybuffer' dependency must now be explicitly
included by the client (not needed by the server).
2020-05-19 15:07:53 +02:00
Damien Arrachequesne
cf3a759b89
docs: fix typo
2020-05-19 14:36:20 +02:00
Damien Arrachequesne
9806892ea5
docs: describe revision 4 of the protocol
...
This version is still subject to change, feedback is welcome!
The rationale behind the changes are listed in the relevant section.
2020-05-19 14:18:02 +02:00
Damien Arrachequesne
1aec01ab18
docs: add table of contents
2020-05-19 12:50:11 +02:00
Damien Arrachequesne
c725310be0
docs: add reference to version 2
2020-05-19 12:41:39 +02:00
Damien Arrachequesne
725d551b75
docs: add some additional examples for the protocol v3
2020-05-19 12:12:25 +02:00
Damien Arrachequesne
a8130ce3a9
chore: release 3.4.1
...
Diff: https://github.com/socketio/socket.io-parser/compare/3.4.0...3.4.1
2020-05-13 07:59:21 +02:00
bcaller
dcb942d24d
fix: prevent DoS (OOM) via massive packets ( #95 )
...
When maxHttpBufferSize is large (1e8 bytes), a payload of length 100MB
can be sent like so:
99999991:422222222222222222222222222222222222222222222...
This massive packet can cause OOM via building up many many
`ConsOneByteString` objects due to concatenation:
99999989 `ConsOneByteString`s and then converting the massive integer to
a `Number`.
The performance can be improved to avoid this by using `substring`
rather than building the string via concatenation.
Below I tried one payload of length 7e7 as the 1e8 payload took so
long to process that it timed out before running out of memory.
```
==== JS stack trace =========================================
0: ExitFrame [pc: 0x13c5b79]
Security context: 0x152fe7b808d1 <JSObject>
1: decodeString [0x2dd385fb5d1] [/node_modules/socket.io-parser/index.js:~276] [pc=0xf59746881be](this=0x175d34c42b69 <JSGlobal Object>,0x14eccff10fe1 <Very long string[69999990]>)
2: add [0x31fc2693da29] [/node_modules/socket.io-parser/index.js:242] [bytecode=0xa7ed6554889 offset=11](this=0x0a2881be5069 <Decoder map = 0x3ceaa8bf48c9>,0x14eccff10fe1 <Very...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xa09830 node::Abort() [node]
2: 0xa09c55 node::OnFatalError(char const*, char const*) [node]
3: 0xb7d71e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xb7da99 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xd2a1f5 [node]
6: 0xd2a886 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
7: 0xd37105 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xd37fb5 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xd3965f v8::internal::Heap::HandleGCRequest() [node]
10: 0xce8395 v8::internal::StackGuard::HandleInterrupts() [node]
11: 0x1042cb6 v8::internal::Runtime_StackGuard(int, unsigned long*, v8::internal::Isolate*) [node]
12: 0x13c5b79 [node]
```
2020-05-13 07:37:32 +02:00
Damien Arrachequesne
a5d04354e6
test: transpile to es5 with babelify
2020-05-13 07:23:37 +02:00
Damien Arrachequesne
86d4e8d4da
docs(changelog): include changelog for release 3.4.1
...
Merged from the 3.4.x branch.
2020-04-17 15:08:17 +02:00
Damien Arrachequesne
94623c8f8b
docs(changelog): include changelog for release 3.4.1
...
Merged from the 3.4.x branch.
2020-04-17 14:57:35 +02:00
Damien Arrachequesne
2a1aa1c59c
docs(examples): bump dependencies
...
In order to include https://github.com/socketio/engine.io/releases/tag/3.4.1
2020-04-17 14:37:31 +02:00
Damien Arrachequesne
17747e4d69
docs(chat-example): bump dependencies
...
In order to include https://github.com/socketio/engine.io/releases/tag/3.4.1
2020-04-17 11:21:10 +02:00
Damien Arrachequesne
3f3a6f9914
fix: use globalThis polyfill instead of self/global ( #634 )
...
In order to fix the "self is not defined" issues in Android 8 and React
Native.
Fixes https://github.com/socketio/engine.io-client/issues/611 , https://github.com/socketio/engine.io-client/issues/626
Closes https://github.com/socketio/engine.io-client/pull/627
2020-04-16 16:08:37 +02:00
Chris West (Faux)
27fa6949f3
refactor: remove indexof dependency
...
This is a polyfill for indexOf(), which we use literally everywhere else.
2020-04-16 10:06:44 +02:00
Damien Arrachequesne
415332fc7c
test: actually test empty payload handling ( #113 )
...
Fixes https://github.com/socketio/engine.io-parser/issues/112
2020-04-15 14:53:41 +02:00
Damien Arrachequesne
dcdbccb3dd
fix: ignore errors when forcefully closing the socket ( #601 )
...
In order to catch the following errors:
```
events.js:288
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at afterWriteDispatched (internal/stream_base_commons.js:154:25)
at writeGeneric (internal/stream_base_commons.js:145:3)
at Socket._writeGeneric (net.js:780:11)
at Socket._write (net.js:792:8)
at doWrite (_stream_writable.js:441:12)
at writeOrBuffer (_stream_writable.js:425:5)
at Socket.Writable.write (_stream_writable.js:316:11)
at abortConnection (<myproject>/node_modules/engine.io/lib/server.js:506:12)
at <myproject>/node_modules/engine.io/lib/server.js:353:7
at Server.verify (<myproject>/node_modules/engine.io/lib/server.js:158:14)
at Server.handleUpgrade (<myproject>/node_modules/engine.io/lib/server.js:351:8)
```
Closes https://github.com/socketio/engine.io/issues/596 , https://github.com/socketio/engine.io/pull/598
2020-04-15 11:42:31 +02:00
Damien Arrachequesne
281de9ed47
docs(tweet-stream-example): migrate example
...
From https://github.com/darrachequesne/socket.io-tweet-stream
2020-04-14 10:17:47 +02:00
Damien Arrachequesne
edb95ea221
docs(whiteboard-example): update dependencies
2020-04-14 10:04:27 +02:00
Damien Arrachequesne
b74bb80122
docs(chat-example): remove dependency to the parent project
2020-04-14 09:56:42 +02:00
Damien Arrachequesne
71ece3ebf6
chore(release): 4.0.0-alpha.1
2020-02-12 08:33:47 +01:00
Damien Arrachequesne
804e871d4a
chore(release): 4.0.0-alpha.1
2020-02-12 08:26:52 +01:00
Damien Arrachequesne
7c7f1a9fe2
fix: properly assign options when creating the transport
...
The query attribute was overwritten, due to the order of arguments in
the assignment. The bug was introduced in the refactor (5f47a50 ).
2020-02-12 08:14:51 +01:00
Damien Arrachequesne
b27215dcee
chore(release): 4.0.0-alpha.0
2020-02-12 07:50:43 +01:00
Damien Arrachequesne
d37534e052
chore(release): 4.0.0-alpha.0
2020-02-12 07:45:56 +01:00
Damien Arrachequesne
5f47a50ee5
refactor: refactor the handling of the options
2020-02-11 23:33:34 +01:00
Damien Arrachequesne
41a1bcf1f5
chore: bump ws dependency
...
Diff: https://github.com/websockets/ws/compare/6.1.0...7.2.1
2020-02-11 23:17:43 +01:00
Damien Arrachequesne
4d311495af
test: add Node.js 12 and 13 in the test matrix
2020-02-11 08:05:58 +01:00
Damien Arrachequesne
734f9d1268
feat: decrease the default value of maxHttpBufferSize
...
This change reduces the default value from 100 mb to a more sane 1 mb.
This helps protect the server against denial of service attacks by
malicious clients sending huge amounts of data.
2020-02-11 07:59:13 +01:00
Damien Arrachequesne
61b949259e
feat: use the cors module to handle cross-origin requests
...
We'll now rely on the standard cors module (https://github.com/expressjs/cors ),
instead of the custom implementation that is error-prone and not
really user-friendly.
Breaking change: the handlePreflightRequest option is removed by the
change.
Before:
```
new Server({
handlePreflightRequest: (req, res) => {
res.writeHead(200, {
"Access-Control-Allow-Origin": 'https://example.com ',
"Access-Control-Allow-Methods": 'GET',
"Access-Control-Allow-Headers": 'Authorization',
"Access-Control-Allow-Credentials": true
});
res.end();
}
})
```
After:
```
new Server({
cors: {
origin: "https://example.com ",
methods: ["GET"],
allowedHeaders: ["Authorization"],
credentials: true
}
})
```
2020-02-11 07:54:25 +01:00
Damien Arrachequesne
bafe684a19
refactor: refactor the handling of the options
2020-02-10 12:07:41 +01:00
Damien Arrachequesne
61e639b257
test: add Node.js 10, 12 and 13 in the test matrix
...
uws is no longer maintained, and did not support Node.js >= 10.
We now use a fork in order to support the newer versions of Node.js.
It is maintained there: https://github.com/mmdevries/uws
And can be installed with: `npm i github:mmdevries/uws#2.4.1`
We could also try to support uWebSockets.js, but it does not have the
same API as ws.
The "engines" attribute has also been added in the package.json file,
since we broke the support for Node.js 6 in the latest minor release.
Source: https://github.com/mmdevries/uws
Related: https://github.com/socketio/engine.io/pull/583
2020-02-06 13:36:13 +01:00
Damien Arrachequesne
a374471d06
feat: disable cookie by default and add sameSite attribute
...
The cookie might be used for sticky-session, but is not mandatory so it
makes sense to disable it by default.
The change also add a SameSite=Lax attribute by default.
Breaking change: the syntax has changed from
```
new Server({
cookieName: "test",
cookieHttpOnly: false,
cookiePath: "/custom"
})
```
to
```
new Server({
cookie: {
name: "test",
httpOnly: false,
path: "/custom"
}
})
```
All other options (domain, maxAge, sameSite, ...) are now supported.
Reference: https://github.com/jshttp/cookie#options-1
2020-02-05 08:33:00 +01:00
Damien Arrachequesne
7f5a903f91
chore(release): 4.0.0-alpha.0
2020-02-04 12:36:20 +01:00
Damien Arrachequesne
31ff87593f
feat: reverse the ping-pong mechanism
...
The ping packets will now be sent by the server, because the timers set
in the browsers are not reliable enough. We suspect that a lot of
timeout problems came from timers being delayed on the client-side.
Breaking change: v3.x clients will not be able to connect anymore (they
will send a ping packet and timeout while waiting for a pong packet).
Related: https://github.com/socketio/engine.io/issues/312
2020-02-04 12:31:44 +01:00
Damien Arrachequesne
81d7171c6b
feat: reverse the ping-pong mechanism
...
The ping packets will now be sent by the server, because the timers set
in the browsers are not reliable enough. We suspect that a lot of
timeout problems came from timers being delayed on the client-side.
Breaking change: v3.x clients will not be able to connect anymore (they
will send a ping packet and timeout while waiting for a pong packet).
Related: https://github.com/socketio/engine.io/issues/312
2020-02-04 12:29:37 +01:00
Damien Arrachequesne
840145d3e5
test: add node.js 12 in the test matrix
...
See https://github.com/nodejs/Release
2020-01-15 08:52:14 +01:00
Damien Arrachequesne
581cefff2d
refactor: remove gulp from the build
...
Plain npm scripts should be sufficient for our use case.
2020-01-15 08:46:15 +01:00
Damien Arrachequesne
50853738e0
fix: properly decode binary packets
...
This fixes the previous commit, allowing to properly decode binary packets in the browser (based on
the binaryType attribute).
2020-01-15 00:00:33 +01:00
Damien Arrachequesne
2ae2520a34
chore: point towards the v4 branch
2020-01-14 23:08:07 +01:00
Damien Arrachequesne
eb88094a0e
chore: point towards the v4 branch
2020-01-14 23:02:25 +01:00
Damien Arrachequesne
08aff9487f
refactor: use prettier to format code
2020-01-14 22:58:35 +01:00
Damien Arrachequesne
f3c291fa61
feat: generateId method can now return a Promise
...
Related:
- https://github.com/socketio/engine.io/issues/538
- https://github.com/socketio/engine.io/pull/535
2020-01-14 21:58:42 +01:00
Damien Arrachequesne
33564b2391
refactor: use prettier to format code
2020-01-14 21:58:38 +01:00
Damien Arrachequesne
a947ae59a2
feat: remove packet type when encoding binary packets
...
Only packets of 'message' type can contain binary data, so it makes sense to remove the prefix in
order to avoid the concatenation of the packet type.
Breaking change: the packet containing binary data will now be sent without any transformation
Protocol v3: { type: 'message', data: <Buffer 01 02 03> } => <Buffer 04 01 02 03>
Protocol v4: { type: 'message', data: <Buffer 01 02 03> } => <Buffer 01 02 03>
2020-01-14 21:54:05 +01:00
Damien Arrachequesne
8eb58a689a
refactor: remove Object.keys polyfill
...
This polyfill is now useless, as we do not plan to support IE < 9 anymore.
2020-01-14 21:54:05 +01:00
Damien Arrachequesne
744bf40d4f
refactor: migrate to ES6 syntax and use prettier to format code
2020-01-14 13:28:12 +01:00
Damien Arrachequesne
da93fb6ef3
refactor: migrate to ES6 syntax
2020-01-12 22:47:18 +01:00
Damien Arrachequesne
0fcc5417ac
refactor: migrate to ES6 syntax
2020-01-10 07:29:26 +01:00
Damien Arrachequesne
11dc4f3a56
chore: migrate to webpack 4
...
Breaking change: the output bundle will now be found in the dist/ folder.
2020-01-10 07:27:02 +01:00
Damien Arrachequesne
ae23c7ef4c
[chore] release 1.1.2
2019-11-25 13:19:48 +01:00
Joway
b9074fa36f
[fix] fix memory leak when leave a room after socket close ( #58 )
2019-11-25 13:14:47 +01:00
Darío Hereñú
f7ab50cc59
[docs] Remove duplicate word ( #57 )
2019-11-25 13:13:53 +01:00
Damien Arrachequesne
47161a65d4
[chore] Release 2.3.0
...
Diff: https://github.com/socketio/socket.io/compare/2.2.0...2.3.0
2019-09-20 12:18:39 +02:00
Damien Arrachequesne
cf39362014
[chore] Bump socket.io-parser to version 3.4.0
...
Diff: https://github.com/socketio/socket.io-parser/compare/3.3.0...3.4.0
2019-09-20 11:04:11 +02:00
Damien Arrachequesne
652402a856
[chore] Release 3.4.0
...
The build failure is due to some ES6 usage in the debug dependency, which will have to be fixed
in the future (by using Babel for example).
Diff: https://github.com/socketio/socket.io-parser/compare/3.3.0...3.4.0
2019-09-20 11:00:03 +02:00
Dimitar Nestorov
9b3572ea23
[chore] Bump debug to version 4.1.0 ( #92 )
2019-09-20 10:51:26 +02:00
flaambe
4d01b2c84c
test: remove deprecated Buffer usage ( #3481 )
2019-09-20 10:50:12 +02:00
Jonatan Juárez
82271921db
[docs] Fix the default value of the 'origins' parameter ( #3464 )
...
Fix documentation about default origins value. The default should read `*:*` instead of `*
2019-09-20 10:37:54 +02:00
Damien Arrachequesne
1150eb50e9
[chore] Bump engine.io to version 3.4.0
...
Diff: https://github.com/socketio/engine.io/compare/3.3.1...3.4.0
2019-09-20 10:31:25 +02:00
Damien Arrachequesne
ccc9337497
[chore] Release 3.4.0
...
Diff: https://github.com/socketio/engine.io-client/compare/3.3.2...3.4.0
2019-09-13 13:57:12 +02:00
Damien Arrachequesne
ecfcc69a7a
[chore] Release 3.4.0
...
Diff: https://github.com/socketio/engine.io/compare/3.3.2...3.4.0
2019-09-13 13:51:49 +02:00
Damien Arrachequesne
1e29b0c984
[chore] Bump engine.io-parser to version 2.2.0
...
Diff: https://github.com/socketio/engine.io-parser/compare/2.1.3...2.2.0
2019-09-13 13:48:19 +02:00
Damien Arrachequesne
7bf75812c3
[chore] Bump engine.io-parser to version 2.2.0
...
Diff: https://github.com/socketio/engine.io-parser/compare/2.1.3...2.2.0
2019-09-13 13:46:43 +02:00
Damien Arrachequesne
e8cd8c0d6c
build: transpile the debug dependency with Babel
...
a967626a1d has broken
the build for IE and android 5.1
Related: https://github.com/visionmedia/debug/issues/668
2019-09-13 13:36:33 +02:00
Christopher
fd7fff252d
[fix] Ensure valid status is passed to error handler ( #622 )
...
Closes https://github.com/socketio/engine.io-client/issues/621
2019-09-13 11:59:51 +02:00
Nubami SQReder
226626921d
[feat] Support extra charset info in Content-Type header ( #619 )
...
XHR Polling failed to make handshake with server that adds charset info into Content-Type header.
Closes https://github.com/socketio/engine.io-client/issues/618
2019-09-13 11:58:24 +02:00
Jake Barnes
2847411dd0
[feat] Add withCredentials option ( #614 )
...
withCredentials was always set to true, despite the browser default being false, and can now be overridden.
Closes https://github.com/socketio/engine.io-client/issues/495
2019-09-13 11:56:36 +02:00
Szymon Lesisz
0eeaa7a927
[fix] fix NodeWebSocket declaration ( #613 )
...
NodeWebSocket was be required ONLY if global variables self and WebSocket were not defined.
Closes https://github.com/socketio/engine.io-client/issues/609
2019-09-13 11:53:59 +02:00
Dimitar Nestorov
242ea9edea
[chore] Bump debug to version 4.1.0 ( #612 )
2019-09-13 11:52:16 +02:00
Damien Arrachequesne
bc8c4978ca
[ci] use Node.js 10 for compatibility with Gulp v3
...
It seems Node.js 12 (which is now 'latest') does not work with Gulp v3. In the future, we will
either have to migrate to Gulp v4, or remove Gulp from the build system.
See https://github.com/gulpjs/gulp/issues/2324
2019-09-13 11:34:45 +02:00
Yosi Attias
c471e03e09
[chore] Bump ws to latest version ( #587 )
2019-09-13 11:24:48 +02:00
Brian Kopp
c144895133
[feat] add additional debug messages ( #586 )
...
These additional messages will help more quickly diagnose the reason for error messages.
2019-09-13 11:21:37 +02:00
Dimitar Nestorov
a967626a1d
[chore] Bump debug to version 4.1.0 ( #581 )
2019-09-13 11:19:02 +02:00
Damien Arrachequesne
f1ce1abdbb
[chore] Release 2.2.0
...
Diff: https://github.com/socketio/engine.io-parser/compare/2.1.3...2.2.0
2019-09-13 11:06:09 +02:00
Gaubee
47893e1145
[perf] use Buffer.from instead of manually copying the ArrayBuffer ( #108 )
...
Ref: https://nodejs.org/docs/latest/api/buffer.html#buffer_class_method_buffer_from_arraybuffer_byteoffset_length
2019-09-13 11:01:01 +02:00
Matthias Ludwig
72f7463be9
[test] fix a typo in the tests ( #111 )
...
should encode payloads as string: there is no type 'post'.
2019-09-13 10:50:31 +02:00
Matthias Ludwig
e9a20cb1ca
[test] ensure the message packet is properly coerced to string ( #110 )
...
result is string '1' not number1
2019-09-13 10:49:08 +02:00
Damien Arrachequesne
5bbbfe2411
[ci] remove Node.js 4 and 6 from the build matrix
...
We keep Node.js 9 for compatibility with the 'uws' dependency (as Node.js 10 fails), but we'll
upgrade later.
2019-09-13 10:34:57 +02:00
Oliver Salzburg
ad844f4b32
[fix] Deprecated Buffer usage in dependency ( #585 )
...
The `Buffer` constructor has been deprecated in favor of safer alternatives.
See https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/
This was fixed in base64id@2.0.0
2019-06-18 08:51:50 +02:00
vendethiel
6bd7817e8a
Remove bower, update history, release 1.3.0
2019-04-15 22:41:56 +02:00
vendethiel
3ab04d399d
update nodejs versions for travis
2019-04-15 22:35:47 +02:00
ven
6ef9d2cda2
Merge pull request #73 from STRML/noDeopt
...
Prevent v8 deopt when using [].slice.call(arguments)
2019-04-09 15:29:01 +02:00
Damien Arrachequesne
569759fc8c
[perf] Add a benchmark for encoding / decoding
2019-03-19 23:56:03 +01:00
Damien Arrachequesne
df387fc593
[chore] Update Makefile
2019-03-19 23:56:03 +01:00
Damien Arrachequesne
aedf8eb29e
[refactor] Use Buffer.allocUnsafe instead of new Buffer ( #104 )
...
Breaking change: drop support for Node.js 4 (since Buffer.allocUnsafe was added in v5.10.0)
Reference: https://nodejs.org/docs/latest/api/buffer.html#buffer_class_method_buffer_allocunsafe_size
2019-03-19 23:56:03 +01:00
Grant Timmerman
9c1e73c752
[chore] Update the license of the chat example ( #3410 )
...
There was no obvious reason to use BSD instead of MIT for that very basic chat app.
Closes #3411
2019-03-15 22:22:22 +01:00
Damien Arrachequesne
57f9d457d5
[chore] Release 3.3.2
2019-01-20 22:59:42 +01:00
Damien Arrachequesne
e157aacbe7
[test] IE8 is no longer supported by Saucelabs
...
Ref: https://wiki.saucelabs.com/display/DOCS/2018/10/16/Announcing+End+of+Life+for+Internet+Explorer+8+on+Windows+7
2019-01-20 22:58:39 +01:00
Ben James
1ec53d424d
[fix] Fix Websocket implementation in React Native ( #607 )
...
As `self` is undefined in React Native.
2019-01-20 22:34:30 +01:00
Damien Arrachequesne
cb0ac6fddc
[chore] Release 3.3.2
2018-11-29 22:51:12 +01:00
Damien Arrachequesne
ec4e12a063
[revert] Allow configuration of Access-Control-Allow-Origin value ( #511 )
...
This reverts commit ebf1a96f42 .
Related: https://github.com/socketio/socket.io/issues/3381
2018-11-29 22:49:34 +01:00
Damien Arrachequesne
df05b73bb9
[chore] Release 2.2.0
2018-11-29 00:00:45 +01:00
Markko Legonkov
b00ae50be6
[feat] Add cache-control header when serving the client source ( #2907 )
2018-11-20 08:02:04 +01:00
Nadir Hussain Laskar
d3c653d876
[docs] Add Touch Support to the whiteboard example ( #3104 )
2018-11-20 08:01:09 +01:00
Antonio
a7fbd1ac4a
[fix] Throw an error when trying to access the clients of a dynamic namespace ( #3355 )
...
Accessing the clients of a dynamic namespace throws because doing `io.of(/your-regex/g)` returns a namespace with no adapter and the clients methods tries to access `namespace.adapter.clients`.
2018-11-20 07:40:11 +01:00
Damien Arrachequesne
190d22b46e
[chore] Bump dependencies
...
- engine.io: https://github.com/socketio/engine.io/compare/3.2.0...3.3.1
- socket.io-parser: https://github.com/socketio/socket.io-parser/compare/3.2.0..3.3.0
2018-11-20 07:33:41 +01:00
Damien Arrachequesne
7b8fba7ea2
[test] Update Travis configuration
...
Reference: https://github.com/nodejs/Release
2018-11-20 07:32:39 +01:00
JinHyuk Kim
de1fd36dc9
[docs] Fix incorrect socket.io-protocol version in Readme ( #89 )
...
Ref: https://github.com/socketio/socket.io-protocol
2018-11-19 22:31:13 +01:00
Damien Arrachequesne
696c7e7efc
[chore] Release 3.3.1
2018-11-19 22:27:51 +01:00
Damien Arrachequesne
64d6044659
[chore] Release 3.3.1
2018-11-19 22:27:16 +01:00
Oliver Salzburg
9956445251
[fix] Replace deprecated Buffer usage ( #565 )
...
The `Buffer` constructor has been deprecated in favor of safer alternatives.
See https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/
2018-11-19 22:22:13 +01:00
Damien Arrachequesne
e081616a3f
[chore] Point towards branch 'develop' of engine.io-client
2018-11-19 22:15:19 +01:00
Damien Arrachequesne
66b9e4a186
[fix] fix JSONP transport in Node.js environment
...
The commit 99bcc62 resulted in `window is not defined` errors.
2018-11-19 22:12:20 +01:00
Nubami SQReder
f62fca4b05
[fix] Trigger xhr polling transport unload handler on 'pagehide' or 'unload' instead of 'beforeunload' ( #604 )
...
...to prevent broke connection on cancelled beforeunload event
Fixes #603
2018-11-19 13:11:45 +01:00
Emmanuel DEMEY
e5f0ceaee0
[docs] Use new JavaScript syntax inside the README ( #3360 )
2018-11-08 00:26:54 +01:00
Damien Arrachequesne
2c856caf03
[chore] Release 3.3.0
2018-11-08 00:21:51 +01:00
Damien Arrachequesne
484e3eced9
[chore] Release 3.3.0
2018-11-08 00:20:58 +01:00
Damien Arrachequesne
0de72b9cc2
[chore] Release 3.3.0
2018-11-07 23:58:21 +01:00
Damien Arrachequesne
b47efb270d
[fix] Remove any reference to the global variable
...
Related: https://github.com/socketio/socket.io-client/issues/1166
2018-11-07 23:31:49 +01:00
Damien Arrachequesne
bb3a21db1f
[chore] Bump ws to version 6.1.0 ( #602 )
2018-11-07 23:17:19 +01:00
Damien Arrachequesne
d95e38f6b6
[chore] Update the Makefile
2018-11-07 23:16:54 +01:00
Damien Arrachequesne
b57e06304e
[test] Update travis configuration
2018-11-07 23:15:29 +01:00
JinHyuk Kim
48f340ec12
[refactor] Fix a small typo and code styling ( #88 )
2018-11-07 22:53:25 +01:00
Damien Arrachequesne
99bcc622cb
[fix] Remove any reference to the global variable
...
Related: https://github.com/socketio/socket.io-client/issues/1166
2018-11-07 22:40:39 +01:00
Damien Arrachequesne
122111a98f
[chore] Update the Makefile
2018-11-07 22:38:03 +01:00
Craig Thayer
26e9329050
[feat] Detect React-Native environment and use all websocket features ( #591 )
...
React-Native provides a Websocket object that is more functionally aligned with the Node.js websocket than the browser websocket.
It has the same constructor signature as the Node.js websocket and can support extraHeaders and protocols.
This PR will detect when the engine.io-client is running in React-Native, call the proper Websocket constructor, and enable support for extraHeaders.
2018-11-02 08:09:02 +01:00
Damien Arrachequesne
28765c5430
[test] Update zuul configuration
...
Excluding tests on iphone / ipad / edge for the moment.
2018-11-02 08:09:02 +01:00
Damien Arrachequesne
669c076f55
[test] Update travis configuration
2018-11-02 08:09:02 +01:00
Damien Arrachequesne
c4e723ccba
[chore] Pin zuul version
...
The CI seems to fail with the new version:
/home/travis/build/[secure]io/engine.io-client/node_modules/zuul/bin/zuul:332
throw err.message;
^
internet explorer@8: [eval("(window.zuul_msg_bus ? window.zuul_msg_bus.splice(0, 1000) : []);")] Not JSON response
2018-11-02 08:09:02 +01:00
Damien Arrachequesne
3e2f415f49
[chore] Bump ws to version 6.1.0 ( #564 )
2018-11-02 07:39:38 +01:00
Jacco Flenter
ebf1a96f42
[feat] Allow configuration of Access-Control-Allow-Origin value ( #511 )
...
It's now possible to specify an origins value (default value is '*') when initialising the engine. This value will be returned as the Access-Control-Allow-Origin value.
Related: #449
2018-11-02 07:38:16 +01:00
Damien Arrachequesne
0151c6a684
[chore] Release 3.2.1
2018-11-02 07:29:08 +01:00
shapel
bc7b2393de
[fix] Processing error code on abort connection ( #562 )
...
Fixes #561
2018-11-02 07:25:53 +01:00
Damien Arrachequesne
021a7dc751
[docs] Point the status badge towards the master branch
2018-11-02 06:20:43 +01:00
naoki-san
f5a1ec8651
[docs] Improve description accuracy of pfx option ( #597 )
...
Reference: https://nodejs.org/docs/latest-v6.x/api/tls.html#tls_tls_createsecurecontext_options
2018-11-01 08:11:06 +01:00
Damien Arrachequesne
1f2fc43d74
[chore] Release 2.1.3
2018-11-01 06:44:53 +01:00
Amit Portnoy
19694042f5
[chore] Update to blob@0.0.5 (avoid reference to 'global') ( #107 )
...
Source: https://github.com/amitport/blob/releases/tag/v0.0.5
Closes #99
Related https://github.com/socketio/socket.io-client/issues/1166
2018-11-01 06:31:42 +01:00
Damien Arrachequesne
2377dcc613
[fix] Do not mutate the input upon packet encoding ( #105 )
...
Fixes #95
2018-11-01 06:26:16 +01:00
Damien Arrachequesne
ebdf467371
[test] Add a basic test for UTF-8 encoding/decoding ( #106 )
2018-11-01 06:26:13 +01:00
Damien Arrachequesne
e184cac0fa
[chore] Pin zuul version
...
The CI fails with the new version: https://travis-ci.org/socketio/engine.io-parser/jobs/448690970
> /home/travis/build/[secure]io/engine.io-parser/node_modules/zuul/bin/zuul:332
> throw err.message;
> ^
> internet explorer@8: [eval("(window.zuul_msg_bus ? window.zuul_msg_bus.splice(0, 1000) : []);")] Not JSON response
2018-10-31 07:50:51 +01:00
Damien Arrachequesne
d848f0fc82
[refactor] Remove any reference to the global variable ( #103 )
...
Related #99
2018-10-31 06:23:32 +01:00
Damien Arrachequesne
3bc16f5938
[refactor] Remove custom exports from utf8.js file ( #102 )
...
AMD and browser exports are useless here.
2018-10-31 06:23:08 +01:00
Damien Arrachequesne
ecf0c1465c
[test] Update travis configuration ( #101 )
2018-10-31 06:02:03 +01:00
Damien Arrachequesne
916e4bbc45
[chore] Bump dev dependencies ( #100 )
2018-10-31 06:01:29 +01:00
Damien Arrachequesne
7e35f901b8
[docs] fix this scope in the chat example
...
`user is typing` messages were not properly removed
Closes #3291
2018-08-28 09:05:44 +02:00
Damien Arrachequesne
2dbec77a38
[chore] Update issue template
2018-08-21 13:21:14 +02:00
Andrew Stelmach
d97d873aee
[docs] update README.md ( #3309 )
2018-08-18 23:32:07 +02:00
Damien Arrachequesne
e0b2cb0c5a
[chore] Release 2.1.1
2018-05-17 23:22:49 +02:00
JinHyuk Kim
6a16ea1192
[test] Remove unnecessary assertion in test case ( #556 )
2018-04-30 07:39:40 +02:00
Sleiman Sleiman
1decae341c
[feat] Add local flag to the socket object ( #3219 )
...
To match the behaviour on the namespace (see #2628 ).
2018-04-27 13:03:25 +02:00
Donut
0279c47c8c
[docs] Convert the chat example to ES6 ( #3227 )
2018-04-27 13:00:27 +02:00
Damien Arrachequesne
2917942b3e
[docs] Clarify private messaging in the emit cheatsheet ( #3232 )
...
The previous version was confusing, as `socket.to(socket.id).emit()` does nothing.
Fixes #3220
2018-04-27 12:50:31 +02:00
Damien Arrachequesne
db831a3de4
[chore] Release 2.1.0
2018-03-29 23:30:03 +02:00
Damien Arrachequesne
ac945d1eba
[feat] Add support for dynamic namespaces ( #3195 )
...
This follows #3187 , with a slightly different API.
A dynamic namespace can be created with:
```js
io.of(/^\/dynamic-\d+$/).on('connect', (socket) => { /* ... */ });
```
2018-03-29 23:08:08 +02:00
Scott Gress
ad0c052eff
[docs] Add note in docs for origins(fn) about error needing to be a string. ( #2895 )
2018-03-10 09:03:28 +01:00
Damien Arrachequesne
1f1d64bab6
[fix] Include the protocol in the origins check ( #3198 )
...
Previously, the protocol was not taken in account, which caused the following behaviour:
```js
io.origins('https://foo.example.com:443 '); // ok as a string
io.origins(['https://foo.example.com:443 '); // not ok as an array
```
Fixes #3190
2018-03-10 08:56:42 +01:00
Damien Arrachequesne
f4fc517e0f
[fix] Properly emit 'connect' when using a custom namespace ( #3197 )
...
When using a custom namespace with a middleware, the client did not receive the 'connect' event.
Fixes #3082
2018-03-10 08:51:22 +01:00
Damien Arrachequesne
33e0ba439d
[chore] Release 3.2.1
2018-03-09 13:04:00 +01:00
Thomas Hunkapiller
4349b648d4
[fix] Fix UTF-8 encoding in Firefox WebWorker ( #596 )
2018-03-09 13:01:02 +01:00
Jumper Chen
be61ba0a20
[docs] Add link to a Dart client implementation ( #2940 )
2018-03-01 00:23:45 +01:00
Damien Arrachequesne
c0c79f019e
[feat] Add support for dynamic namespaces ( #3187 )
2018-03-01 00:22:16 +01:00
Damien Arrachequesne
dea5214f21
[chore] Bump superagent and supertest versions ( #3186 )
2018-02-28 23:19:19 +01:00
Damien Arrachequesne
b1941d5dfe
[chore] Bump engine.io to version 3.2.0
2018-02-28 23:10:40 +01:00
Miguel Piedrafita
a23007a635
[docs] Update license year ( #3153 )
2018-02-28 23:03:02 +01:00
Damien Arrachequesne
f48a06c040
[feat] Add a 'binary' flag ( #3185 )
...
So that the call to the `has-binary` method can be skipped. Usage:
```
// with binary data
socket.binary(true).emit("binary", obj);
// without binary data
socket.binary(false).emit("string", obj);
// call to hasBin
socket.emit("guess", obj);
```
2018-02-28 23:00:16 +01:00
Damien Arrachequesne
0539a2c4fd
[test] Update travis configuration
2018-02-28 22:56:28 +01:00
Damien Arrachequesne
6e400188be
[chore] Release 3.2.0
2018-02-28 22:08:38 +01:00
Damien Arrachequesne
92c530da47
[fix] Properly handle JSON.stringify errors ( #84 )
...
JSON.stringify method throws when passed a circular object.
2018-02-28 22:07:33 +01:00
Damien Arrachequesne
dc4f475a45
[revert] Move binary detection to the parser
...
So that we can skip the binary check.
2018-02-28 21:55:26 +01:00
Damien Arrachequesne
f115039068
[test] Update travis configuration
2018-02-28 21:19:36 +01:00
Damien Arrachequesne
6b356eb4f0
[fix] Properly detect typed arrays ( #85 )
...
ArrayBuffer.isView method is not defined in IE10.
2018-02-28 21:18:16 +01:00
Damien Arrachequesne
d93ef6aeb9
[docs] Add some initialization examples in the README
2018-02-28 13:14:54 +01:00
Damien Arrachequesne
52ebe41832
[chore] Release 3.2.0
2018-02-28 01:31:24 +01:00
Damien Arrachequesne
bed6da66a1
[chore] Release 3.2.0
2018-02-28 01:31:00 +01:00
Damien Arrachequesne
8cde767f94
[test] Update travis configuration ( #594 )
2018-02-28 01:02:49 +01:00
Damien Arrachequesne
c6247514e2
[revert] Make generateId method async ( #535 )
...
That is a breaking change, which mandates a major bump.
2018-02-27 22:03:49 +01:00
Damien Arrachequesne
be3833bddd
[refactor] Use Buffer.concat([]) to construct an empty buffer ( #555 )
2018-02-27 22:03:31 +01:00
Damien Arrachequesne
65b1ad1b8a
[chore] Update default values for pingTimeout ( #551 )
...
`pingTimeout` now defaults to 5 seconds instead of 60 seconds.
2018-02-27 22:03:16 +01:00
Damien Arrachequesne
25c4dd115d
[test] Update travis configuration
2018-02-27 21:29:29 +01:00
Devlin Pajaron
c06ac071d0
[docs] Fix typo ( #3157 )
2018-02-25 09:26:24 +01:00
Damien Arrachequesne
52b09609db
[chore] Bump debug to version 3.1.0
2018-02-25 09:22:40 +01:00
Damien Arrachequesne
f9c06255de
[chore] Release 3.1.3
2018-02-25 09:20:05 +01:00
Damien Arrachequesne
f0a7df1059
[fix] Ensure packet data is an array ( #83 )
...
Related: https://github.com/socketio/socket.io/pull/3140
2018-02-25 09:05:16 +01:00
Damien Arrachequesne
88225783f7
[fix] Use ArrayBuffer.isView to check for typed arrays ( #82 )
2018-02-25 09:04:02 +01:00
Damien Arrachequesne
dd164e6a5f
[chore] Bump debug to version 3.1.0
2018-02-18 11:50:26 +01:00
Damien Arrachequesne
63e2528656
[chore] Release 3.1.5
...
Cherry-picked from 3.1.x branch.
2018-02-18 11:47:19 +01:00
Damien Arrachequesne
0071fdfff9
[chore] Release 3.1.5
2018-02-18 11:41:40 +01:00
Damien Arrachequesne
64ce48046f
fix: use try/catch when setting xhr.responseType ( #592 )
...
Some XHR implementations (like Firefox WebWorker, react-native and some Android 4.x versions) throw
an exception when setting xhr.responseType = 'arraybuffer' when xhr.readyState === 2 (which is
perfectly valid, spec-wise).
That commit fixes that behaviour by reverting some of the changes from
https://github.com/socketio/engine.io-client/pull/562 for those implementations.
Fixes #589
Closes #590
2018-02-18 11:35:00 +01:00
Damien Arrachequesne
3039017a58
[chore] Bump debug to version 3.1.0
2018-02-18 10:49:15 +01:00
Damien Arrachequesne
b1fa020675
[chore] Revert to ws as default wsEngine ( #550 )
...
Related:
- https://github.com/socketio/socket.io/issues/2956
- https://github.com/socketio/socket.io/issues/3100
Fixes #536
Fixes #516
Fixes #474
2017-12-29 22:39:34 +01:00
Damien Arrachequesne
d50bf873a6
[chore] Bump dependencies ( #549 )
...
- debug to version 3.1.0
- babel-eslint to version 8.0.2
- mocha to version 4.0.1
- superagent to version 3.8.1
2017-12-28 23:30:04 +01:00
Damien Arrachequesne
e867117708
[chore] Release 2.1.2
2017-12-28 23:05:40 +01:00
Damien Arrachequesne
eeb0653ebb
[refactor] Remove useless entry point ( #98 )
2017-12-28 22:50:15 +01:00
Damien Arrachequesne
275a9cbdb7
[test] Cache node_modules directory ( #97 )
2017-12-28 22:49:58 +01:00
Damien Arrachequesne
4eb4c9d2e4
[chore] Bump arraybuffer.slice to version 0.0.7 ( #96 )
2017-12-28 22:49:29 +01:00
Andrew Nesbitt
3b0aef0c7b
[chore] Bump accepts to version 1.3.4 ( #548 )
2017-12-27 22:52:58 +01:00
Andrew Nesbitt
7a3c267af2
[docs] Update test command in README ( #547 )
2017-12-27 22:51:35 +01:00
ven
092199bf0e
Merge pull request #74 from bripkens/master
...
Avoid memory leaks by removing event arrays
2017-11-29 00:29:16 +01:00
Damien Arrachequesne
112c304d7a
[chore] Bump uws to version 9.14.0 ( #545 )
2017-11-22 22:10:05 +01:00
Nick Tazelaar
73e579a501
[refactor] Add some checks to prevent usage of undefined properties ( #540 )
2017-11-22 22:04:54 +01:00
Damien Arrachequesne
5308f1c3a0
[chore] Release 3.1.4
2017-11-22 22:00:55 +01:00
Damien Arrachequesne
90f4d17b29
[chore] Release 3.1.4
2017-11-12 22:17:34 +01:00
Matt Grande
7fab005e28
[chore] Bump ws to version 3.3.1 ( #587 )
...
Related: https://nodesecurity.io/advisories/550
2017-11-12 22:10:48 +01:00
Luigi Pinca
3c59bed613
[chore] Bump ws to version 3.3.1 ( #543 )
...
Related: https://nodesecurity.io/advisories/550
2017-11-12 21:55:00 +01:00
Damien Arrachequesne
1c108a35e4
[chore] Release 2.0.4
2017-10-22 15:16:29 +02:00
efkan
2abb217e26
[feat] Make generateId method async ( #535 )
...
That change will allow to retrieve the client id asynchronously, from a database for example.
2017-10-20 08:00:29 +02:00
Thiago Santos
f333479080
[test] Use npm scripts instead of gulp ( #3078 )
2017-10-16 07:46:42 +02:00
Damien Arrachequesne
3ee803af72
[chore] Release 3.1.3
2017-10-11 07:59:04 +02:00
Damien Arrachequesne
4558b25922
[chore] Release 3.1.3
2017-10-11 07:58:19 +02:00
Damien Arrachequesne
a28776e8c8
[refactor] Update entry point in webpack configuration ( #586 )
...
Following #583 .
2017-10-11 07:34:51 +02:00
Damien Arrachequesne
42501c658e
[revert] [refactor] Remove usuless indexof dependency ( #582 )
...
This reverts commit 6043c49e91 .
2017-10-11 07:33:55 +02:00
Damien Arrachequesne
49362abcd0
[fix] Fix undefined remoteAddress when using uws ( #533 )
...
Fixes https://github.com/socketio/socket.io/issues/2982
2017-10-11 07:29:52 +02:00
Damien Arrachequesne
3c7778015b
[chore] Bump debug to version 2.6.9 ( #532 )
...
Related: https://nodesecurity.io/advisories/debug_regular-expression-denial-of-service
2017-10-10 08:47:27 +02:00
Damien Arrachequesne
8ce2432eda
[chore] Bump xmlhttprequest-ssl to version 1.5.4 ( #585 )
2017-10-08 10:19:40 +02:00
Damien Arrachequesne
4a551a12ed
[chore] Bump debug to version 2.6.9 ( #584 )
...
Related: https://nodesecurity.io/advisories/debug_regular-expression-denial-of-service
2017-10-08 10:19:21 +02:00
Damien Arrachequesne
d8fdf9b579
[refactor] Remove useless entry point ( #583 )
2017-10-08 10:00:35 +02:00
Damien Arrachequesne
6043c49e91
[refactor] Remove usuless indexof dependency ( #582 )
2017-10-08 10:00:09 +02:00
Damien Arrachequesne
5d29c1c0fd
[test] Remove IE6 and IE7 tests ( #581 )
...
Related: https://wiki.saucelabs.com/pages/viewpage.action?pageId=70068108
2017-10-08 09:23:08 +02:00
Carson McKinstry
3f611654f2
[docs] Fix a grammar mistake in the API docs ( #3076 )
2017-10-07 15:08:14 +02:00
Vyacheslav Aristov
e26b71c78e
[docs] Fix typo in API docs ( #3066 )
2017-10-07 14:36:02 +02:00
Damien Arrachequesne
bf24359ed5
[chore] Release 3.1.2
2017-09-27 23:35:42 +02:00
Damien Arrachequesne
1cbab3497f
[chore] Release 3.1.2
2017-09-27 23:33:45 +02:00
Matt Grande
0b26bc3fd8
[fix] Remove parsejson dependency ( #580 )
...
Related: https://nodesecurity.io/advisories/528 .
2017-09-27 22:33:04 +02:00
Damien Arrachequesne
a8ff89cd14
[chore] Release 3.1.1
2017-09-02 14:23:20 +02:00
Damien Arrachequesne
e0d720c7f7
[fix] Check whether 'Origin' header has invalid characters ( #531 )
...
Since the 'Origin' header is used as response header, a value with invalid characters would trigger
'The header content contains invalid characters' errors.
Closes #517
2017-09-02 14:16:14 +02:00
Mark Bjerke
38d639a5d0
[fix] Use explicit require of wsEngine ( #523 )
...
Because WebPack does not support variables in require statements.
Closes #522
2017-09-02 14:12:26 +02:00
st0ck53y
f9d3f06299
[docs] Fix wsEngine default value in README ( #526 )
...
Merge #459 (release 2.0.0) changed default wsEngine to uws. Updating README to reflect this change.
2017-09-02 13:35:12 +02:00
Damien Arrachequesne
fd20b91208
[test] Use npm scripts instead of gulp ( #530 )
2017-09-01 14:21:57 +02:00
Raúl Montes
7f63d38b2a
[fix] Fix undeterministic error in polling buffer processing ( #529 )
...
Ensure all assignments for chunks are Buffer when they should, even when onData is supposed to not
be called again.
2017-09-01 13:03:48 +02:00
Harutyun Amirjanyan
3dcc2d5cbd
[fix] Use workaround for setEncoding bug in node 0.10+ ( #527 )
...
The server often crashes with 'TypeError: "list" argument must be an Array of Buffers' errors,
which is caused by a bug in new versions of node, where setEncoding call does not work for messages
that are already in the queue.
This pull request makes sure that concat is never called in the non binary case, even if
setEncoding does not work properly.
2017-08-31 22:49:18 +02:00
Haku
3386e155a8
[docs] Actually prevent input from having injected markup in chat example ( #2987 )
2017-08-27 08:40:26 +02:00
Stanley288
3684d590f5
[docs] Use path.join instead of concatenating paths ( #3014 )
2017-08-26 07:44:25 +02:00
Damien Arrachequesne
dd69abbeee
[fix] Reset rooms object before broadcasting from namespace ( #3039 )
2017-08-26 07:36:26 +02:00
Damien Arrachequesne
1f0e64a6da
[fix] Do not throw when receiving an unhandled error packet ( #3038 )
2017-08-26 07:35:57 +02:00
Damien Arrachequesne
6874ea4952
[chore] release 1.1.1
2017-08-02 14:01:58 +02:00
Sam Roberts
bdb015a6c1
[chore] remove unused 'debug' dependency ( #52 )
2017-08-02 13:51:58 +02:00
Gabriel Hautclocq
9d170a75d0
[docs] Add io.emit in the cheat sheet ( #2992 )
2017-07-01 07:57:34 +02:00
Nicolas Coden
7199d1b6ef
[docs] Fix misnamed 'Object.keys' in API docs ( #2979 )
2017-06-19 12:16:26 +02:00
Damien Arrachequesne
bf7afb14cb
[docs] Update Webpack server example ( #2976 )
2017-06-15 23:40:43 +02:00
Damien Arrachequesne
410f5bcb8e
[docs] Update API documentation ( #2973 )
2017-06-13 23:05:26 +02:00
Damien Arrachequesne
65ece01135
[chore] Release 2.0.3
2017-06-12 14:05:46 +02:00
Damien Arrachequesne
db0c69969e
[fix] Reset rooms object before broadcasting ( #2970 )
...
It seems packets could be delivered to wrong room in some case, if the
_rooms array was not reset before the next emit.
2017-06-12 14:01:35 +02:00
Damien Arrachequesne
94df7bcdfd
[fix] Fix middleware initialization ( #2969 )
...
Fix "TypeError: Cannot convert undefined or null to object" when a
middleware is added before the engine is properly attached.
2017-06-12 14:00:48 +02:00
Ra'Shaun Stovall
9a014e2df4
[docs] Update slack badge ( #2961 )
...
Update badge to https://slackin-socketio.now.sh/badge.svg
2017-06-08 12:28:56 +02:00
Damien Arrachequesne
2b10f1b3a4
[docs] Update webpack example ( #2960 )
2017-06-03 13:53:03 +02:00
Damien Arrachequesne
a10dc8d92d
[chore] Release 2.0.2
2017-06-01 14:01:24 +02:00
Damien Arrachequesne
2b216902e1
[fix] Fix timing issues with middleware ( #2948 )
...
Using a middleware could previously lead to a connecting client
receiving a connect event from the server before the server triggers
its own connect event.
2017-05-22 13:01:59 +02:00
Damien Arrachequesne
b949abc6e1
[chore] Release 3.1.1
2017-05-19 08:49:23 +02:00
Damien Arrachequesne
11f3fddc6d
[test] Launch browser tests on localhost by default ( #571 )
2017-05-19 08:43:31 +02:00
Damien Arrachequesne
832b8fc6d9
[chore] Release 2.0.1
2017-05-09 01:40:46 +02:00
Damien Arrachequesne
a0056904c1
[fix] Update path of client file ( #2934 )
2017-05-09 01:36:40 +02:00
Damien Arrachequesne
3367eaa948
[chore] Release 2.0.0
2017-05-09 01:09:19 +02:00
Damien Arrachequesne
6c0705f733
[docs] Add an example of custom parser ( #2929 )
2017-05-09 00:46:01 +02:00
Damien Arrachequesne
1980fb4a03
[chore] Merge history of 1.7.x and 0.9.x branches ( #2930 )
2017-05-09 00:45:17 +02:00
Xavier Damman
0d07c47f81
[chore] Added backers and sponsors on the README ( #2933 )
2017-05-09 00:41:46 +02:00
Damien Arrachequesne
a086588747
[chore] Bump dependencies ( #2926 )
2017-04-28 22:33:40 +02:00
Damien Arrachequesne
753c180fa5
[chore] Unpin debug version ( #568 )
...
This reverts commit be73a9c31a .
2017-04-28 22:04:23 +02:00
Damien Arrachequesne
e76e035873
[fix] Fix null payload when aborting connection ( #503 )
2017-04-28 13:46:50 +02:00
Damien Arrachequesne
935b155c21
[chore] Release 3.1.0
2017-04-28 00:53:24 +02:00
Damien Arrachequesne
fce140a205
[chore] Release 3.1.0
2017-04-28 00:51:21 +02:00
Damien Arrachequesne
32fe4e5558
[chore] Bump engine.io-parser to version 2.1.1 ( #566 )
2017-04-28 00:45:34 +02:00
Damien Arrachequesne
be73a9c31a
[chore] Pin debug to version 2.6.4 ( #567 )
2017-04-28 00:44:36 +02:00
Damien Arrachequesne
f9c3549dd1
[chore] Release 3.1.2
2017-04-27 23:46:00 +02:00
Damien Arrachequesne
82ed65f7c4
[test] Add test for maxHttpBufferSize option with websocket ( #499 )
2017-04-27 23:40:38 +02:00
Damien Arrachequesne
519fb8d596
[chore] Bump uws to version 0.14.4 ( #501 )
2017-04-27 23:37:26 +02:00
Damien Arrachequesne
425391ace9
[chore] Bump has-binary2 to version 1.0.2 ( #70 )
2017-04-27 23:06:57 +02:00
Damien Arrachequesne
e2422c300e
[chore] Release 2.1.1
2017-04-27 23:05:31 +02:00
Damien Arrachequesne
f5819ccf58
[chore] Bump has-binary2 to version 1.0.2 ( #93 )
2017-04-27 23:03:54 +02:00
Damien Arrachequesne
b4f849a6fe
[fix] Fix Blob detection for iOS 8/9 ( #69 )
2017-04-26 21:43:22 +02:00
Damien Arrachequesne
87b06ad362
[feat] Move binary detection to the parser ( #2923 )
2017-04-25 00:38:07 +02:00
Damien Arrachequesne
eaee5d58c4
[chore] Release 3.1.1
2017-04-25 00:22:17 +02:00
Damien Arrachequesne
2f31a4e8f7
[fix] Ensure globals are functions before running instanceof ( #68 )
...
Following https://github.com/socketio/has-binary/pull/4 .
2017-04-25 00:21:17 +02:00
Damien Arrachequesne
7aad0d6da1
[chore] Bump engine.io-parser to version 2.1.0 ( #565 )
2017-04-24 23:50:37 +02:00
Damien Arrachequesne
8e5465de2f
[chore] Release 3.1.0
2017-04-24 23:33:46 +02:00
Damien Arrachequesne
403b858a8d
[chore] Bump debug to version 2.6.4 ( #67 )
2017-04-24 23:32:13 +02:00
Damien Arrachequesne
7edb34ed4e
[chore] Bump dependencies ( #500 )
...
- debug to version 2.6.4
- engine.io-parser to version 2.1.0
- ws to version 2.3.1
2017-04-24 23:22:35 +02:00
Damien Arrachequesne
f44256c523
[feat] Move binary detection to the parser ( #66 )
2017-04-24 23:20:51 +02:00
Damien Arrachequesne
cfb2775cc2
[chore] Bump ws to version 2.3.1 ( #564 )
2017-04-24 22:02:03 +02:00
Damien Arrachequesne
f7be578428
[chore] Bump debug to version 2.6.4 ( #563 )
2017-04-24 22:01:46 +02:00
Damien Arrachequesne
2c233681ef
[chore] Release 2.1.0
2017-04-24 14:09:33 +02:00
Damien Arrachequesne
5d6ba84292
[chore] Drop support for old nodejs versions (0.10 & 0.12) ( #92 )
2017-04-24 13:57:00 +02:00
Damien Arrachequesne
bffb63ebfa
[revert] "[fix] Enable to utf8-decode string payloads ( #88 )" ( #91 )
...
This reverts commit 278a7e45e7 .
2017-04-24 13:53:17 +02:00
Tom Atkinson
3e0334645b
[refactor] Set responseType based on 'Content-Type' header ( #562 )
2017-04-24 13:04:26 +02:00
Caleb
199eec648e
[docs] Replace non-breaking space with proper whitespace ( #2913 )
2017-04-19 22:19:57 +02:00
Damien Arrachequesne
51d752911c
[chore] Release 3.0.0
2017-04-06 00:04:13 +02:00
Damien Arrachequesne
07d57d553f
[chore] Release 3.0.0
2017-04-06 00:00:19 +02:00
Damien Arrachequesne
7a72404e9b
[chore] Bump dependencies ( #560 )
2017-04-05 23:57:44 +02:00
Damien Arrachequesne
fb7e2be552
[chore] Bump dependencies ( #498 )
2017-04-05 23:57:17 +02:00
Damien Arrachequesne
057f67f2ab
[chore] Release 2.0.3
2017-04-05 23:25:16 +02:00
Damien Arrachequesne
528345470c
[chore] Use has-binary2 ( #90 )
2017-04-05 23:17:20 +02:00
Damien Arrachequesne
817adca41d
[chore] Release 3.0.0
2017-04-03 23:51:53 +02:00
Damien Arrachequesne
e295b9b1c2
[chore] Bump isarray to version 2.0.1 ( #65 )
2017-04-03 23:48:59 +02:00
Jimmy Karl Roland Wärting
e39f5a8c6a
[chore] Use native JSON and drop support for older nodejs versions ( #64 )
2017-04-03 23:15:24 +02:00
Faraz Patankar
f1b39a6b1d
[docs] Update emit cheatsheet ( #2906 )
2017-04-03 07:20:38 +02:00
minchao
ec321241a5
[docs] Fix the Engine.IO url format ( #28 )
...
The <query string> was not displayed.
2017-04-03 07:14:17 +02:00
Chua Kiem Fai
57b7e5be84
[chore] Bump uws to version 0.14.1 ( #497 )
...
As all older versions are now unpublished.
2017-03-30 07:28:31 +02:00
Damien Arrachequesne
240b154960
[docs] Explicitly document that Server extends EventEmitter ( #2874 )
2017-03-29 14:13:04 +02:00
efkan
c5b7738730
[docs] Add server.engine.generateId attribute ( #2880 )
2017-03-29 13:52:07 +02:00
Simen Bekkhus
03f3bc9ab3
[docs] Fix wrong space character in README ( #2900 )
2017-03-27 13:15:19 +02:00
Damien Arrachequesne
beb7090318
[fix] Default rejectUnauthorized to true ( #558 )
2017-03-24 13:00:58 +01:00
Damien Arrachequesne
82f3f61920
[chore] Drop support for old nodejs versions (0.10 & 0.12) ( #557 )
2017-03-23 07:31:50 +01:00
Damien Arrachequesne
ec5d20897a
[chore] Merge 2.1.x branch ( #494 )
2017-03-22 07:50:49 +01:00
Damien Arrachequesne
4c021d387c
[chore] Release 2.1.1 ( #556 )
2017-03-22 07:37:33 +01:00
Damien Arrachequesne
56bf176bc6
[chore] Bump engine.io-parser to version 2.0.2 ( #555 )
2017-03-22 07:24:53 +01:00
Damien Arrachequesne
523dcd2003
[chore] Release 2.0.2 ( #89 )
2017-03-21 14:40:00 +01:00
Damien Arrachequesne
278a7e45e7
[fix] Enable to utf8-decode string payloads ( #88 )
...
That will allow clients receiving the xhr payload with
responseType = 'arraybuffer' to properly decode the message, which is
not sent as binary by the backend anymore since 292c00c (#85 ).
2017-03-21 14:35:00 +01:00
SwhGo_oN
e40accf7a1
[docs] Fix documentation for 'connect' event ( #2898 )
2017-03-19 00:33:59 +01:00
Daniel J. O'Quinn
120611fbdb
[chore] Bump ws to version 2.2.0 ( #487 )
2017-03-11 09:43:20 +01:00
Damien Arrachequesne
b436ca3887
[chore] Drop support for old nodejs versions (0.10 & 0.12) ( #493 )
2017-03-11 09:41:48 +01:00
Damien Arrachequesne
0d2cc68ab9
[chore] Release 2.1.0 ( #550 )
2017-03-11 09:18:49 +01:00
Damien Arrachequesne
783e0591fa
[chore] Release 2.1.0 ( #492 )
2017-03-11 09:18:22 +01:00
Damien Arrachequesne
3ba6fa186e
[chore] Bump engine.io-parser to version 2.0.1 ( #549 )
2017-03-11 09:05:02 +01:00
Damien Arrachequesne
81ef0bc939
[feat] Add an option to toggle handling of OPTIONS requests ( #491 )
...
By setting `handlePreflightRequest` to false, OPTIONS request are no
longer processed by engine.io. A function can also be provided.
2017-03-11 09:04:00 +01:00
Samuel
8f04149eee
[chore] Bump concat-stream to version 1.5.2 ( #548 )
...
The package concat-stream is known to be vulnerable prior 1.5.2.
Source: https://snyk.io/vuln/npm:concat-stream:20160901
2017-03-11 08:45:34 +01:00
Damien Arrachequesne
09465969a8
[chore] Bump engine.io-parser to version 2.0.1 ( #490 )
2017-03-11 07:23:06 +01:00
Damien Arrachequesne
b723caef4b
[chore] Bump uws to version 0.13.0 ( #489 )
2017-03-11 07:22:50 +01:00
stormbkk87
151976594e
[feat] Allow to set the protocols for the websocket transport ( #546 )
...
Some WebSocket implementations require the protocols parameter or will
fail connection.
2017-03-06 13:07:19 +01:00
Damien Arrachequesne
6c597956cb
[chore] Release 2.0.1 ( #86 )
2017-03-06 12:28:04 +01:00
Damien Arrachequesne
292c00c183
[fix] Encode string payloads as strings even if binary supported ( #85 )
...
This reverts commit 44c7aa5 , which caused string payloads to be encoded
as binary (so that huge string payloads were needlessly UTF-8-encoded).
Related: https://github.com/socketio/socket.io/issues/2872
2017-03-06 12:24:11 +01:00
Damien Arrachequesne
01a4623613
[feat] Allow to join several rooms at once ( #2879 )
2017-02-26 09:15:32 +01:00
Damien Arrachequesne
c6f7baec3b
[chore] Release 1.1.0 ( #50 )
2017-02-26 08:38:04 +01:00
Damien Arrachequesne
f627cd2db1
[feat] Add addAll method ( #49 )
...
That will allow to efficiently join a list of rooms.
2017-02-26 08:22:54 +01:00
Damien Arrachequesne
2d5b0026c5
[docs] Add webpack build example ( #2828 )
2017-02-22 12:48:46 +01:00
Damien Arrachequesne
5ae06e6285
[chore] Bump socket.io-adapter to version 1.0.0 ( #2867 )
2017-02-17 07:33:43 +01:00
Damien Arrachequesne
b983377969
[chore] Release 1.0.0 ( #48 )
2017-02-16 22:26:40 +01:00
Damien Arrachequesne
40764bb806
[feat] Remove the socket.io-parser dependency ( #47 )
...
That will allow to use a custom parser (see https://github.com/socketio/socket.io/pull/2829 ).
2017-02-16 22:16:21 +01:00
sgress454
4d8f68c7dc
[chore] Bump engine.io to version 2.0.2 ( #2864 )
...
Includes the following (from engine.io changelog):
* [fix] Initialize the WebSocket server in the Server constructor (#476 )
* [chore] Bump ws to version 1.1.2 (vulnerability fix) (#480 )
2017-02-16 22:01:53 +01:00
Gatsbill
fd086d757e
[refactor] Remove useless self var ( #45 )
2017-02-16 13:36:19 +01:00
Damien Arrachequesne
be4c9067b5
[chore] Release 2.0.2 ( #541 )
2017-02-16 07:41:13 +01:00
Damien Arrachequesne
bd1e81ec3d
[chore] Release 2.0.2 ( #481 )
2017-02-16 07:40:57 +01:00
Paul Robello
01e36b4dae
[chore] Bump ws to version 1.1.2 (vulnerability fix) ( #480 )
2017-02-16 07:19:52 +01:00
Paul Robello
144a7fdc78
[chore] Bump ws to version 1.1.2 (vulnerability fix) ( #539 )
2017-02-16 07:18:03 +01:00
Tim Ruffles
5b79ab1af1
[docs] Update the wording to match the code example ( #2853 )
2017-02-13 23:52:07 +01:00
Damien Arrachequesne
54ff591b07
[feature] Merge Engine.IO and Socket.IO handshake packets ( #2833 )
2017-02-01 15:28:14 +01:00
H3rby7
e1facd5155
[docs] Small addition to the Express Readme Part ( #2846 )
2017-02-01 15:23:56 +01:00
Denis Yaremov
22c28a24b7
[fix] Fix extraHeaders option in browser ( #536 )
2017-02-01 14:46:07 +01:00
Damien Arrachequesne
f756bd6add
[chore] Release 2.0.1 ( #534 )
2017-01-30 16:23:56 +01:00
Damien Arrachequesne
0cbf3631f9
[chore] Release 2.0.1 ( #477 )
2017-01-30 16:21:35 +01:00
Luigi Pinca
cdb487dbdc
[fix] Initialize the WebSocket server in the Server constructor ( #476 )
2017-01-30 15:52:00 +01:00
Damien Arrachequesne
3b92cc2b26
[feature] Allow the use of custom parsers ( #2829 )
2017-01-24 07:10:19 +01:00
Damien Arrachequesne
3d695c60f1
[chore] Bump engine.io to version 2.0.0 ( #2832 )
2017-01-23 23:16:51 +01:00
Damien Arrachequesne
0023ce3e95
[chore] Release 2.0.0 ( #533 )
2017-01-22 22:48:05 +01:00
Damien Arrachequesne
9b4e983a0a
[chore] Release 2.0.0 ( #472 )
2017-01-22 22:47:41 +01:00
Damien Arrachequesne
387be0566b
[chore] Fix Saucelabs tests ( #532 )
2017-01-22 21:31:24 +01:00
Damien Arrachequesne
274efa120e
[feature] Add an initialPacket option ( #471 )
2017-01-22 07:51:27 +01:00
Antoine LUCAS
3b5f4339a7
[fix] Use path.resolve by default and require.resolve as a fallback ( #2797 )
...
Browserify doesn't support require.resolve, and as a consequence, makes nexe fail the compilation. This PR attempts to get the path of the socket.io-client file via path.resolve and falls back to the original require.resolve if this file cannot be found.
2017-01-22 07:21:45 +01:00
Damien Arrachequesne
23c9dd34d5
[docs] Add a 'Features' section in the README ( #2824 )
2017-01-16 23:16:46 +01:00
Damien Arrachequesne
e28b475428
[docs] Add httpd cluster example ( #2819 )
2017-01-16 08:33:22 +01:00
Damien Arrachequesne
f7eed6e397
[docs] Add haproxy cluster example ( #2818 )
2017-01-16 08:33:09 +01:00
Damien Arrachequesne
988852986a
[docs] Add nginx cluster example ( #2817 )
2017-01-16 08:32:53 +01:00
Damien Arrachequesne
8eaba085de
[docs] Implement whiteboard example ( #2810 )
2017-01-16 08:32:33 +01:00
Tom Atkinson
2258a6a6e3
[fix] Properly close the connection on error ( #2681 )
2017-01-16 08:29:11 +01:00
Tom Atkinson
ad658b8cc2
[perf] Use shared instance of the encoder ( #2825 )
2017-01-16 08:25:52 +01:00
Tom Atkinson
e24434a0a0
[perf] Reset properties instead of deleting them ( #2826 )
...
Deleting properties is a v8 'optimization killer'
2017-01-16 08:23:22 +01:00
Damien Arrachequesne
fde5ad6c0e
[docs] Remove deprecated flashsocket transport ( #26 )
2017-01-12 17:09:06 +01:00
Damien Arrachequesne
d90240b48f
[docs] Add missing documentation for pingInterval ( #25 )
2017-01-12 17:08:31 +01:00
Damien Arrachequesne
b754cff2b4
[docs] Fix documentation for local flag ( #2816 )
2017-01-10 18:10:56 +01:00
Damien Arrachequesne
706ca2a0c1
[docs] Add emit cheatsheet ( #2815 )
2017-01-10 17:54:09 +01:00
Damien Arrachequesne
accd0bd64a
[docs] Add pingInterval/pingTimeout/transports options in the API documentation ( #2814 )
2017-01-10 17:50:38 +01:00
Damien Arrachequesne
131a2befec
[docs] Add an example for socket.join() method ( #2813 )
2017-01-10 17:46:54 +01:00
Damien Arrachequesne
0be865f614
[docs] Fix a typo on clients method in the API documentation ( #2812 )
2017-01-10 17:41:31 +01:00
Damien Arrachequesne
01b262fbe0
[chore] Update issue template with fiddle ( #2811 )
2017-01-10 10:16:27 +01:00
Bella
f260439933
[chore] Update copyright year LICENSE to 2017 ( #2803 )
2017-01-06 17:11:03 +01:00
Miguel Grinberg
f338f93732
[docs] Corrected description of ping and pong packets ( #21 )
...
Section "Anatomy of an Engine.IO session" incorrectly reverses the roles of client and server when it discusses 'ping' and 'pong' packets.
2017-01-06 07:29:44 +01:00
Konstantin Zolotarev
a3496ed6eb
[fix] Discard packets when socket is closed ( #469 )
2017-01-05 21:01:37 +01:00
Matt90o
57ec952ff7
[docs] Fix spelling mistake ( #466 )
...
Edited a minor spelling mistake. 'Comparesses' -> 'Compresses'
2017-01-04 06:39:47 +01:00
Andrea Accardo
e04de3c2c8
[docs] Fix wrong argument name in API.md ( #2802 )
2017-01-04 06:37:12 +01:00
Damien Arrachequesne
9ce9a98dd0
[chore] Release 2.3.2 ( #59 )
2016-12-30 22:43:07 +01:00
Gatsbill
2314c10f4f
[perf] Small optimisations ( #57 )
2016-12-30 22:25:49 +01:00
Damien Arrachequesne
5ac691e7e4
[chore] Update zuul config to speed up tests in browser ( #58 )
2016-12-30 17:54:42 +01:00
Damien Arrachequesne
54c0438e31
[chore] Actually run tests in Saucelabs ( #527 )
2016-12-30 17:18:15 +01:00
Damien Arrachequesne
b1baf8d998
[feature] Allow extraHeaders to be set for browser clients in XHR requests ( #519 )
2016-12-30 17:08:38 +01:00
Damien Arrachequesne
c01b9a8560
[feature] Add support for per transport options ( #518 )
2016-12-30 16:46:36 +01:00
Damien Arrachequesne
176d7abd02
[chore] Bump engine.io-parser to version 2.0.0 ( #525 )
2016-12-30 16:24:12 +01:00
Damien Arrachequesne
bbffbd5db9
[chore] Bump engine.io-parser to version 2.0.0 ( #463 )
2016-12-30 16:23:59 +01:00
Ian Bro
a27802e19e
[fix] Prevent null from being accepted as argument ( #2606 )
2016-12-30 16:22:16 +01:00
Gatsbill
c46d4481bd
[perf] micro-optimisations ( #2793 )
2016-12-30 16:18:09 +01:00
bananaapple
d82190016f
[docs] Add install script on Readme.md ( #2780 )
2016-12-30 16:11:26 +01:00
Damien Arrachequesne
255b845596
[docs] API documentation ( #2784 )
2016-12-30 16:10:54 +01:00
Damien Arrachequesne
1e2323092b
[chore] Update zuul config to speed up tests ( #526 )
2016-12-23 13:58:28 +01:00
Damien Arrachequesne
36ba01da98
[chore] release 2.0.0
2016-12-23 11:06:36 +01:00
Gatsbill
89a465a4b8
[perf] Micro optimisations ( #84 )
2016-12-23 07:19:13 +01:00
Damien Arrachequesne
f72f6f3fa6
[fix] allowRequest failures now return 403 Forbidden ( #452 )
2016-12-22 08:41:51 +01:00
Damien Arrachequesne
d1c2680ca9
[fix] Sanitize strings by removing lone surrogates ( #82 )
2016-12-21 22:01:19 +01:00
Billouboq
2d83f9da17
[perf] Use strict equality where possible ( #77 )
2016-12-21 09:52:23 +01:00
Damien Arrachequesne
ebf92a5097
[style] Minor style changes ( #83 )
2016-12-21 09:31:14 +01:00
Damien Arrachequesne
181acef657
[fix] Fix double utf8 encoding for payloads ( #81 )
2016-12-21 09:15:07 +01:00
Damien Arrachequesne
339d367267
[chore] Update zuul config to speed up tests ( #76 )
2016-12-21 08:59:06 +01:00
Damien Arrachequesne
c2d0a08d7f
[refactor] Remove useless variable ( #55 )
2016-12-17 03:34:00 +01:00
Damien Arrachequesne
aed82572ba
[chore] Bump dependencies ( #56 )
...
- bump debug to version 2.3.3
- bump component-emitter to version 1.2.1
- bump benchmark to version 2.1.2
- bump expect.js to version 0.3.1
- bump mocha to version 3.2.0
- bump zuul to version 3.11.1
2016-12-17 03:33:44 +01:00
Gatsbill
9072faa1e1
[refactor] Remove unused var ( #53 )
2016-12-17 02:33:05 +01:00
Gatsbill
97721957b9
[refactor] Use strict equality when possible ( #52 )
2016-12-17 02:32:21 +01:00
Jérémy Lal
e144dc17ad
[test] Fix test failure by increasing pingTimeout ( #461 )
2016-12-12 22:02:54 +01:00
Jérémy Lal
7e50871c41
[chore] Use uws as default wsEngine, and ws as fallback ( #459 )
2016-12-12 22:02:03 +01:00
Damien Arrachequesne
1f59e4526a
[chore] Release 1.7.2 ( #2783 )
2016-12-11 02:04:21 +01:00
Damien Arrachequesne
0a7afa85ea
[chore] Bump engine.io to version 1.8.2 ( #2782 )
2016-12-11 01:27:19 +01:00
Damien Arrachequesne
70262f0e16
[chore] Release 1.8.2 ( #524 )
2016-12-11 00:26:02 +01:00
Damien Arrachequesne
10e3802051
[chore] Release 1.8.2 ( #460 )
2016-12-11 00:25:28 +01:00
Damien Arrachequesne
79955091f5
[fix] Add proper response when handleUpgrade fails ( #458 )
...
When the `verify` method fails, the current implementation closes the
connection immediately, which is understood by some proxy (such as
nginx) as if the server was not available (resulting in "upstream
prematurely closed connection while reading response header from
upstream" error). That commit make sure a proper response is sent
before closing the connection.
2016-12-10 22:01:18 +01:00
Damien Arrachequesne
b530bb039d
[chore] Bump engine.io-parser to version 1.3.2 ( #523 )
2016-12-08 01:12:17 +01:00
Damien Arrachequesne
dd854a8803
[test] Use explicit versions for travis tests ( #457 )
2016-12-08 01:06:14 +01:00
Damien Arrachequesne
b5292c7826
[refactor] Remove deprecated code used for nodejs v0.8 ( #456 )
2016-12-08 01:01:10 +01:00
Damien Arrachequesne
7bbe456688
[chore] Bump engine.io-parser to version 1.3.2 ( #455 )
2016-12-08 00:55:15 +01:00
Damien Arrachequesne
77975d054a
[chore] release 1.3.2 ( #79 )
2016-12-07 22:21:41 +01:00
Damien Arrachequesne
494eca0be0
[chore] Bump dependencies ( #78 )
...
- bump after to version 0.8.2
- bump has-binary to version 0.1.7
- bump mocha to version 3.2.0
- bump zuul to version 3.11.1
2016-12-07 22:15:59 +01:00
Gatsbill
01c6a12de5
[perf] websocket optimisation ( #453 )
2016-12-05 23:59:24 +01:00
Dominik Paľo
8450d03f06
[docs] Rename ServerRequest to IncomingMessage ( #448 )
...
`http.ServerRequest` did refer to the HTTP API of Nodejs prior to v0.10
2016-12-05 23:28:01 +01:00
Edgar Hipp
a1a0016512
[chore] Bump base64id to version 1.0.0 ( #451 )
2016-12-01 20:46:57 +01:00
Serhii Sol
1e31769062
[fix] Fixes socket.use error packet ( #2772 )
...
* fix(socket): Fixes socket.use error packet which drops nodejs due to nuances of Nodejs' EventEmitter
* fix(socket): Fixes missing error event on socket
* fix(socket): test fix, should listen for clientSocket instead of server socket
* minor update
2016-12-01 02:25:13 +01:00
Damien Arrachequesne
797c9a3498
[chore] Release 1.7.1 ( #2768 )
2016-11-28 00:06:18 +01:00
Damien Arrachequesne
4f93a0b429
[chore] Release 1.7.0 ( #2767 )
2016-11-27 08:27:39 +01:00
Damien Arrachequesne
3c98130f15
[chore] Update client location and serve minified file ( #2766 )
...
Following https://github.com/socketio/socket.io-client/pull/1025 , the
output files are now generated in the dist directory.
2016-11-27 08:24:27 +01:00
Damien Arrachequesne
9c23308c6e
[chore] Bump engine.io to version 1.8.1 ( #2765 )
2016-11-27 07:55:02 +01:00
Damien Arrachequesne
880393367c
[chore] Release 1.8.1 ( #522 )
2016-11-27 07:16:28 +01:00
Damien Arrachequesne
767e9aa081
[chore] Release 1.8.1 ( #450 )
2016-11-27 07:15:36 +01:00
Tal Beja
955e5e0d91
[feature] Add a local flag ( #2628 )
...
That new flag will prevent the adapter (redis) from publishing the emit to the pub/sub server.
When several instances of a server receive the same event from a third party (not from a client), each server instance broadcasts the event to all his clients. With the local flag, and the change in the redis adapter, each server instance send the event only to his client, so each client receive only one unique event.
2016-11-24 23:44:52 +01:00
Zhu Liang
0ef55b26d4
[feature] serve sourcemap for socket.io-client ( #2482 )
2016-11-24 23:39:43 +01:00
Robbie Ferguson
4d8e2d342c
[docs] Fixed grammar issues in the README.md ( #2159 )
...
Added a few periods and commas which were missing. Pluralised the word
'parameter' where it was incorrectly specified to singular on line 281.
Very minor edit. No source code changed.
2016-11-23 15:05:15 +01:00
Jérémy Lal
d48f848bb4
[docs] Comment connected socket availability for adapters ( #2081 )
2016-11-23 15:00:07 +01:00
Damien Arrachequesne
cd2ff466fc
[fix] Only add defined callbacks to the stack ( #447 )
...
Before that commit, undefined callbacks were also added to the array,
which could lead to 'Maximum call stack size exceeded' error when
flush() method was called.
Fixes #399
2016-11-21 22:41:47 +01:00
Damien Arrachequesne
57b386385e
[chore] Release 1.6.0 ( #2757 )
2016-11-20 04:26:56 +01:00
Damien Arrachequesne
9e7567daee
[chore] Bump socket.io-adapter to version 0.5.0 ( #2756 )
2016-11-20 03:51:57 +01:00
Damien Arrachequesne
2e36799b17
[chore] Bump engine.io to version 1.8.0 ( #2755 )
2016-11-20 03:50:32 +01:00
Damien Arrachequesne
9bb5e9de2f
[chore] Bump debug to version 2.3.3 ( #2754 )
2016-11-20 03:42:09 +01:00
Damien Arrachequesne
c6503589ed
[chore] Release 1.8.0 ( #446 )
2016-11-20 03:25:58 +01:00
Damien Arrachequesne
6d7d66401b
[chore] Release 1.8.0 ( #521 )
2016-11-20 03:25:46 +01:00
Damien Arrachequesne
5ecd3da8b0
[chore] Bump debug to version 2.3.3 ( #520 )
2016-11-20 03:18:58 +01:00
Damien Arrachequesne
ab2ca22f8f
[chore] Bump debug to version 2.3.3 ( #445 )
2016-11-20 03:07:11 +01:00
Damien Arrachequesne
9a621ec592
[chore] Release 0.5.0 ( #44 )
2016-11-20 01:57:13 +01:00
Damien Arrachequesne
ffadfa600f
[feature] Add clientRooms method ( #41 )
...
That method returns the list of rooms a given socket has joined. It is
intended to be used by other adapters, without them needing to access
the innards of the adapter.
2016-11-20 01:52:21 +01:00
Damien Arrachequesne
915af31c2c
[chore] Bump debug to version 2.3.3 ( #42 )
2016-11-20 01:51:03 +01:00
Damien Arrachequesne
35987a5c0f
[chore] Bump socket.io-parser to version 2.3.1 ( #43 )
2016-11-20 01:48:52 +01:00
Luca Tabone
ff2c15de68
[perf] Minor code optimizations ( #2219 )
2016-11-18 02:03:06 +01:00
Damien Arrachequesne
a483658607
[example] Add disconnection/reconnection logs to the chat example ( #2675 )
2016-11-18 01:52:45 +01:00
Julian Grinblat
4c5dbd8824
[fix] Don't drop query variables on handshake ( #2745 )
...
Parameters passed during handshake, such as tokens, were being dropped.
2016-11-16 01:17:19 +01:00
Julian Grinblat
7f659a50d3
[fix] Don't delete ws when closing the server ( #444 )
2016-11-15 22:01:20 +01:00
mhmeadows63
e14a10b7ce
[feature] add support for Server#close(callback) ( #2748 )
2016-11-15 21:52:56 +01:00
Alex
5a123beea5
[feature] Add support for socket middleware ( #2306 )
2016-11-05 01:51:29 +01:00
Philip YoonShin
2ed5f0f5fb
[chore] Update year to 2016 ( #2456 )
2016-11-05 01:19:15 +01:00
Julian Grinblat
e9f980c475
[feature] Add support for all event emitter methods ( #2601 )
2016-11-05 01:14:21 +01:00
Jamie Davis
6f44f3a8ef
[test] Fix leaking clientSocket ( #2721 )
...
Test 'should be able to close sio sending a port' defined a clientSocket
but didn't set 'reconnection: false'.
Now, the default behavior of a clientSocket is 'reconnection: true'.
As a result, the clientSocket was "leaked" from the test case
and seemed to intermittently connect to the servers in subsequent
test cases. This would cause other tests to timeout unexpectedly.
It's not clear to me why this would happen, since the test case
assigns a unique port number to the socket.
However, if you go into socket.io-client and assign and log
unique IDs to each socket, then you'll see that this clientSocket
shows up in other test cases if the reconnectionDelay strikes
unluckily.
2016-11-05 01:06:04 +01:00
dlimkin
60780e2fb7
[feature] Fix cookiePath empty bug and add cookieHttpOnly option ( #423 )
2016-11-03 01:29:40 +01:00
Damien Arrachequesne
7c33b42153
[test] fix tests for NodeJS v7 ( #441 )
2016-11-03 01:28:01 +01:00
Damien Arrachequesne
75b7fdacc1
[chore] Speed up lint by avoiding '**/*.js' matching pattern ( #517 )
2016-10-31 22:34:30 +01:00
Damien Arrachequesne
402fa0628a
[chore] update dependencies ( #516 )
2016-10-31 22:34:03 +01:00
Diga Widyaprana
7cbdd5e5d9
[style] Add ESlint ( #385 )
2016-10-31 02:40:58 +01:00
magicdawn@qq.com
9cfc626bf7
[feature] add localAddress option ( #487 )
2016-10-31 01:34:19 +01:00
Daniel Schlosser
8be5864169
[feature] Added flag forceNode to override the normal behavior of prefering Browser based implementations. ( #469 )
2016-10-30 23:49:55 +01:00
Ben Ripkens
3427e744e1
Enable definition of timeouts for xhr-polling
...
The definition of timeouts is desirable to cancel long outstanding
requests automatically via browser mechanisms. Specifically, it can
happen that lots of pending XHR requests are scheduled, but are never
purged by the browser due to the lack of a timeout definition.
2016-10-30 22:06:00 +01:00
Atanas Palavrov
04fc0f3677
[feature] Loading client script on demand. ( #2567 )
...
Support for the serving of the client script mess with packagers like
browserify, webpack. Especcialy in projects where it is not used at all.
This patch is workaround to avoid that problem in the cases when client
script is not served.
2016-10-30 14:22:00 +01:00
Kenton Varda
d026c00d05
[fix] Make ETag header comply with standard. ( #2603 )
...
The standard says that an ETag must be surrounded in double quotes:
https://tools.ietf.org/html/rfc7232#section-2.3
Although browsers tend to be lenient, omitting the quotes can confuse/break some kinds of proxies and other tools that demand compliant formatting. For example, Sandstorm.io enforces strict HTTP usage for security reasons and will block responses with invalid ETags.
2016-10-30 14:19:00 +01:00
Tony Kovanen
cea0dffdef
Merge pull request #514 from jamo/fix/similar-type-comparision
...
Fixed regression creating connection over wss from node
2016-10-28 10:46:30 +03:00
Jarmo Isotalo
a38551f45f
Fixed regression creating connection over wss from node
2016-10-28 04:14:52 +03:00
Tony Kovanen
e5aec21401
Merge pull request #513 from jamo/fix/type-comparision
...
Fixed regression creating connection over https from node
2016-10-28 03:42:10 +03:00
Jarmo Isotalo
9abcb152da
Fixed regression creating connection over https from node
2016-10-28 02:58:42 +03:00
Kim Min-Ho
e008ffeba5
[style] Fix some typos ( #439 )
2016-10-25 00:58:01 +02:00
Damien Arrachequesne
fdf64cc38f
[chore] Release 1.5.1 ( #2735 )
2016-10-24 03:31:32 +02:00
Damien Arrachequesne
5badb6436e
[chore] Bump socket.io-parser to 2.3.1 ( #2734 )
2016-10-24 03:23:03 +02:00
Damien Arrachequesne
c20e0b26c9
[chore] Bump engine.io to 1.7.2 ( #2729 )
2016-10-24 03:21:11 +02:00
bananaapple
5c10c5439b
[test] Use client function to unify client in test script ( #2731 )
2016-10-24 02:35:01 +02:00
Damien Arrachequesne
64455b432c
[chore] Release 2.3.1 ( #51 )
2016-10-24 02:31:53 +02:00
Damien Arrachequesne
0e2dcb7281
[chore] Revert "Remove deprecated isarray dependency" ( #50 )
...
The fallback is needed for IE6, IE7 and IE8.
2016-10-24 02:29:22 +02:00
Damien Arrachequesne
5824a5827f
[chore] Release 1.7.2 ( #512 )
2016-10-24 01:34:23 +02:00
Damien Arrachequesne
0c983bd085
[chore] Release 1.7.2 ( #438 )
2016-10-24 01:33:41 +02:00
Damien Arrachequesne
1b86756130
[chore] Add Github issue and PR templates ( #511 )
2016-10-24 01:31:52 +02:00
Damien Arrachequesne
7188333fa7
[docs] Add missing upgradeTimeout option in the docs ( #437 )
2016-10-24 01:21:10 +02:00
Damien Arrachequesne
6ea49bdb12
[chore] Add Github issue and PR templates ( #436 )
2016-10-24 01:20:59 +02:00
Damien Arrachequesne
487fb26af0
[docs] Add missing onlyBinaryUpgrades option in the docs ( #510 )
2016-10-24 01:01:11 +02:00
Luigi Pinca
7acae3db15
[fix] Obfuscate ActiveXObject occurrences ( #509 )
...
Some corporate firewalls/proxies such as Blue Coat prevent JavaScript
files from being downloaded if they contain the word "ActiveX".
2016-10-24 01:00:45 +02:00
besaplla
618758543e
[fix] onPacket now emits data on 'closing' state as well ( #484 )
2016-10-23 09:15:11 +02:00
Naoyuki Kanezawa
410189e417
[fix] remove a workaround for ios ( #465 )
2016-10-23 08:44:35 +02:00
Tom Atkinson
083a139488
[fix] Set accept header to */* to support react app proxy ( #508 )
2016-10-23 08:43:52 +02:00
Damien Arrachequesne
8182ecc61c
[chore] Add Github issue and PR templates ( #2733 )
2016-10-22 09:19:08 +02:00
Feram Bot
ccd3376627
[docs] Minor fixes ( #2526 )
2016-10-21 03:21:45 +02:00
Damien Arrachequesne
58a73d39e9
[chore] Bump socket.io-parser to 2.3.0 ( #2730 )
2016-10-21 03:18:49 +02:00
Tom Atkinson
e60bd5a4da
[fix] Avoid swallowing exceptions thrown by user event handlers ( #2682 )
2016-10-21 03:16:36 +02:00
Paul Meinhardt
21dffa4b58
[docs] Link readme npm package badge to npm registry page ( #2612 )
2016-10-21 03:10:33 +02:00
Marcio Puga
94852e3d23
[docs] Fix typo ( #2724 )
2016-10-21 03:06:59 +02:00
davidlondono
b8c60506a6
[docs] Fix JSDoc of optional parameters ( #2465 )
...
Making proper optional Docs for socketIO
2016-10-21 03:02:59 +02:00
syuilo⭐️
ecc76f48bc
[docs] Add link to LICENSE ( #2221 )
2016-10-21 03:00:38 +02:00
Damien Arrachequesne
baf384cd6c
[chore] Release 2.3.0 ( #49 )
2016-10-21 01:32:51 +02:00
Damien Arrachequesne
972d0aa93c
[chore] Move benchmark to dev dependencies ( #48 )
2016-10-21 01:10:04 +02:00
Tom Atkinson
9b479bcee6
[perf] Split try catch into separate function ( #40 )
2016-10-21 01:07:30 +02:00
Damien Arrachequesne
26699fa968
[chore] Make the build status badge point towards master ( #47 )
2016-10-21 01:03:53 +02:00
Damien Arrachequesne
e8f7c32a43
[chore] Remove deprecated isarray dependency ( #46 )
...
Closes #38
2016-10-21 01:03:33 +02:00
Damien Arrachequesne
123d30194a
[chore] Update zuul browser settings ( #44 )
...
- Remove deprecated iOS 7.1
- Add Firefox and Microsoft Edge browsers
- Add latest stable Node.js release
2016-10-21 00:55:37 +02:00
Damien Arrachequesne
3fe95b6f67
[chore] Restrict files included in npm package ( #45 )
2016-10-21 00:54:52 +02:00
Damien Arrachequesne
f67c758e5d
[chore] Release 1.7.1 ( #435 )
2016-10-20 18:53:52 +02:00
Damien Arrachequesne
af021d7431
[chore] Release 1.7.1 ( #506 )
2016-10-20 18:53:12 +02:00
Tom Atkinson
b18f5b16df
[perf] Add all properties to the socket in the constructor ( #488 )
2016-10-20 18:29:32 +02:00
Marshall Thompson
6b2b3bdaaa
[chore] Use more-specific imports for StealJS compatibility ( #467 )
...
This allows browser loaders like StealJS to load this package without showing any errors or warnings in the console (since you the only way to check if a file exists from the browser it to request it, node-style folder assumptions can't be made without potential 404s.)
The package works fine with the StealJS build tools, since they're node based, but this lets allows it to work with the browser version.
2016-10-20 18:10:30 +02:00
Aaron Carlino
eb24245565
[fix] Define "requestsCount" var and "requests" hash unconditionally ( #490 )
...
There are situations in which `global.document` can be defined after the file is loaded, but before a request is created.
2016-10-20 17:55:05 +02:00
Damien Arrachequesne
dc0d7d2ca5
[chore] Bump engine.io-parser to 1.3.1 ( #505 )
2016-10-20 17:53:34 +02:00
Damien Arrachequesne
84fe08c3f7
[chore] Update zuul browser settings ( #504 )
2016-10-20 17:51:30 +02:00
Jérémy Lal
724b3fd8e0
[fix] Close and free webSocketServer ( #393 )
2016-10-20 15:53:01 +02:00
Damien Arrachequesne
12ee4772ab
[chore] Add latest nodejs release in travis settings ( #434 )
2016-10-20 15:52:28 +02:00
Damien Arrachequesne
200e05f2ac
[chore] Bump engine.io-parser to 1.3.1 ( #433 )
2016-10-20 15:52:11 +02:00
Damien Arrachequesne
ada9dbe77b
[chore] release 1.3.1 ( #75 )
2016-10-20 14:43:50 +02:00
Damien Arrachequesne
6741900f37
[fix] Handle undefined case properly when decoding packet ( #74 )
2016-10-20 14:39:04 +02:00
jm
5aecaa914d
[fix] decodePacket now accepts both Buffer and ArrayBuffer as data
...
Closes #64 , fixes #60
2016-10-20 14:17:02 +02:00
tatellos
97bdbab37c
[docs] Fix typo in Readme.md ( #37 )
2016-10-18 03:58:00 +02:00
Damien Arrachequesne
1ae44c9d10
[chore] Update zuul browser settings ( #73 )
...
- Remove deprecated iOS 7.1
- Add Firefox and Microsoft Edge browsers
- Add latest stable Node.js release
2016-10-18 02:32:56 +02:00
Jack X
4a818a0ed7
[fix] Add safety check for global object
...
Closes #71
2016-10-18 01:40:29 +02:00
Damien Arrachequesne
85dd3fa1c3
[chore] Update zuul browser settings following EOL notices ( #42 )
2016-10-08 22:00:27 +02:00
Damien Arrachequesne
aa187cd075
[chore] Bump zuul to 3.11.0 & zuul-ngrok to 4.0.0 ( #41 )
2016-10-08 21:59:36 +02:00
Damien Arrachequesne
c94058f9b0
[chore] release 1.5.0 ( #2711 )
2016-10-07 00:13:33 +02:00
Damien Arrachequesne
43d9a4b55d
[feature] Add a 'disconnecting' event to access to socket.rooms upon disconnection ( #2332 )
2016-10-06 23:23:26 +02:00
Alejandro Oviedo
df916172dd
[chore] Link build badge to master branch ( #2549 )
2016-10-06 23:12:15 +02:00
Damien Arrachequesne
271c625243
[chore] Restrict files included in npm package ( #2709 )
2016-10-06 23:11:33 +02:00
Damien Arrachequesne
628fe8f1b2
[chore] Point towards current master of socket.io-client ( #2710 )
2016-10-06 23:10:54 +02:00
Damien Arrachequesne
db62e1bf67
[chore] Remove unused zuul-ngrok dependency ( #2708 )
2016-10-06 23:10:33 +02:00
Damien Arrachequesne
a52d748562
[chore] Bump zuul to 3.11.0 & zuul-ngrok to 4.0.0 ( #70 )
2016-10-06 21:15:50 +02:00
YasharF
ba4c7921ef
[chore] Bump engine.io to 1.7.0 ( #2707 )
2016-10-06 10:03:55 +02:00
Damien Arrachequesne
4c318ce48b
[chore] Bump engine.io-client to 1.7.0 ( #429 )
2016-10-05 15:56:05 +02:00
Damien Arrachequesne
d75d61c17c
[chore] release 1.7.0 ( #500 )
2016-10-05 10:33:34 +02:00
Damien Arrachequesne
aa48d134d4
[style] Add missing semi-colon ( #501 )
2016-10-05 10:29:43 +02:00
Damien Arrachequesne
330526a491
[chore] release 1.7.0 ( #428 )
2016-10-05 08:10:03 +02:00
Mateusz Burzyński
f9274e181e
[fix] Fix issue with errors during WebSocket creation not being caught at all ( #475 )
...
Fixes #474 .
2016-10-05 07:35:30 +02:00
Miguel Grinberg
ea29487488
[fix] Use xhr.responseText if xhr.response is not provided ( #483 )
2016-10-05 07:31:28 +02:00
Damien Arrachequesne
82eea27f78
[chore] Restrict files included in npm package ( #499 )
2016-10-05 07:11:38 +02:00
Damien Arrachequesne
e8561ff5a2
[chore] Bump zuul to 3.11.0 & zuul-ngrok to 4.0.0 ( #498 )
2016-10-05 07:10:50 +02:00
Damien Arrachequesne
67ac4b7e1d
Revert "default rejectUnauthorized to true" ( #496 )
...
This reverts commit 2c55b278a4 , which breaks websocket transport under node v0.10 (#494 ).
2016-10-05 07:06:38 +02:00
Damien Arrachequesne
a0e63fe16a
[chore] Make the build status badge point towards master ( #497 )
2016-10-05 01:26:24 +02:00
Chirag
b9c03e7254
[chore] Bump engine.io-parser ( #492 )
...
engine.io-parser landed a fix to make socket.io work with react-native projects
2016-10-05 00:58:45 +02:00
Damien Arrachequesne
4e058b5ce8
[chore] Restrict files included in npm package ( #427 )
2016-10-05 00:54:36 +02:00
Damien Arrachequesne
58a916b593
[chore] Make the build status badge point towards master ( #426 )
2016-10-05 00:54:16 +02:00
Damien Arrachequesne
d941cd9c75
[chore] Bump engine.io-parser to 1.3.0 ( #425 )
2016-10-05 00:53:47 +02:00
Damien Arrachequesne
a37fa48a75
[chore] release 1.3.0 ( #69 )
2016-09-26 04:04:44 +02:00
Damien Arrachequesne
f5d966bd66
[chore] Use wtf-8 instead of utf8 to prevent lone surrogates from generating parsing error ( #68 )
2016-09-26 03:44:29 +02:00
Damien Arrachequesne
180028699e
[chore] Restrict files included in npm package ( #67 )
2016-09-26 03:40:53 +02:00
Damien Arrachequesne
58dbe3b9e5
[chore] Update license and repository url ( #66 )
2016-09-26 03:40:33 +02:00
Tom Atkinson
26162afe01
[perf] Split try catch into separate function ( #65 )
2016-09-26 03:40:17 +02:00
Damien Arrachequesne
2c0ae2972b
Merge pull request #387 from nkzawa/fix/ignore-dist
...
Ignore dist not to release for now
2016-08-07 23:31:34 +02:00
Damien Arrachequesne
fadeb7df5c
Merge pull request #418 from darrachequesne/patch-2
...
Restoring require('ws') as separate expression for browserify.
2016-08-05 23:01:36 +02:00
Damien Arrachequesne
1cfae04a13
Merge pull request #478 from doug-wade/fix-nsp-120
...
Bump ws to 1.1.1
2016-08-05 21:20:15 +02:00
Damien Arrachequesne
30ea0b8d7d
Merge pull request #2599 from boazsegev/patch-1
...
Documentation update to help new programmers
2016-08-05 21:07:30 +02:00
Damien Arrachequesne
9f90ee854b
Merge pull request #486 from darrachequesne/patch-4
...
Update zuul browser settings following EOL notices
2016-08-05 20:04:39 +02:00
Damien Arrachequesne
51aabe6150
Merge pull request #464 from nkzawa/fix/bump-zuul
...
bump zuul
2016-08-05 19:24:19 +02:00
Damien Arrachequesne
cfb6853a2e
Merge pull request #466 from nkzawa/fix/remove-unused-submodule
...
Remove unused submodule
2016-08-05 19:22:38 +02:00
Damien Arrachequesne
bdf7296bf4
Update zuul browser settings following EOL notices
...
- EOL Notice for iOS 5.1, 6.0, 6.1, 8.0, and iWebDriver
- EOL Notice for Android 4.0, 4.1, 4.2
2016-08-05 19:15:51 +02:00
Damien Arrachequesne
073df34c82
Merge pull request #58 from tjni/guard-base64-arraybuffer-require
...
Require base64-arraybuffer module conditionally.
2016-08-05 19:07:57 +02:00
Damien Arrachequesne
342f7d5dbe
Merge pull request #62 from darrachequesne/patch-1
...
Update zuul browser settings following EOL notices
2016-08-05 18:34:00 +02:00
Damien Arrachequesne
236efa00c6
Update zuul browser settings following EOL notices
...
- EOL Notice for iOS 5.1, 6.0, 6.1, 8.0, and iWebDriver
- EOL Notice for Android 4.0, 4.1, 4.2
2016-08-05 01:38:49 +02:00
Atanas Palavrov
9bd84818fa
Restoring require('ws') as separate expression for browserify.
2016-08-05 00:38:20 +02:00
Damien Arrachequesne
5301695c93
Merge pull request #411 from hairyhenderson/add-nsp-check-to-build
2016-08-05 00:23:04 +02:00
Dave Henderson
959c8be0cc
Bumping ws to 1.1.1 to address https://nodesecurity.io/advisories/120
...
Signed-off-by: Dave Henderson <dhenderson@gmail.com >
2016-07-13 14:51:56 -04:00
Dave Henderson
7b343517ed
Adding nsp check to the build process
...
Signed-off-by: Dave Henderson <dhenderson@gmail.com >
2016-07-13 14:38:01 -04:00
Doug Wade
023489911e
Resolve nsp 120
2016-06-29 11:27:54 -07:00
Doug Wade
22ec2d2b97
Fix test target by specifying valid ws binary type
2016-06-29 11:27:05 -07:00
Bo
2d141aff7c
Prevent mixup for new programmers
...
The documentation, inadvertently, causes confusion for newer programmers, hindering their learning curve and ability to learn `socket.io` faster.
This proposed change aims at preventing this confusion to allow new programmers easier access to resources, especially when searching the web for more information.
The name `socket` in the documentation refers to the API gateway, or abstraction layer, related to the `client` and other properties. However, in the rest of the programming world, `sockets` usually refer to Berklee sockets or the lower-level communication channel that is used to implement Protocols such as the Websocket Protocol and HTTP.
New programmers often search for more informations using the `sockets` keyword when they are grappling with learning the `socket.io` API.
A good example is the stack overflow site, where newer programmers incorrectly tag their questions `sockets` and in turn don't get a fast response to their questions.
By simply changing the name of the variable used to describe socket.io's "Socket" class instances from `socket` to `client`, this mixup should be mitigated considerably.
2016-06-26 14:32:37 -04:00
Theodore Ni
c0d166b861
Require base64-arraybuffer module conditionally.
...
Since base64-arraybuffer version 0.1.5 introduced a change that fails
at require time in a browser without ArrayBuffer support, the require
must be guarded.
2016-06-25 22:12:44 -07:00
Guillermo Rauch
40763d3962
1.4.8
2016-06-23 19:24:38 -07:00
Guillermo Rauch
2a092bd2fb
Release 1.4.8
2016-06-23 19:22:41 -07:00
Guillermo Rauch
4137eb5c43
package: bump engine.io
2016-06-23 19:12:28 -07:00
Guillermo Rauch
6ef28d0dea
Merge branch '1.6.10-pre'
2016-06-23 19:11:34 -07:00
Guillermo Rauch
966344219d
Merge branch '1.6.10-pre'
2016-06-23 19:11:13 -07:00
Guillermo Rauch
10c4360bde
Release 1.6.11
2016-06-23 19:10:07 -07:00
Guillermo Rauch
25e9287d13
Release 1.6.11
2016-06-23 19:10:06 -07:00
Guillermo Rauch
5457488561
package: bump ws to support maxPayload
2016-06-23 19:07:16 -07:00
Guillermo Rauch
ead9dfe206
package: bump ws to support maxPayload
2016-06-23 19:06:07 -07:00
Guillermo Rauch
35300b88f3
1.6.10
2016-06-23 17:32:05 -07:00
Guillermo Rauch
e3207005da
1.4.7
2016-06-23 17:31:33 -07:00
Guillermo Rauch
1529d5acbe
1.6.10
2016-06-23 17:30:47 -07:00
Guillermo Rauch
42aa77614e
Release 1.4.7
2016-06-23 17:25:46 -07:00
Guillermo Rauch
184dec31f7
Release 1.6.10
2016-06-23 17:21:40 -07:00
Guillermo Rauch
1a07f1012a
Release 1.6.10
2016-06-23 17:21:21 -07:00
Guillermo Rauch
17ec2150c0
server: implement maxHttpBufferSize for ws
2016-06-23 17:15:46 -07:00
Guillermo Rauch
1491a96c95
package: bump engine.io
2016-06-23 17:11:15 -07:00
Guillermo Rauch
298cb6fd6f
upgrade accepts
2016-06-17 10:36:05 -07:00
Guillermo Rauch
d9dda2b60a
Merge pull request #390 from kapouer/uws
...
Option wsEngine or EIO_WS_ENGINE env var
2016-05-09 11:46:49 -07:00
Jérémy Lal
91dd49d1c2
uws@04.0
2016-05-09 12:22:24 +02:00
Jérémy Lal
0d1f487696
Tests: disable SSL with uws tests on node < 4.4.3
2016-05-07 16:18:59 +02:00
Jérémy Lal
3e6addb49c
doc: mention uws as an alternative addon
2016-05-07 16:03:33 +02:00
Jérémy Lal
b7be8ece79
Fix uws devDependency to a passing version
2016-05-07 16:03:33 +02:00
Jérémy Lal
b11607f34f
Travis: test uws using latest nodejs 4
2016-05-07 16:03:05 +02:00
Jérémy Lal
6eba67603b
Travis: allow compilation of Node.js 4 addons
2016-05-07 01:14:25 +02:00
Jérémy Lal
0b9d6dc496
Do not run tests with uws engine on Node < 4
2016-05-07 00:56:14 +02:00
Jérémy Lal
c50bff0ef6
Document wsEngine option
...
thanks to Alex Hultman
2016-05-07 00:50:49 +02:00
Jérémy Lal
41165e0f15
Test if wsEngine option loads uws instead of ws
2016-05-07 00:38:02 +02:00
Jérémy Lal
afb44ef138
Run tests using ws, then using uws
2016-05-07 00:38:02 +02:00
Jérémy Lal
aa1ee6ffab
wsEngine option and env var, defaults to 'ws'
2016-05-07 00:02:01 +02:00
Guillermo Rauch
dcca01f5a4
Release 1.4.6
2016-05-02 20:57:44 -07:00
Guillermo Rauch
3b58fa04d5
package: bump engine.io
2016-05-02 20:56:15 -07:00
Guillermo Rauch
2a7a011932
Release 1.6.9
2016-05-02 20:51:41 -07:00
Guillermo Rauch
7fa16d531b
default rejectUnauthorized to true
2016-05-02 20:50:42 -07:00
vendethiel
187492ab80
update version & history file
2016-04-18 20:52:50 +02:00
Naoyuki Kanezawa
0c6d50d9c0
Merge pull request #2416 from nus-fboa2016-si/chatexample
...
updated express version to express 4
2016-04-12 03:58:08 +09:00
Naoyuki Kanezawa
881f16553c
Merge pull request #2508 from tw0517tw/quote-exec
...
add quote to exec paths, prevent error when spaces in path
2016-04-12 03:57:43 +09:00
Guillermo Rauch
9c91076e96
Merge pull request #56 from nkzawa/fix/bump-zuul
...
bump zuul
2016-04-11 08:45:26 -07:00
Guillermo Rauch
cec8d65e75
Merge pull request #37 from nkzawa/fix/bump-zuul
...
bump zuul
2016-04-11 08:45:22 -07:00
Guillermo Rauch
e5a8d4d2d9
Merge pull request #2520 from nkzawa/fix/ignore-dist
...
Ignore dist directory for now
2016-04-11 08:45:11 -07:00
Guillermo Rauch
fb0253edea
Merge pull request #2422 from nus-fboa2016-si/queryStringFix
...
Fix for Issue #331 on socket.io-client
2016-04-11 08:44:59 -07:00
tw0517tw
3c5f5a0864
use a bigger timeout for slower machine
2016-04-11 22:31:47 +08:00
tw0517tw
a23d26a617
add quote to exec paths, prevent error when spaces in path
2016-04-11 22:21:34 +08:00
Zhu Liang
910b5d77a6
fixed version notation
2016-04-11 22:19:49 +08:00
Naoyuki Kanezawa
438ad63cdf
Merge pull request #2420 from revington/test-node-v5-stable
...
[Travis] Add Node 5.x (Stable) to the test matrix
2016-04-11 23:09:41 +09:00
Naoyuki Kanezawa
7e9a67d8ee
Merge pull request #2415 from nus-fboa2016-si/documentation
...
Documentation
2016-04-11 23:05:33 +09:00
Naoyuki Kanezawa
0ae070885d
Merge pull request #2477 from callahad/chat-layout-fix
...
Fix chat display in Firefox
2016-04-11 23:00:07 +09:00
Naoyuki Kanezawa
36d99d8d84
Merge pull request #2492 from westy92/master
...
Update package.json
2016-04-11 22:20:46 +09:00
nkzawa
0e63b0910e
ignore dist for now
2016-04-11 22:11:19 +09:00
nkzawa
b3753c8d5e
bump zuul
2016-04-11 18:10:40 +09:00
nkzawa
ebfeb4b609
bump zuul
2016-04-11 18:02:53 +09:00
nkzawa
6e2e09b95d
remove unused submodule
2016-04-11 16:18:32 +09:00
nkzawa
87bb02abcd
bump zuul
2016-04-11 15:53:58 +09:00
nkzawa
3aab14f543
ignore dist not to release for now
2016-04-11 15:24:28 +09:00
Naoyuki Kanezawa
2e256624d3
Merge pull request #460 from nus-fboa2016-si/refactor
...
Gulpfile refactoring
2016-04-11 15:20:34 +09:00
Guillermo Rauch
3c7350fa58
Merge pull request #2509 from tw0517tw/patch-1
...
stop prepend /# before id when no namespace
2016-04-10 11:24:42 -07:00
Guillermo Rauch
aadd5da655
Merge pull request #2496 from nus-fboa2016-si/compat-test
...
Added test for compat version transformed by babel
2016-04-02 18:31:30 -07:00
Guillermo Rauch
149f340611
Merge pull request #55 from danawoodman/patch-1
...
Fix crashes in React Native "navigator is not defined"
2016-04-02 18:06:02 -07:00
吳東曄 Wu, Dung-Ie
6d4128750b
stop append /# before id when no namespace
2016-04-02 01:55:53 +08:00
Zhu Liang
6edcd1c6ba
styling fixes
2016-03-31 12:55:42 +08:00
Zhu Liang
6b2394e612
disable loading lib by default to avoid syntax error due to lib containing new es6 syntax
2016-03-31 03:54:32 +08:00
Guillermo Rauch
2c55b278a4
default rejectUnauthorized to true
2016-03-30 08:30:14 -07:00
Zhu Liang
677af3fa11
changed env var name, added testing documentation to readme
2016-03-21 13:11:03 +08:00
Zhu Liang
a1ff739b36
babel transpile before test, print error
2016-03-19 20:19:08 +08:00
Zhu Liang
de5b588e17
explicit distinction between current and compat in test so we can serve either compat or current as default
2016-03-19 20:13:57 +08:00
Zhu Liang
5a20c1195b
set env vars in travis
2016-03-19 19:49:41 +08:00
Zhu Liang
5253bc400b
use multiple npm scripts
2016-03-19 19:41:14 +08:00
Zhu Liang
1245a5639e
added compat test
2016-03-19 19:21:54 +08:00
Zhu Liang
88161539a1
implement compat test using env variable
2016-03-17 13:42:29 +08:00
Zhu Liang
d99d4d15ae
add compat test for babel-transformed codes
2016-03-17 13:11:20 +08:00
Seth Westphal
06ecfe5444
Explicit local gulp is unnecesary
2016-03-16 13:01:49 -05:00
Seth Westphal
e90b4eba1e
Update repository URL
2016-03-16 12:58:59 -05:00
ven
08d6393289
Merge pull request #75 from FlatIO/master
...
Expose Emitter if module exists
2016-03-15 11:45:06 +01:00
Guillermo Rauch
74b81d4d4e
Merge pull request #384 from nus-fboa2016-si/gulp-rebased
...
Add gulp and babel
2016-03-12 20:05:21 -08:00
Guillermo Rauch
c7de1a1adf
Merge pull request #2471 from nus-fboa2016-si/gulp-rebased
...
Add gulp and babel
2016-03-12 20:04:48 -08:00
Dana Woodman
748144b50a
Ensure navigator is defined.
2016-03-09 12:34:38 -08:00
Dana Woodman
a10c487518
Fix crash in React Native
...
This change lets people use Socket.io in React Native
Related to an issue on socket.io-client repo: https://github.com/socketio/socket.io-client/issues/945
All credit for this goes to @stevecass
2016-03-09 12:28:48 -08:00
Dan Callahan
7bae6ac636
Fix chat display in Firefox
2016-03-08 19:50:55 -06:00
Diga Widyaprana
292e0588a6
Remove node 0.8 from travis
2016-03-09 09:38:21 +08:00
Diga Widyaprana
355b5156fe
Remove node 0.8 from travis
2016-03-09 09:36:51 +08:00
Diga Widyaprana
7e0dbfe4f5
Rename babel to transpile for consistency with socket.io repo
2016-03-06 16:15:56 +08:00
Diga Widyaprana
25269cde8a
Use local instead of global gulp in npm test
2016-03-06 16:12:49 +08:00
Diga Widyaprana
ec1b875f12
Redirect make test to gulp test
2016-03-06 16:11:31 +08:00
Diga Widyaprana
5a11818f3e
Modify mocha option
...
- timeout:2000 => slow:500 to mirror makefile
- remove globals option as it is not used anymore
2016-03-06 16:09:32 +08:00
Diga Widyaprana
0dca4f3fd7
Don't use dynamic dependencies
2016-03-06 15:51:01 +08:00
Diga Widyaprana
f21a29bcda
Inline babel configuration
2016-03-06 15:51:01 +08:00
Yijin
77d18e7ce5
changed npm test script to use gulp
2016-03-06 15:51:01 +08:00
Yijin
702e9d5acf
added babel under default gulp build task
2016-03-06 15:51:01 +08:00
Diga Widyaprana
514d9ade73
test-cov only runs tests included by test/index.js, consistent with gulp test
2016-03-06 15:07:40 +08:00
Diga Widyaprana
4d79991805
Clean up after test-cov
2016-03-06 14:58:03 +08:00
Diga Widyaprana
982ac8dfe6
Refactor MOCHA_OPTS out of testNode so test-cov can use it too
2016-03-06 14:56:37 +08:00
Diga Widyaprana
62ac32bbb4
Minor refactoring
...
- Change glob supplied to gulp.src as suggested in https://github.com/socketio/engine.io-client/pull/455/files#diff-b9e12334e9eafd8341a6107dd98510c9R22
- Remove unused variable REPORTER in makefile
2016-03-06 14:52:53 +08:00
Diga Widyaprana
3e168ee0b8
Redirect make tasks to gulp
2016-03-06 11:40:57 +08:00
Diga Widyaprana
ed9ab77dcb
Minor fixes to gulp tasks
...
- Only provide entry point as first argument of gulp.src
- {read:false} option for mocha tests
- change timeout:2000 to slow:200 to mirror makefile's mocha options
- replace var with const where appropriate
2016-03-06 11:40:57 +08:00
Diga Widyaprana
1104cd135e
Use local instead of global gulp in npm test
2016-03-06 11:40:57 +08:00
Diga Widyaprana
0be915cd0f
Add gulp task clean to clean transpile output
...
- Work done by @YijinL. Part of @05ad308
2016-03-06 11:40:57 +08:00
Diga Widyaprana
c6dd41b915
Minor refactoring to transpile task
...
- Transpiling is now gulp transpile
- Default redirects to transpile
- Refactor transpile output directory to a separate constant
- Work by @YijinL in @05ad308
2016-03-06 11:32:40 +08:00
Diga Widyaprana
0f14312d7b
Add gulp help
...
Work was done by @YijinL in 2 separate commits (@9204125 and @05ad308)
2016-03-06 11:32:09 +08:00
Zhu Liang
ee544955bd
added babel integration
2016-03-04 21:47:07 +08:00
Yijin
c27529ceed
slight refactoring for better encapsulation
2016-03-04 21:46:22 +08:00
Zheng Weihan
d56e2e765e
add gulp task runner
...
add test to task.
2016-03-04 21:46:22 +08:00
Diga Widyaprana
97bd95f036
Don't use dynamic dependencies
2016-03-04 18:06:00 +08:00
Diga Widyaprana
11e0f19272
Inline babel configuration
2016-03-04 18:06:00 +08:00
Yijin
e388a3319d
npm test script to use gulp
2016-03-04 18:06:00 +08:00
Zheng Weihan
b551ce9835
added test-cov task.
2016-03-04 18:06:00 +08:00
Zhu Liang
0bac96a6b2
added comment for babel
2016-03-04 14:46:08 +08:00
Zhu Liang
1d07b10339
integrated babel into gulp
2016-03-04 14:46:08 +08:00
Zheng Weihan
398b5479f0
delete unused dependency
2016-03-04 14:45:55 +08:00
Zheng Weihan
d9eb729eab
implement gulp build system for test.
2016-03-04 14:45:03 +08:00
Guillermo Rauch
6045ccf5aa
Merge pull request #458 from nus-fboa2016-si/eslint-rebased
...
Add ESLint
2016-03-01 19:05:06 -08:00
Diga Widyaprana
a526395363
Add inline eslint config
...
- ActiveXObject global in lib/xmlhttprequest.js
- Allow small letter constructor in test/transport.js
2016-03-01 00:41:09 +08:00
Diga Widyaprana
a55f61b136
Run lint before test instead of with build
2016-03-01 00:41:09 +08:00
Diga Widyaprana
e2930f8aac
Eslint manual fix
2016-03-01 00:41:08 +08:00
Diga Widyaprana
fd90acf4b6
Eslint autofix
2016-02-29 20:43:08 +08:00
Diga Widyaprana
6ef8d34ac3
Add env to eslint rc
...
- node env and browser at root eslintrc
- node and mocha at test/ eslintrc
2016-02-29 20:42:32 +08:00
Diga Widyaprana
dee69ca3c5
Exclude automatically generated files
2016-02-29 13:16:53 +08:00
Diga Widyaprana
0bffd84fd7
Upgrade babel-eslint to 4.1.7
2016-02-29 13:13:31 +08:00
Diga Widyaprana
1f415d5cc6
Remove dynamic dependencies
2016-02-29 12:01:31 +08:00
Yijin
ab663c7608
Add eslint
...
- Add eslint and eslint standard to package.json
- Add lint gulp task
- Add eslint config
2016-02-29 11:58:49 +08:00
Guillermo Rauch
9748f6bf90
Merge pull request #455 from nus-fboa2016-si/webpack
...
Integrating gulp, webpack, babel
2016-02-23 19:14:23 -08:00
Yijin
4c2a7b3f4d
Merge remote-tracking branch 'origin/webpack' into webpack
2016-02-15 12:29:02 +08:00
Zhu Liang
be9a2ad55a
fixed regex
2016-02-15 12:22:24 +08:00
Yijin
751cc712bd
Merge branch 'webpack' of https://github.com/nus-fboa2016-si/engine.io-client into webpack
2016-02-15 12:15:10 +08:00
Yijin
794349113c
removed clean message
2016-02-15 12:11:12 +08:00
whattokingu
f9db72997f
Merge pull request #10 from whattokingu/queryStringFix
...
Query string fix
2016-02-14 13:57:06 +08:00
Zheng Weihan
1293505dc2
update tests.
2016-02-14 13:48:28 +08:00
Zheng Weihan
f4e9e71c56
Merge branch 'queryStringFix' of https://github.com/whattokingu/socket.io into queryStringFix
...
# By whattokingu
# Via whattokingu
* 'queryStringFix' of https://github.com/whattokingu/socket.io :
conform to style guide
Conflicts:
lib/client.js
2016-02-14 13:47:59 +08:00
Zheng Weihan
045674de97
remove unnecessary decoder. url.parse already decodes string.
...
add test to test decoding function.
2016-02-14 13:46:26 +08:00
whattokingu
7091acf24c
Merge pull request #9 from whattokingu/queryStringFix
...
Query string fix
2016-02-13 14:41:15 +08:00
whattokingu
19341051e8
conform to style guide
2016-02-13 14:35:12 +08:00
Zheng Weihan
e141e09aaf
change decodeUriComponents calls
2016-02-13 14:28:21 +08:00
Zheng Weihan
5fabe4e780
call decodeURIComponent on query received from client.
...
update package.son to point to latest commit in socket.o-client package (with URI encoder)
2016-02-13 14:10:20 +08:00
Diga Widyaprana
db5e316854
Rename gulp task webpack to build
2016-02-12 22:07:23 +08:00
Diga Widyaprana
b28ec89a8c
Direct all make tasks to gulp
2016-02-12 20:17:59 +08:00
Zhu Liang
280d8e44c8
removed babel react preset
2016-02-12 13:52:22 +08:00
Diga Widyaprana
bdd7e7c6c8
Direct make test to gulp test, webpack doesn't log if no error
2016-02-10 22:45:22 +08:00
Yijin
46b28e0a0c
added logic for self-cleaning tests
2016-02-10 11:46:31 +08:00
Yijin
1f4a3f27a5
Merge branch 'webpack' of https://github.com/nus-fboa2016-si/engine.io-client into webpack
2016-02-10 11:15:28 +08:00
Diga Widyaprana
437ac56b0e
Remove IDE-specific stuff from gitignore
2016-02-10 02:30:08 +08:00
Diga Widyaprana
aede995ca6
Remove browserify stuff
...
Don't use dynamic dependencies
2016-02-10 02:28:33 +08:00
Julien Fouilhé
61fdd20c70
Expose Emitter if module exists
2016-02-09 17:32:07 +01:00
Yijin
5e67bd4275
Merge branch 'webpack' of https://github.com/nus-fboa2016-si/engine.io-client into webpack
2016-02-04 20:57:03 +08:00
Yijin
47dd23cdae
trigger travis rebuild
2016-02-04 20:55:37 +08:00
Diga Widyaprana
cd25131ef2
Cleaning up
...
- Remove unnecessary '' in webpack config
- Remove unnecessary function from zuul.config.js
- Remove duplicate webpack dependency
2016-02-04 20:10:25 +08:00
Diga Widyaprana
0d6617d303
Cleaning up
...
- Remove unnecessary '' in webpack config
- Remove unnecessary function from zuul.config.js
- Remove duplicate webpack dependency
2016-02-04 18:50:48 +08:00
Diga Widyaprana
182dacf35c
Use webpack to output to test's public folder and serve it
2016-02-04 17:44:25 +08:00
Yijin
cecb21552c
capture zuul process exit code onto main process
2016-02-04 13:28:31 +08:00
whattokingu
7760a71d90
Merge pull request #8 from whattokingu/queryStringFix
...
add comments to code
2016-02-04 13:28:29 +08:00
Zheng Weihan
c077357eff
add comments to code
2016-02-04 13:27:36 +08:00
Diga Widyaprana
c97f876332
Fix test server to use webpack middleware properly
2016-02-04 13:21:05 +08:00
Diga Widyaprana
a5568f27c1
Refactor out webpack config to support/webpack.config.js
...
It is used by many different files (gulp build, zuul build, test server)
2016-02-04 11:03:32 +08:00
Diga Widyaprana
f6895ae5ba
Replace zuul build by webpack instead of browserify, use zuul.config.js instead of zuul.yml
2016-02-03 23:10:40 +08:00
Yijin
f08f2da7ad
removed babelify dep
2016-02-03 18:46:16 +08:00
Yijin
862c1fd11e
standardised gulpfile formatting across socketio repos
2016-02-03 17:57:44 +08:00
Yijin
28719ce93f
removed spawnSync call (unsupported by nvm 0.10)
2016-02-03 15:48:07 +08:00
Yijin
7fc45efc69
Merge remote-tracking branch 'origin/webpack' into webpack
2016-02-03 15:17:50 +08:00
Yijin
18359ca195
added extra npm install call to deal with npm 3 flat dependencies bug that requires multiple installs
2016-02-03 15:16:57 +08:00
Diga Widyaprana
8677f66a73
Redirect make build to gulp build, remove browserify gulp task
2016-02-03 09:47:25 +08:00
Yijin
8c0465ec07
removed output hooks for spawn
2016-02-02 23:52:34 +08:00
Yijin
2e08761126
exec --> spawn for zuul test
2016-02-02 23:05:12 +08:00
Yijin
eebe54d72a
fixed zuul cmd args order
2016-02-02 21:07:05 +08:00
Yijin
13535092cc
fixed extra semicolon in zuul cmd args
2016-02-02 20:51:40 +08:00
Yijin
006a1bd274
fixed mocha gulp swallowing error output
2016-02-01 13:08:31 +08:00
Zhu Liang
0494ff8078
changed 4 spaces to 2 spaces
2016-01-31 16:51:33 +08:00
Zhu Liang
f8ae734b73
move babel from standalone to webpack loader
2016-01-31 16:44:06 +08:00
Diga Widyaprana
3248af270c
Add global vars to webpack, don't pipe to babel during gulp build
2016-01-31 16:25:45 +08:00
whattokingu
2f26a2bdb4
Merge pull request #7 from whattokingu/queryStringFix
...
add test for issue #331 on socket.io-client.
2016-01-31 15:45:35 +08:00
Zheng Weihan
13af610f6d
add test for issue #331 on socket.io-client.
2016-01-31 15:44:39 +08:00
Diga Widyaprana
fb14983666
Merge branch 'webpack' of https://github.com/nus-fboa2016-si/engine.io-client into webpack
2016-01-31 15:43:35 +08:00
Diga Widyaprana
f22f990f15
Expose eio, attempt to add global
2016-01-31 15:41:40 +08:00
Yijin
242d2b651f
added gulp help, modularise task code
2016-01-31 15:06:46 +08:00
Yijin
356fe46528
eslint added to gulp build
2016-01-31 15:02:58 +08:00
Yijin
96564a8a2c
fixed babel missing preset
2016-01-31 13:15:42 +08:00
Yijin
dc10f525b3
inlined .babelrc settings into gulpfile
2016-01-31 11:26:18 +08:00
whattokingu
abcedf53ec
Merge pull request #6 from whattokingu/queryStringFix
...
sync to master branch
2016-01-31 11:23:02 +08:00
Zheng Weihan
24456fdcbe
Merge branch 'master' into queryStringFix
...
* master:
Release 1.4.5
package: bump `engine.io`
add a test for graceful shutdown
2016-01-31 11:21:30 +08:00
Yijin
380fe6ef9c
see prev commit
2016-01-31 10:36:14 +08:00
Yijin
3eb429b71d
removed dynamic dep versions
2016-01-31 10:32:26 +08:00
Pedro Narciso García Revington
25116ab179
test node 5 (stable)
2016-01-30 21:53:04 +01:00
Yijin
f85b7e2c85
merge gulp into webpack
2016-01-30 14:16:15 +08:00
Yijin
fad7e5b450
Merge remote-tracking branch 'remotes/origin/webpack' into gulp
2016-01-30 14:02:42 +08:00
Yijin
9079369603
cleaned up gulpfile testing for zuul
2016-01-30 14:01:44 +08:00
Yijin
4d155e7efd
updated npm test script
2016-01-30 13:38:50 +08:00
Yijin
b68b5deb8c
capture test-zuul output to console
2016-01-30 13:35:42 +08:00
Zhu Liang
a116d52e30
updated express version to express 4
2016-01-30 11:57:31 +08:00
whattokingu
cecf5f127e
Merge pull request #5 from whattokingu/documentation
...
Added Documentation
2016-01-30 11:31:11 +08:00
Zheng Weihan
1c467e15e6
Issue #2400 , added documentation
2016-01-30 11:28:40 +08:00
whattokingu
a110542563
Merge pull request #4 from whattokingu/queryStringFix
...
Fix for Issue #331 on socket.io-client
2016-01-30 10:16:19 +08:00
Diga Widyaprana
e209f5942c
Rename webpack output file
2016-01-30 10:01:03 +08:00
Zhu Liang
57e94f8e2a
disable compact by default
2016-01-30 09:55:06 +08:00
Zhu Liang
ad8b6e2784
Merge branch 'webpack' of github.com:nus-fboa2016-si/engine.io-client into webpack
2016-01-30 09:51:07 +08:00
Diga Widyaprana
13331c5901
Add build-webpack to build with webpack
2016-01-30 09:50:33 +08:00
Zheng Weihan
7d55724468
refactor parsing of URL in CONNECT packet to use 'url' library.
2016-01-30 09:47:28 +08:00
Diga Widyaprana
f59dfb9516
Merge remote-tracking branch 'origin/gulp' into webpack
...
Conflicts:
gulpfile.js
2016-01-29 20:21:23 +08:00
Ben Ripkens
aa2e57acc7
Avoid memory leaks by remove event arrays
...
When subscribing and then unsubscribing from many different types of events,
it can be observed that the `Emitter._callbacks` object starts to grow.
This happens because, when unsubscribing, the event specific event array
is not removed when the last subscriber unsubscribes.
2016-01-29 11:18:01 +01:00
Zheng Weihan
1d84c55743
fix to issue #331 on socket.o-client.
...
Parses CONNECT packet for query string and replaces query in socket.handshake.
2016-01-28 14:40:05 +08:00
Yijin
90c3f45abb
finish base gulp file
2016-01-28 13:47:59 +08:00
Diga Widyaprana
61d3d1dc03
Merge branch 'babel' into webpack
2016-01-28 13:30:18 +08:00
Zhu Liang
1980cf9926
added gulp-babel dependency
2016-01-28 13:29:33 +08:00
Diga Widyaprana
46ae3e601e
Remove webpack to devDependencies instead
2016-01-28 13:14:39 +08:00
Diga Widyaprana
3c98132c06
Rearrange package.json to minimize diff
2016-01-28 12:54:21 +08:00
Zhu Liang
141b9e80e9
merged fixed package.json
...
Merge branch 'gulp' into babel
2016-01-28 12:49:15 +08:00
Zhu Liang
951a5c9502
added babel
2016-01-28 12:47:28 +08:00
Diga Widyaprana
85d1ff2a69
Make build using webpack instead of browserify
2016-01-28 12:47:23 +08:00
Diga Widyaprana
2587782443
Test build is done using webpack instead of browserify
2016-01-28 12:47:23 +08:00
Diga Widyaprana
cd06f4c043
Add webpack to package.json
2016-01-28 12:47:23 +08:00
Yijin
bb2d7059bf
fix parsing error from comment
2016-01-28 12:44:50 +08:00
Zhu Liang
045e46c4b4
Merge branch 'gulp' into babel
2016-01-28 12:32:14 +08:00
Zhu Liang
4f11a97166
added babel config file
2016-01-28 12:32:10 +08:00
Leow Yijin
b9cbe1c52c
Merge pull request #1 from YijinL/gulp
...
Gulp
2016-01-28 12:30:44 +08:00
Yijin
41ab0b4ccd
left with zuul and istanbul undone
2016-01-28 00:59:18 +08:00
Yijin
720e3b3048
test zuul task completed
2016-01-28 00:36:05 +08:00
Yijin
fdac5f8b8b
modified npm test script to use local gulp command
2016-01-27 23:55:03 +08:00
Yijin
651c5105a0
added 'gulp test' multiplexing for node testing
2016-01-27 23:40:04 +08:00
Yijin
8f7f63185b
gulp node-test completed
2016-01-27 23:21:47 +08:00
Yijin
a7fa1485a3
gulp automatic rebuild added ('gulp watch')
2016-01-27 22:49:30 +08:00
Yijin
e630de5c29
gulp production build; output file matched with old make output
2016-01-27 22:47:50 +08:00
Guillermo Rauch
b3fc530abe
Release 1.4.5
2016-01-26 13:26:17 -08:00
Guillermo Rauch
d0dfa54dcb
package: bump engine.io
2016-01-26 10:42:41 -08:00
Guillermo Rauch
692f18c4ab
Release 1.6.8
2016-01-25 11:14:43 -08:00
Guillermo Rauch
83bee03bbb
Release 1.6.8
2016-01-25 11:14:40 -08:00
Diga Widyaprana
9d1e8bce57
Make build using webpack instead of browserify
2016-01-24 23:37:10 +08:00
Diga Widyaprana
cedade938c
Test build is done using webpack instead of browserify
2016-01-24 23:34:08 +08:00
Diga Widyaprana
8da4d71703
Add webpack to package.json
2016-01-23 15:01:16 +08:00
Guillermo Rauch
198b836759
Merge pull request #2399 from nkzawa/graceful-close
...
Add a test for graceful shutdown
2016-01-21 09:15:36 -08:00
Guillermo Rauch
87060b546c
Merge pull request #378 from nkzawa/graceful-close
...
Graceful server closing
2016-01-21 09:14:53 -08:00
nkzawa
a75f46f06f
add a test for graceful shutdown
2016-01-21 20:50:44 +09:00
nkzawa
1a98563898
add tests for graceful close
2016-01-21 20:35:11 +09:00
nkzawa
941a6ebf52
discard transport on server close
2016-01-21 20:02:54 +09:00
Zhu Liang
cad715ca7f
added babel integration using browserify API
2016-01-21 18:03:39 +08:00
Guillermo Rauch
7a64e67bdf
Merge pull request #377 from lpinca/gh-376
...
polling: don't set the `closeTimeoutTimer` if the transport is upgraded
2016-01-18 10:08:51 -08:00
Luigi Pinca
cd97c7f412
polling: don't set the closeTimeoutTimer if the transport is upgraded
2016-01-17 20:19:03 +01:00
Naoyuki Kanezawa
2a91fd57c7
Merge pull request #2344 from denghongcai/patch-2
...
fix wrong jsdoc
2016-01-17 15:25:32 +09:00
Naoyuki Kanezawa
fe891293b2
Merge pull request #2353 from faizalpribadi/patch-1
...
fix typo word :)
2016-01-17 15:23:35 +09:00
Naoyuki Kanezawa
6e450f75b4
Merge pull request #2374 from darrachequesne/patch-4
...
Add badges showing dependency status
2016-01-17 15:22:52 +09:00
Naoyuki Kanezawa
22c985cae6
Merge pull request #2380 from darrachequesne/patch-5
...
Document type change of Socket#rooms
2016-01-17 15:22:05 +09:00
Guillermo Rauch
52ad69cfb0
Merge pull request #453 from NativeScript/try-resolve-ws
...
Safely resolve `ws` module.
2016-01-15 09:46:14 -08:00
Stefan Dobrev
9c08f405a3
Safely resolve ws module.
...
After changing the `ws` dependency to be ignored, not exluded, by https://github.com/socketio/engine.io-client/pull/451 if the target runtime does not provide a `ws` module an error is throw. This is the case with NativeScript which currently does not have a WebSocket implementation. The change is using safe resolution with try-catch preseving the old behavior in a controlled manner.
2016-01-12 18:03:16 +02:00
Guillermo Rauch
fea3d79a2c
Release 1.4.4
2016-01-10 22:36:31 -08:00
Guillermo Rauch
d3dde130b7
package: bump engine.io
2016-01-10 22:27:44 -08:00
Guillermo Rauch
e69f540861
Release 1.6.7
2016-01-10 20:23:24 -08:00
Guillermo Rauch
a31551e141
Release 1.6.7
2016-01-10 20:23:24 -08:00
Guillermo Rauch
36888c266d
Merge pull request #452 from mrbar42/patch-1
...
added fallback to insertAt parentNode
2016-01-10 18:52:04 -08:00
MrBar42
556485538a
added fallback to insertAt parentNode
...
this prevents errors when there aren't any scripts tags on the document
2016-01-10 17:28:25 +02:00
Damien Arrachequesne
899de7f873
Document type change of Socket#rooms
2016-01-09 22:08:30 +01:00
Guillermo Rauch
8824c2e59f
Merge pull request #451 from darrachequesne/patch-3
...
Prevent ws from being added to the bundle
2016-01-09 10:10:09 -08:00
Damien Arrachequesne
02ab115a1e
Prevent ws from being added to the bundle
2016-01-09 14:57:29 +01:00
Guillermo Rauch
f1a3e8db2a
Release 1.4.3
2016-01-08 08:17:50 -08:00
Guillermo Rauch
dad82c3343
Release 1.4.2
2016-01-07 18:58:05 -08:00
Guillermo Rauch
a6cbf6b205
package: bump engine.io
2016-01-07 18:14:39 -08:00
Guillermo Rauch
619d579c76
Release 1.6.6
2016-01-07 18:05:31 -08:00
Guillermo Rauch
f8b89af9a7
Release 1.6.6
2016-01-07 18:05:29 -08:00
Guillermo Rauch
ff31233fcf
support: add fallback to global for nativescript [@ligaz]
2016-01-07 17:24:29 -08:00
Guillermo Rauch
fe6667f555
exclude ws instead of ignoring it from build [@lpinca]
2016-01-07 17:23:19 -08:00
Damien Arrachequesne
580100d491
Bump dev dependencies
2016-01-07 22:59:28 +01:00
Damien Arrachequesne
acb9cb421d
Add badges showing dependency status
2016-01-07 22:58:59 +01:00
Guillermo Rauch
6d5d7e4411
Release 1.4.1
2016-01-07 12:52:27 -08:00
Guillermo Rauch
ddb3445f3d
Release 1.4.0
2016-01-05 15:44:48 -08:00
Guillermo Rauch
6eb9807f17
package: bump engine.io for sec advisory
2016-01-05 13:40:54 -08:00
Guillermo Rauch
3ef44d3fcc
Release 1.6.5
2016-01-05 12:35:52 -08:00
Guillermo Rauch
847136e7fb
Release 1.6.5
2016-01-05 12:35:51 -08:00
Guillermo Rauch
c891dd5446
Merge pull request #374 from Dignifiedquire/ws-1.0.0
...
Upgrade ws to 1.0.1
2016-01-05 12:03:04 -08:00
dignifiedquire
f685cfd3fd
Upgrade ws to 1.0.1
...
Closes #373
2016-01-05 18:10:04 +01:00
Guillermo Rauch
62aca32284
package: bump ws
2016-01-04 11:56:17 -06:00
Guillermo Rauch
8f6e65db40
Merge pull request #447 from darrachequesne/patch-2
...
Fix ws in browser
2016-01-03 20:20:18 -03:00
Damien Arrachequesne
deb9805f34
Make browserify ignore ws instead of excluding now dev dependencies
2016-01-03 23:19:52 +01:00
Damien Arrachequesne
9c449675cb
Fix tests in IE < 10 (WebSocket not supported)
2016-01-03 22:23:48 +01:00
Damien Arrachequesne
298250c133
Change variable name from isBrowserWebSocket to BrowserWebSocket
2016-01-03 22:22:11 +01:00
Damien Arrachequesne
0ee8de320a
Fix ws in browser
2016-01-02 20:32:37 +01:00
Guillermo Rauch
a851d05585
Merge pull request #446 from darrachequesne/patch-1
...
package: bump `ws`
2016-01-01 11:08:51 -03:00
Damien Arrachequesne
1cf4bdea5f
Fix global context
2016-01-01 14:52:53 +01:00
Damien Arrachequesne
50f97cdf97
Add global context
2016-01-01 14:43:30 +01:00
Damien Arrachequesne
5981295343
Exclude optional dep from zuul configuration
2016-01-01 14:21:21 +01:00
Damien Arrachequesne
bf48d1350e
Rebuild
2016-01-01 13:55:32 +01:00
Damien Arrachequesne
a24e5ee877
package: bump ws
2016-01-01 13:49:31 +01:00
Guillermo Rauch
391ce0dc8b
server: catch websocket errors before upgrade
2015-12-28 16:07:42 -03:00
Faizal Pribadi
abe2394a24
fix typo word :)
...
update docs source code
2015-12-20 16:16:42 +07:00
Hongcai Deng
7012ba6c64
fix wrong jsdoc
2015-12-14 15:31:42 +08:00
Guillermo Rauch
7b0073c00f
Merge pull request #2335 from nkzawa/patch-7
...
Improve the chat demo
2015-12-04 17:10:23 -08:00
nkzawa
0313ad0ea3
improve the chat demo
2015-12-05 10:07:08 +09:00
Guillermo Rauch
d310d42472
package: bump engine.io
2015-12-04 10:56:08 -08:00
Guillermo Rauch
7f83f59652
Release 1.6.4
2015-12-04 10:55:49 -08:00
Guillermo Rauch
1245bf2ec6
Release 1.6.4
2015-12-04 10:55:48 -08:00
Guillermo Rauch
23f3f03a27
package: bump parser for arraybuffer base64 fix
2015-12-04 10:29:16 -08:00
Guillermo Rauch
fee048d59e
package: bump parser for arraybuffer base64 fix
2015-12-04 10:20:04 -08:00
Guillermo Rauch
ca248c5238
Release 1.2.4
2015-12-04 09:58:57 -08:00
Guillermo Rauch
b90008770f
Merge pull request #372 from socketio/revert-371-use/yeast
...
Revert "server: use `yeast` to generate the socket id"
2015-12-03 11:46:45 -08:00
Guillermo Rauch
e77118af61
Revert "server: use yeast to generate the socket id"
2015-12-03 11:46:38 -08:00
Guillermo Rauch
0b7f1b53fc
Merge pull request #371 from lpinca/use/yeast
...
server: use `yeast` to generate the socket id
2015-12-03 11:46:00 -08:00
Luigi Pinca
08e8d67fe6
server: use yeast to generate the socket id
2015-12-03 19:29:18 +01:00
Guillermo Rauch
709ceba00a
package: bump socket.io-adapter for release
2015-12-03 10:28:33 -08:00
Luigi Pinca
daeddf1f83
server: remove unused dependencies and fix indentation
2015-12-03 19:23:27 +01:00
Guillermo Rauch
efd6141dbd
Release 0.4.0
2015-12-03 10:12:35 -08:00
Guillermo Rauch
d16e46df36
Merge pull request #30 from manubb/master-patched
...
Use a Room class to efficiently track room size.
2015-12-03 09:41:32 -08:00
Guillermo Rauch
d3ec23c6dd
Merge pull request #34 from nkzawa/patch-2
...
Remove browsers setting from .zuul.yml
2015-12-02 11:20:05 -08:00
Guillermo Rauch
62f6db6516
Merge pull request #53 from nkzawa/patch-7
...
Remove browsers setting from .zuul.yml
2015-12-02 11:19:51 -08:00
Guillermo Rauch
1e7b9ebcb8
Merge pull request #416 from lpinca/use/yeast
...
transports: use `yeast` to generate the cache busting id
2015-12-02 09:27:52 -08:00
Guillermo Rauch
cf1b304b38
Merge pull request #425 from lpinca/fix/documentation
...
README: fix the description of the `timestampRequests` option
2015-12-02 09:26:36 -08:00
Guillermo Rauch
0e6025be8f
Merge pull request #443 from nkzawa/patch-23
...
Remove browsers setting from .zuul.yml
2015-12-02 09:23:28 -08:00
Guillermo Rauch
9855ab22f0
Merge pull request #444 from nkzawa/patch-24
...
IPv6 support
2015-12-02 09:23:20 -08:00
Guillermo Rauch
6e9f26bee3
Merge pull request #445 from nkzawa/patch-25
...
Update .travis.yml
2015-12-02 09:22:59 -08:00
Naoyuki Kanezawa
0d3eaca617
Merge pull request #52 from darrachequesne/patch-1
...
Fix ArrayBuffer encoding in base64 string
2015-12-02 22:24:49 +09:00
nkzawa
8239a59a60
update .travis.yml
2015-12-02 21:25:43 +09:00
nkzawa
97cb6c61e9
add a test
2015-12-02 20:46:29 +09:00
Damien Arrachequesne
96fa4f907a
Fix ArrayBuffer encoding in base64 string
2015-12-02 10:49:33 +01:00
nkzawa
1096ca6f61
fix ipv6 support and add tests
2015-12-02 17:59:11 +09:00
hell
54f020ec1a
ipv6 url support
2015-12-02 15:54:17 +09:00
nkzawa
71a1f5f80a
remove browsers setting from .zuul.yml
2015-12-02 11:03:13 +09:00
nkzawa
ed826922d8
remove browsers setting from .zuul.yml
2015-12-02 11:01:44 +09:00
nkzawa
c05b569e06
remove browsers setting from .zuul.yml
2015-12-02 10:58:06 +09:00
Guillermo Rauch
b29312bc61
package: bump engine.io for node 0.8 fix
2015-12-01 12:15:36 -08:00
Guillermo Rauch
ec673d11f1
Release 1.6.3
2015-12-01 12:15:07 -08:00
Guillermo Rauch
c4d9b6e077
Release 1.6.3
2015-12-01 12:15:07 -08:00
Guillermo Rauch
22ebac4860
fix tests for 0.8
2015-12-01 11:41:49 -08:00
Guillermo Rauch
5a1b36e9bd
restore testing on 0.8
2015-12-01 11:36:29 -08:00
Guillermo Rauch
98d9fe3f59
fix tests on node 0.8
2015-12-01 11:35:54 -08:00
Guillermo Rauch
51901160df
package: temporarily revert version for tests
2015-12-01 11:24:06 -08:00
Guillermo Rauch
4fd450d530
Merge pull request #370 from nkzawa/patch-11
...
Improve X-XSS-Protection header definition
2015-12-01 10:51:42 -08:00
Guillermo Rauch
03e8f7106d
Merge pull request #442 from nkzawa/permessage-deflate-threshold
...
Threshold for permessage-deflate
2015-12-01 10:50:37 -08:00
nkzawa
78b287742d
improve X-XSS-Protection header definition
2015-12-01 23:03:44 +09:00
nkzawa
a1c464b901
fix a test
2015-12-01 16:52:40 +09:00
Guillermo Rauch
b54cb5b555
Merge pull request #369 from nkzawa/permessage-deflate-threshold
...
Threshold for permessage-deflate
2015-11-30 22:49:54 -08:00
nkzawa
f848c0db6c
remove compress option from control packets
2015-12-01 15:36:29 +09:00
nkzawa
cc8200fd21
threshold for permessage-deflate
2015-12-01 15:31:31 +09:00
nkzawa
1472a79884
remove the compress option from control packets
2015-12-01 14:28:33 +09:00
nkzawa
b56603169a
add threshold for permessage-deflate
2015-12-01 14:21:53 +09:00
Guillermo Rauch
ab1b36e13f
package: bump engine.io for ws memory fix
2015-11-30 08:16:21 -08:00
Guillermo Rauch
dc79cdd824
Release 1.6.2
2015-11-30 08:15:53 -08:00
Guillermo Rauch
28a0885e65
Release 1.6.2
2015-11-30 08:15:52 -08:00
Guillermo Rauch
2a502fe303
package: bump engine.io
2015-11-30 08:13:38 -08:00
Guillermo Rauch
de702fed1e
package: bump engine.io-client
2015-11-30 08:13:18 -08:00
Guillermo Rauch
fef2d170aa
package: bump ws for memory fix with compression
2015-11-30 08:09:55 -08:00
Guillermo Rauch
6786ad7233
package: bump ws for memory fix with compression
2015-11-30 08:09:40 -08:00
Guillermo Rauch
b7c5f1dbe7
Merge pull request #441 from nkzawa/patch-22
...
Fix typo
2015-11-30 08:08:53 -08:00
nkzawa
f58f20d303
Fix typo
2015-11-30 22:12:58 +09:00
Guillermo Rauch
f3a0dc7b74
Merge pull request #368 from nkzawa/patch-10
...
Don't compress control packets
2015-11-29 09:39:41 -08:00
nkzawa
5092c4fc95
don't compress control packets
2015-11-29 23:27:08 +09:00
Guillermo Rauch
f7a2f35590
package: bump engine.io
2015-11-28 16:34:44 -08:00
Guillermo Rauch
11ae0fff39
Release 1.6.1
2015-11-28 16:33:55 -08:00
Guillermo Rauch
afda51a648
Release 1.6.1
2015-11-28 16:33:54 -08:00
Guillermo Rauch
41e7a468a9
package: bump engine.io-client for ws options fix
2015-11-28 16:33:04 -08:00
Guillermo Rauch
4953e76edc
package: use published engine.io-parser
2015-11-28 16:31:43 -08:00
Guillermo Rauch
3aee0c7ec0
Release 1.2.3
2015-11-28 16:31:29 -08:00
Guillermo Rauch
672c5525c4
Merge pull request #437 from Nibbler999/packet-options
...
Fix packet options
2015-11-28 16:27:48 -08:00
Guillermo Rauch
c348737fe6
socket.io: increase large binary data test timeout
2015-11-28 15:13:13 -08:00
Guillermo Rauch
dde3737165
package: bump engine.io for release
2015-11-28 12:07:08 -08:00
Guillermo Rauch
9a2c73fc4d
update deps and fix example
2015-11-28 12:00:39 -08:00
Guillermo Rauch
feb2d20b17
Merge branch 'master' of github.com:socketio/engine.io-client
2015-11-28 11:53:46 -08:00
Guillermo Rauch
705fec3d1c
Release 1.6.0
2015-11-28 11:53:37 -08:00
Guillermo Rauch
d80641e141
Release 1.6.0
2015-11-28 11:53:36 -08:00
Guillermo Rauch
8df4c7931b
Merge pull request #2325 from darrachequesne/patch-2
...
Trigger callback even when joining an already joined room
2015-11-28 10:56:46 -08:00
Damien Arrachequesne
1dfacc6647
Trigger callback even when joining an already joined room
2015-11-27 22:08:18 +01:00
Guillermo Rauch
b40b2bae5d
Merge pull request #438 from nkzawa/patch-20
...
Fix syntax error on IE9 tests
2015-11-26 11:44:37 -08:00
nkzawa
e55cf32691
fix the case where done() called multiple times
2015-11-27 03:59:17 +09:00
nkzawa
281bf7e759
fix Syntax error on IE9 tests
2015-11-27 03:56:28 +09:00
Guillermo Rauch
35a0fe0377
package: bump parser
2015-11-25 10:14:56 -08:00
Guillermo Rauch
032350c569
Merge branch 'master' of github.com:socketio/socket.io-parser
2015-11-25 10:13:04 -08:00
Guillermo Rauch
b5f7c7573a
Release 2.2.6
2015-11-25 10:12:58 -08:00
Guillermo Rauch
67094a2e85
Merge pull request #33 from nkzawa/patch-1
...
Build on Node 4 and 0.12, remove env settings
2015-11-25 08:39:20 -08:00
nkzawa
1a762375ac
build on Node 4 and 0.12, remove env settings
2015-11-26 01:08:51 +09:00
Guillermo Rauch
9deffc255e
container infra
2015-11-24 12:58:07 -08:00
Guillermo Rauch
e1d85d47d5
container infra
2015-11-24 12:57:42 -08:00
Guillermo Rauch
5b89b78d3c
Merge pull request #51 from nkzawa/patch-6
...
ngrok v2 setup
2015-11-24 11:36:25 -08:00
Guillermo Rauch
4e1061eefe
Merge pull request #32 from nkzawa/patch-0
...
Build matrix and ngrok v2 setup
2015-11-24 11:36:17 -08:00
nkzawa
3b26ac037d
build matrix and ngrok v2 setup
2015-11-25 03:20:41 +09:00
nkzawa
7ee96e97fb
ngrok v2 setup
2015-11-25 03:05:17 +09:00
Tom Atkinson
b4fe763833
Fix packet options
2015-11-23 22:56:34 +01:00
Guillermo Rauch
b9ba0ec0fc
Merge pull request #367 from darrachequesne/patch-1
...
Add hasOwnProperty checks
2015-11-23 10:05:46 -08:00
Guillermo Rauch
3b00312fa7
namespace: clear rooms flag after a clients call ( fixes #1978 )
2015-11-23 09:40:57 -08:00
Guillermo Rauch
7b420295ef
Merge pull request #2249 from pmq20/minqi-another
...
[Travis] Add Node 4.x to the test matrix
2015-11-23 09:31:48 -08:00
Guillermo Rauch
c504315982
Merge pull request #2322 from darrachequesne/issue-2199-clean
...
Add hasOwnProperty checks
2015-11-23 09:19:35 -08:00
Guillermo Rauch
520b5c37d5
Merge pull request #2321 from nkzawa/patch-6
...
Update redirects in README
2015-11-23 09:19:03 -08:00
Damien Arrachequesne
cf9b0298a1
Add hasOwnProperty checks
2015-11-23 15:13:19 +01:00
Damien Arrachequesne
09f446eca0
Add hasOwnProperty checks
2015-11-23 15:12:21 +01:00
Naoyuki Kanezawa
aecf3bf71c
Merge pull request #2218 from futbalguy/master
...
Clarified documentation of Socket.in
2015-11-23 17:37:07 +09:00
nkzawa
6c0a79e2b9
update redirects in README
2015-11-23 17:28:11 +09:00
Guillermo Rauch
8bedf60b32
Merge pull request #436 from nkzawa/patch-19
...
Set ngrok authtoken
2015-11-22 10:36:51 -08:00
Guillermo Rauch
44b7d3e57b
Merge pull request #50 from nkzawa/patch-5
...
Fix encoding blob as base64
2015-11-22 10:36:06 -08:00
Guillermo Rauch
8683206e31
Merge pull request #2239 from darrachequesne/issue-2199
...
converted arrays to objects
2015-11-22 10:34:57 -08:00
Guillermo Rauch
988d9d2346
Merge pull request #1999 from nkzawa/patch-3
...
Fix a few assertions are not executed properly
2015-11-22 10:17:02 -08:00
Guillermo Rauch
97d54c66f1
Merge pull request #395 from nkzawa/patch-11
...
Enable to run most tests on Node environment
2015-11-22 10:03:02 -08:00
Naoyuki Kanezawa
f2a825557c
Merge pull request #23 from chylli/fix-event-order
...
fix the order of events
2015-11-23 00:33:00 +09:00
nkzawa
643158dc42
Merge branch 'master' into patch-11
2015-11-22 19:41:01 +09:00
Damien Arrachequesne
b73d9bea4e
converted arrays to objects
2015-11-22 11:12:40 +01:00
nkzawa
faa0913703
fix test failures on iOS 6.1
2015-11-22 16:39:28 +09:00
nkzawa
685cb719e8
fix encoding blob as base64
2015-11-22 16:05:26 +09:00
Naoyuki Kanezawa
d4fb6a5904
Merge pull request #2316 from tripu/master
...
Update “debug” to avoid vulnerability in “ms”
2015-11-22 10:39:23 +09:00
Guillermo Rauch
68128022a7
test with travis containers
2015-11-21 16:32:45 -08:00
tripu
0517c609ba
Avoid ^ in "debug" dependency ( fixes #2314 )
2015-11-21 23:59:16 +01:00
tripu
aa9438fee2
Update package "debug" to avoid "ms" vulnerability
2015-11-21 23:55:00 +01:00
Guillermo Rauch
aee466cc71
Update Readme.md
2015-11-21 10:54:19 -08:00
Guillermo Rauch
057f32d195
Merge pull request #318 from amiuhle/cookie-path
...
Cookie path
2015-11-21 10:47:26 -08:00
Guillermo Rauch
65f75d7732
Merge branch 'master' of github.com:socketio/socket.io
2015-11-21 10:46:26 -08:00
Guillermo Rauch
279c52a4c5
package: bump socket.io-parser
2015-11-21 10:45:43 -08:00
Guillermo Rauch
913ddb8c6e
Release 2.2.5
2015-11-21 10:45:33 -08:00
Guillermo Rauch
9e7652ee2d
package: bump debug
2015-11-21 10:42:42 -08:00
Guillermo Rauch
ab90f185ca
package: bump debug
2015-11-21 10:36:02 -08:00
Naoyuki Kanezawa
67d1a67b1c
Merge pull request #2319 from darrachequesne/patch-3
...
Minor fix
2015-11-21 23:21:39 +09:00
Damien Arrachequesne
aae68d74b1
Minor performance optimization
2015-11-20 22:03:03 +01:00
Damien Arrachequesne
bf5897cedc
Fixed tests with large data
2015-11-20 22:01:16 +01:00
Damien Arrachequesne
a1a1c6657a
Removed unused variable
2015-11-20 22:00:42 +01:00
Guillermo Rauch
2a4f7ae161
Merge pull request #2136 from nkzawa/patch-5
...
Don't set request property
2015-11-20 12:59:05 -08:00
Naoyuki Kanezawa
dba0576ca9
Merge pull request #2317 from ChaofengZhou/master
...
fixed a typo in the example code
2015-11-20 13:13:10 +09:00
Chaofeng
ba90f0991b
fixed a typo in the example code
2015-11-19 21:09:34 -07:00
Naoyuki Kanezawa
6387bb003c
Merge pull request #31 from gibson042/client-gh-898
...
update JSON3 to 3.3.2
2015-11-20 12:01:31 +09:00
Richard Gibson
009188fe98
update JSON3 to 3.3.2
...
Also updates zuul so `npm update` completes.
Fixes https://github.com/socketio/socket.io-client/issues/898
2015-11-19 21:37:02 -05:00
nkzawa
163ee97378
set ngrok authtoken
2015-11-20 03:27:21 +09:00
Guillermo Rauch
d5795d85d7
Merge pull request #435 from nkzawa/patch-18
...
Fix ngrok issues
2015-11-19 09:49:14 -08:00
Guillermo Rauch
6e0ecb4d3a
package: bump debug
2015-11-19 09:44:13 -08:00
Guillermo Rauch
d6d4ec22fa
socket: remove duplicate declaration ( fixes #434 )
2015-11-19 09:26:34 -08:00
Guillermo Rauch
96916b4e0f
package: bump debug ( fixes #433 )
2015-11-19 09:25:16 -08:00
nkzawa
c332633fd1
don't set authtoken on .zuul.yml
2015-11-20 01:15:51 +09:00
nkzawa
c3ab8acf1d
bump zuul and zuul-ngrok
2015-11-20 01:15:24 +09:00
Guillermo Rauch
015d04c699
package: bump mocha
2015-11-18 19:54:11 -08:00
Guillermo Rauch
9a54e9cace
package: bump mocha
2015-11-18 19:53:25 -08:00
Guillermo Rauch
acf910e0b4
package: bump zuul-ngrok
2015-11-18 19:51:57 -08:00
Guillermo Rauch
9df4cb64b8
bump zuul-ngrok
2015-11-18 19:51:47 -08:00
Guillermo Rauch
49aa3cabae
Update .zuul.yml
2015-11-18 19:03:32 -08:00
Guillermo Rauch
3e64c3fcb6
Merge pull request #383 from Nibbler999/binary-node-client
...
Enable supportsBinary when running as a node client
2015-11-18 18:56:36 -08:00
Naoyuki Kanezawa
b5613dc23c
Merge pull request #399 from FoghostCn/patch-1
...
fix rejectUnauthorized bug
2015-11-19 11:17:45 +09:00
Naoyuki Kanezawa
478f298ff3
Merge pull request #417 from lpinca/fix/repository-url
...
package: fix repository url
2015-11-19 11:13:49 +09:00
Naoyuki Kanezawa
50c68de7d5
Merge pull request #423 from sanemat/revert-421-chore/zuul-ngrok
...
Revert "package: bump `zuul-ngrok`"
2015-11-19 11:10:46 +09:00
Guillermo Rauch
44dba83056
Update README.md
2015-11-18 17:49:27 -08:00
Guillermo Rauch
09e9b4f1ca
Update README.md
2015-11-18 17:49:08 -08:00
Guillermo Rauch
c8f525868a
package: bump has-binary
2015-11-18 16:56:06 -08:00
Guillermo Rauch
a39d7c2ae4
Merge pull request #2171 from KevinMartin/patch-1
...
Actually prevent double callbacks...
2015-11-18 12:56:01 -08:00
Guillermo Rauch
b79830edd7
Merge pull request #348 from nkzawa/patch-7
...
Fix polling transports and add tests for closing transports
2015-11-18 10:41:15 -08:00
Guillermo Rauch
8163660cda
Merge pull request #338 from nkzawa/patch-2
...
Call res.end() when polling error
2015-11-18 10:40:50 -08:00
Guillermo Rauch
1b9254c962
Merge pull request #354 from CantemoInternal/master
...
Add LICENSE file
2015-11-18 10:40:34 -08:00
Guillermo Rauch
12aeeb394a
Merge pull request #364 from nkzawa/patch-cert-expiration
...
Renew certs for tests to extend expiration date
2015-11-18 10:39:48 -08:00
Naoyuki Kanezawa
410d1086a9
Merge pull request #49 from sanemat/chore/travis-ci-node-v4
...
test on nodejs v4.0
2015-11-19 03:13:32 +09:00
Guillermo Rauch
1754a3ca34
Fix badges
2015-11-18 10:08:28 -08:00
Guillermo Rauch
2a86917ab3
fix badges
2015-11-18 10:08:11 -08:00
nkzawa
ce835c3b22
renew certs to extend expiration date
2015-11-19 02:46:44 +09:00
Naoyuki Kanezawa
3c9c544d9f
Merge pull request #347 from lpinca/fix/repository-url
...
package: fix repository url
2015-11-18 23:28:33 +09:00
Naoyuki Kanezawa
6a85f8e31a
Merge pull request #353 from DavidCai1993/patch-1
...
Fix a small typo
2015-11-18 23:23:14 +09:00
Guillermo Rauch
4ba266d404
Merge pull request #2307 from darrachequesne/patch-1
...
Upgrade npm version in order to fix node v0.8 build
2015-11-16 15:55:20 -08:00
Damien Arrachequesne
6b49779420
Upgrade npm version in order to fix node v0.8 build
2015-11-17 00:44:42 +01:00
Guillermo Rauch
f1f5b621f0
Merge pull request #326 from shinnn/container-based-build
...
Use container-based infrastructure for faster build
2015-11-16 13:50:44 -08:00
Guillermo Rauch
fb811bf200
Merge pull request #305 from lbdremy/fix/set-encoding-before-listening-on-data
...
Set encoding of the request to utf8 before listening on data events
2015-11-16 13:27:28 -08: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
Guillermo Rauch
ef52967301
Merge pull request #2271 from dazorni/master
...
Working travis build status
2015-11-16 13:12:26 -08:00
Guillermo Rauch
fde38b1bd7
Merge pull request #2208 from odeke-em/fix-legacy-repo-info
...
README: fixed up legacy repo links
2015-11-16 13:10:24 -08:00
Sebastian Zorn
75da57abb2
Working travis build status
2015-10-06 21:42:33 +02:00
nkzawa
02f9ed8173
remove listeners upon clearTransport
2015-09-30 05:26:51 +09:00
nkzawa
d74b3c7277
Merge branch 'master' into patch-7
2015-09-30 02:36:25 +09:00
Sergey Nuzdhin
b166d99b64
Add LICENSE file
2015-09-28 14:18:29 +02:00
DavidCai
829c4b5ec1
Fix a small typo
...
Fix a small typo
2015-09-24 15:03:57 +08:00
Samuel Reed
d29511f991
Prevent v8 deopt when using [].slice.call(arguments)
2015-09-22 17:17:11 -05:00
Guillermo Rauch
21ea31a34e
Merge branch '1.3.7-patch'
2015-09-21 04:30:59 +04:00
Guillermo Rauch
e2ebd4349b
Release 1.3.7
2015-09-21 04:21:11 +04:00
Guillermo Rauch
b771f74a22
package: bump socket.io-client for node4 compatibility
2015-09-21 04:16:59 +04:00
Guillermo Rauch
8744007dc7
package: bump engine.io for node4 compatibility
2015-09-21 04:10:19 +04:00
P.S.V.R
3658928ee7
[Travis] Add Node 4.x to the test matrix
2015-09-16 17:39:26 +08:00
Luigi Pinca
1ae07662bc
README: fix the description of the timestampRequests option
2015-09-14 13:36:24 +02:00
Guillermo Rauch
ea5b5f24cf
Merge pull request #422 from nkzawa/patch-16
...
bump engine.io and fix a test
2015-09-13 16:53:52 -07:00
Luigi Pinca
874484cc1e
transports: use yeast to generate the cache busting id
2015-09-12 08:28:15 +02:00
Luigi Pinca
3a0c95ae42
package: fix repository url
2015-09-12 08:17:04 +02:00
Luigi Pinca
f70799c845
package: fix repository url
2015-09-12 08:09:24 +02:00
Murahashi Sanemat Kenichi
808e9eb7eb
Revert "package: bump zuul-ngrok"
2015-09-12 05:55:45 +09:00
nkzawa
38df10d5f5
fix a test
2015-09-12 04:43:32 +09:00
nkzawa
c647fea97b
bump engine.io
2015-09-12 04:42:34 +09:00
sanemat
117b6bda4c
test on nodejs v4.0
2015-09-12 04:19:52 +09:00
Naoyuki Kanezawa
3df49bb86e
Merge pull request #351 from sanemat/chore/base64id-is-dep
...
base64id is not devDependency but dependency
2015-09-12 03:40:35 +09:00
sanemat
e1addf75f9
base64id is not devDependency but dependency
...
lib/server.js uses base64id
0e70cf26d0/lib/server.js (L10)
v1.5.4 has base64id as dependency
6032a13cbe/package.json (L27)
https://github.com/socketio/engine.io/pull/350
2015-09-12 03:28:02 +09:00
Guillermo Rauch
b4018857f6
Merge pull request #421 from sanemat/chore/zuul-ngrok
...
package: bump `zuul-ngrok`
2015-09-11 10:20:20 -07:00
Guillermo Rauch
0e70cf26d0
Merge pull request #350 from nkzawa/patch-8
...
Fix dependencies and tests
2015-09-11 10:19:29 -07:00
nkzawa
bb286d810f
fix tests fail on node 4.0
2015-09-11 05:19:42 +09:00
nkzawa
41bf79134c
fix dependencies
2015-09-11 04:46:14 +09:00
sanemat
50ab1b2d26
package: bump zuul-ngrok
...
ngrok@0.1.98 install fails, also does 0.1.99
[Bump ngrok@0.2.1 by cristiandouce](https://github.com/rase-/zuul-ngrok/pull/6 )
2015-09-10 10:27:21 +09:00
Guillermo Rauch
210e688732
package: bump engine.io
2015-09-09 15:47:14 -07:00
Guillermo Rauch
da24c1f50d
Merge branch '1.5.4-patch'
2015-09-09 15:42:44 -07:00
Guillermo Rauch
7e77dd511e
Merge branch '1.5.4-patch'
2015-09-09 15:42:23 -07:00
Guillermo Rauch
6032a13cbe
Release 1.5.4
2015-09-09 15:32:18 -07:00
Guillermo Rauch
df67ed6699
package: bump engine.io-parser
2015-09-09 15:08:38 -07:00
Guillermo Rauch
aede98157d
Release 1.5.4
2015-09-09 15:08:17 -07:00
Guillermo Rauch
6b9693977e
package: bump engine.io-parser
2015-09-09 15:07:13 -07:00
Guillermo Rauch
f4cd4afa8e
Release 1.2.2
2015-09-09 15:06:06 -07:00
Guillermo Rauch
4c48338962
remove iphone 4.3 from testing
2015-09-09 14:50:11 -07:00
Guillermo Rauch
b8179dc6f7
Merge pull request #46 from Nibbler999/iojs-3.0
...
Fix iojs 3.0 Buffer.buffer issue
2015-09-09 14:40:29 -07:00
Guillermo Rauch
8705870ed7
Merge branch '1.5.3-patch'
2015-09-09 09:09:00 -07:00
Guillermo Rauch
79c97b9bd3
Merge branch '1.5.3-patch'
2015-09-09 09:08:56 -07:00
Guillermo Rauch
5f7df5e012
Release 1.5.3
2015-09-09 09:06:57 -07:00
Guillermo Rauch
5ccbcf3106
Release 1.5.3
2015-09-09 09:06:55 -07:00
Guillermo Rauch
b608a5f43d
package: bump ws
2015-09-09 08:56:29 -07:00
Guillermo Rauch
1a115d3493
package: bump ws
2015-09-09 08:56:14 -07:00
Guillermo Rauch
4c28170107
Merge pull request #411 from johanneswuerbach/patch-2
...
ws 0.8.0
2015-09-09 08:55:21 -07:00
nkzawa
66d85e4a5c
add tests for closing transports
2015-09-09 03:55:32 +09:00
nkzawa
4bce72c160
call onClose and add close timeout on polling transport
2015-09-09 03:55:10 +09:00
Johannes Würbach
21bdcb85ac
ws 0.8.0
...
iojs 3 compatibility
2015-09-05 23:16:35 +02:00
Naoyuki Kanezawa
79a001d2e0
Merge pull request #337 from fmm/patch-1
...
Update server.js
2015-09-02 01:52:11 +09:00
Guillermo Rauch
ae5420b727
package: bump engine.io and socket.io-client
2015-08-30 10:51:25 -07:00
Guillermo Rauch
f3fd4bb7eb
Merge pull request #344 from nkzawa/patch-6
...
Fix sockets can stay open when upgrade failed
2015-08-29 13:45:04 -07:00
Guillermo Rauch
45f8e54134
Merge pull request #413 from nkzawa/patch-15
...
Remove iphone 4.3 for ci
2015-08-29 13:44:43 -07:00
Guillermo Rauch
7b1d4cb838
Merge pull request #343 from nkzawa/patch-5
...
Fix extraHeaders option and ping timeout tests
2015-08-29 13:44:32 -07:00
nkzawa
ba7226f377
fix unstable tests
2015-08-30 04:00:44 +09:00
nkzawa
bd4833d4ab
bump engine.io-client
2015-08-30 04:00:27 +09:00
nkzawa
a01e6c0d24
replace an unspported platform for ci
2015-08-30 03:50:02 +09:00
Naoyuki Kanezawa
d010541afd
Merge pull request #401 from jskrzypek/fix-package
...
package: remove 'xmlhttprequest' dep to restore fix from #396
2015-08-30 03:32:53 +09:00
Josh Kruder
38bde8c27e
Fix failing iphone and android connection tests.
2015-08-29 21:04:35 +03:00
Ryan Dunckel
9d21b8e57d
Rev has-cors dependency
...
Revving the has-cors dep to 1.1.0. Version 1.0.3 has a funky dep on a github version of the global module, which has been removed per component/has-cors#2 , released at component/has-cors@27e9b96 . This would round out resolving the github dep issues under the socketio umbrella.
2015-08-29 21:04:35 +03:00
Joshua Estrin Skrzypek
f8de441f34
package: remove 'xmlhttprequest' dep to restore fix from #396
...
Also remove duplicate deps and re-add component-inherit
Closes #384 , closes #358 , closes #348 , closes #402
2015-08-29 21:04:03 +03:00
nkzawa
deb7ae40a4
fix sockets can stay open when upgrade failed
2015-08-29 03:48:05 +09:00
Naoyuki Kanezawa
7ebcdea38d
Merge pull request #303 from lpinca/fix/attributions
...
CHANGELOG: fix attributions
2015-08-29 01:23:47 +09:00
Guillermo Rauch
90d3286dad
Merge pull request #336 from apeace/bug/socketio-1910
...
Fixes socket.io#1910 by calling transport.close() on ping timeout
2015-08-27 13:20:50 -07:00
Guillermo Rauch
dafce5d36e
Merge pull request #340 from nkzawa/patch-4
...
Ensure sockets are closed on error
2015-08-27 13:19:18 -07:00
Guillermo Rauch
4f6e3cfc09
Merge pull request #339 from nkzawa/patch-3
...
Fix transport readyState and leaking sockets
2015-08-27 13:19:07 -07:00
futbalguy
d5b3bb46f8
Clarified documentation of Socket.in
2015-08-23 10:12:23 -07:00
Tom Atkinson
664f2af8e7
Fix some additional test failures found in main engine.io test suite
2015-08-22 04:07:37 +02:00
Tom Atkinson
32980f8f63
Fix iojs 3.0 Buffer.buffer issue
2015-08-20 23:46:46 +02:00
nkzawa
5efbf46626
ensure sockets are closed on error
2015-08-21 03:37:49 +09:00
nkzawa
54617e994a
fix transport readyState
2015-08-21 02:15:26 +09:00
nkzawa
8c018befe3
call res.end when polling error
2015-08-20 03:10:50 +09:00
Emmanuel Odeke
575d35a371
README: fixed up legacy repo links
2015-08-16 20:36:39 -06:00
Filipe Martins
fd89de6232
Update server.js
...
Fixes index iteration on Int32Array type.
2015-08-10 16:48:22 -03:00
Andrew Peace
8e1f063c54
Fixes socket.io#1910 by calling transport.close() on ping timeout
2015-08-06 15:43:00 -04:00
Guillermo Rauch
e41483be9e
Merge branch '1.3.6-patch'
2015-07-14 20:04:44 -07:00
Guillermo Rauch
c79e787671
test: better timeout for stress test
2015-07-14 19:58:42 -07:00
Guillermo Rauch
a2f6bb99d6
Merge branch '1.3.6-patch'
2015-07-14 18:02:56 -07:00
Guillermo Rauch
3e4061bfef
Release 1.3.6
2015-07-14 17:59:50 -07:00
Guillermo Rauch
1ee39a4dd7
fix travis badge
2015-07-14 17:21:52 -07:00
Guillermo Rauch
4895258cae
fix travis badge
2015-07-14 17:21:00 -07:00
Guillermo Rauch
be12783a77
fix travis badge
2015-07-14 17:20:09 -07:00
Guillermo Rauch
a4dcf1958b
Merge commit '9e5dd3e5126f1e3a9929bea201c500d0f47bad5d'
2015-07-14 17:19:29 -07:00
Guillermo Rauch
9e5dd3e512
README: fix travis badge
2015-07-14 17:19:02 -07:00
Guillermo Rauch
4c1d691fe5
package: bump engine.io to fix build on windows
2015-07-09 09:28:43 -07:00
Guillermo Rauch
c7f265b515
Merge branch '1.5.2-patch'
2015-07-09 09:25:42 -07:00
Guillermo Rauch
17d61fe67b
Merge branch '1.5.2-patch'
2015-07-09 09:25:35 -07:00
Guillermo Rauch
8e6139bf12
Release 1.5.2
2015-07-09 09:24:36 -07:00
Guillermo Rauch
717e4af4b5
Release 1.5.2
2015-07-09 09:24:34 -07:00
Guillermo Rauch
709554f278
Merge branch '1.5.2-patch'
2015-07-09 09:17:48 -07:00
Guillermo Rauch
f3226b1ddf
Merge branch '1.5.2-patch'
2015-07-09 09:16:12 -07:00
Guillermo Rauch
f002d5b4db
server: fix test
2015-07-09 09:14:48 -07:00
Guillermo Rauch
c386926a34
package: bump engine.io (for tests)
2015-07-08 10:28:43 -07:00
Guillermo Rauch
788b50e651
package: bump engine.io-client (for tests)
2015-07-08 10:28:01 -07:00
Guillermo Rauch
421d573cda
package: bump ws to fix windows build issues
2015-07-08 10:25:38 -07:00
Guillermo Rauch
2807a2c34d
server: make error test pass consistently
2015-07-08 10:24:37 -07:00
Guillermo Rauch
fa75b47e1f
package: bump ws to fix build issues
2015-07-08 10:24:21 -07:00
Kevin Jose Martin
514aeb4fcd
Actually prevent double callbacks...
...
We declare `sent = false` and even check `if (sent)` is truthy, but we never set it to truthy, therefore it never really *prevents double callbacks*...
2015-07-06 11:36:00 -04:00
Guillermo Rauch
b54c255b9b
Merge pull request #333 from nkzawa/patch-1
...
Fix a test failure
2015-06-16 09:49:48 -07:00
Naoyuki Kanezawa
c78c6d82f3
fix a test failure
2015-06-17 01:10:22 +09:00
Guillermo Rauch
7df5c61dd8
package: bump client
2015-06-15 13:00:12 -07:00
Manuel Baclet
bac5b0ec32
Simplify and clarify.
2015-06-11 11:37:24 +02:00
Manuel Baclet
55274af45a
Small fix.
2015-06-11 11:36:06 +02:00
Manuel Baclet
1a5b6d4485
Comments on Room methods.
2015-06-11 10:58:40 +02:00
Manuel Baclet
f7e7c07fae
Remove some spaces.
2015-06-11 10:58:20 +02:00
Manuel Baclet
89bd58129d
Merge pull request #1 from kapouer/patch-1
...
Add missing closing curly brace
2015-06-11 10:37:30 +02:00
Jérémy Lal
930741ffa5
Add missing closing curly brace
2015-06-11 01:01:49 +02:00
Guillermo Rauch
e595a72d8e
Merge pull request #398 from Nibbler999/ws-write-packet-options
...
Fix websocket packet writing
2015-06-06 16:55:29 -07:00
Guillermo Rauch
337c601dc2
Merge pull request #332 from nkzawa/patch-0
...
Fix wrong packet referring
2015-06-06 16:55:17 -07:00
Guillermo Rauch
0637e072de
Merge pull request #400 from nkzawa/patch-13
...
Fix browserify setting
2015-06-06 16:54:37 -07:00
Naoyuki Kanezawa
cf035367e1
fix browserify setting
2015-06-07 01:36:14 +09:00
Nathan Rajlich
876833198d
Merge pull request #2111 from kemitchell/spdx-license
...
Use a Standard-Compliant License Identifier
2015-06-05 11:51:30 -07:00
Manuel Baclet
8e5bae4ad9
Add a newline at end of file.
2015-06-03 10:49:09 +02:00
Manuel Baclet
5c79d6ec27
Use a Room class to efficiently track room size.
2015-06-03 10:36:27 +02:00
Foghost
5ffe4478fb
fix rejectUnauthorized bug
...
fix bug even I set rejectUnauthorized=false it also throw err 'unable to verify the first certificate'
2015-06-02 17:53:43 +08:00
Guillermo Rauch
5138cfae3a
Merge pull request #396 from mjwwit/master
...
Switched xmlhttprequest dependency to a versioned one
2015-06-01 11:22:23 -04:00
Naoyuki Kanezawa
30d9d7fa6a
fix wrong packet referring
2015-05-31 16:05:25 +09:00
Tom Atkinson
295f91a94f
Fix websocket packet writing
2015-05-31 00:47:59 +02:00
Naoyuki Kanezawa
4d36d6c01a
don't set request property
2015-05-30 03:34:05 +09:00
Michael de Wit
e700bd28f9
Switched to xmlhttprequest-ssl package, a fork of xmlhttprequest.
2015-05-29 13:24:03 +02:00
Guillermo Rauch
43fa075ec4
bump client
2015-05-27 22:56:15 -07:00
Guillermo Rauch
91c7bde34b
Merge commit '342faf219793fc5c1f130fc33e3fb5422dab516d'
2015-05-27 22:55:15 -07:00
Guillermo Rauch
225793869c
package: bump engine.io
2015-05-27 13:38:56 -07:00
Guillermo Rauch
1ecf02e32f
package: bump engine.io-client
2015-05-27 13:08:57 -07:00
Guillermo Rauch
67ca376946
Merge branch 'master' of github.com:Automattic/engine.io-client
2015-05-27 12:59:43 -07:00
Guillermo Rauch
cabc130675
websocket: improve firing of drain in websocket transport
2015-05-27 12:59:20 -07:00
Guillermo Rauch
6ac9ac438a
socket: clean up buffers right after close event, not on a different tick
2015-05-27 12:58:48 -07:00
Guillermo Rauch
54680e6bcc
change the semantics of the write callback for polling transports. fire upon flush, not drain
2015-05-27 12:57:03 -07:00
Guillermo Rauch
c40039360b
test/server: remove callbackBuffer assertions
2015-05-27 12:55:53 -07:00
Guillermo Rauch
e7633370f3
server: remove assertion founded solely on a race condition (╯°□°)╯︵ ┻━┻
2015-05-27 12:45:31 -07:00
Guillermo Rauch
874a4a8535
package: bump client
2015-05-27 08:19:15 -07:00
Naoyuki Kanezawa
3dccceb179
Merge pull request #392 from johanneswuerbach/patch-2
...
ws v0.7.2
2015-05-27 23:48:03 +09:00
Naoyuki Kanezawa
7b30291eab
enable to run most tests on Node environment
2015-05-27 02:54:20 +09:00
Roman Shtylman
611d2a2b24
Merge pull request #44 from nkzawa/patch-4
...
Bump dependencies, update package.json and travis settings
2015-05-26 13:36:23 -04:00
Naoyuki Kanezawa
d8717c127f
bump dependencies, update package.json
2015-05-27 02:21:08 +09:00
Naoyuki Kanezawa
7802662bdc
update travis settings
2015-05-27 02:13:14 +09:00
Guillermo Rauch
93b571406e
package: bump engine.io to fix build issues
2015-05-25 14:34:10 -07:00
Nathan Rajlich
ab2bd0b7e9
Merge pull request #330 from johanneswuerbach/patch-2
...
ws v0.7.2
2015-05-25 12:45:45 -07:00
Guillermo Rauch
860af4dc0b
Merge pull request #325 from teambition/teambition
...
support custom socket id
2015-05-21 10:25:23 -07:00
Johannes Würbach
2e6f4b9f52
ws v0.7.2
...
iojs 2.x support
2015-05-16 19:53:23 +02:00
Johannes Würbach
212f289252
ws v0.7.2
...
iojs 2.x support
2015-05-16 19:52:43 +02:00
zensh
df4331dd1a
support custom socket id
2015-05-08 10:24:32 +08:00
Guillermo Rauch
cffcc89954
Merge pull request #391 from lpinca/fix/host-parsing
...
socket: fix host parsing for IPv6 URLs
2015-05-04 21:37:58 -07:00
Kyle Mitchell
98af793f07
use a valid SPDX license identifier
2015-05-05 00:08:44 +00:00
Luigi Pinca
f9d1becfba
socket: fix host parsing for IPv6 URLs
2015-05-02 15:17:13 +02:00
Guillermo Rauch
d0e03b6826
Merge pull request #327 from shinnn/svg-badges
...
Use SVG badges instead of PNG badges
2015-04-29 16:39:13 -07:00
Shinnosuke Watanabe
affbfc59b2
Use SVG badges instead of PNG badges
...
SVG badges look beautiful on retina displays.
2015-04-30 08:14:07 +09:00
Shinnosuke Watanabe
85e288098e
Use container-based infrastructure for faster build
...
http://docs.travis-ci.com/user/workers/container-based-infrastructure/
2015-04-30 08:07:53 +09:00
Guillermo Rauch
ec234f65e2
Merge pull request #385 from nevir/patch-2
...
Add a LICENSE file
2015-04-27 20:09:24 -07:00
Guillermo Rauch
e76a544f2e
Merge pull request #28 from nevir/patch-1
...
Add a LICENSE file
2015-04-27 20:09:11 -07:00
Naoyuki Kanezawa
9adacd9875
Merge pull request #323 from yujiosaka/fix_package_json
...
fix package.json wrongly referrering to self
2015-04-23 18:59:26 +09:00
yujiosaka
50604b8660
fix package.json wrongly referrering to self
2015-04-23 17:43:08 +09:00
Guillermo Rauch
9bbfbec30b
Merge pull request #386 from quartzjer/master
...
the 'ok' string isn't a very useful XHR response
2015-04-12 13:04:31 -07:00
Jeremie Miller
8874e795c2
the 'ok' string isn't very useful, but since this is text and we forced xhr to return an arraybuffer earlier, make it text again
2015-04-12 09:37:42 -06:00
Guillermo Rauch
3f72dd3322
Merge pull request #2063 from kapouer/patch-1
...
Let adapter.add find connected socket
2015-04-10 21:38:41 -07:00
Guillermo Rauch
485138b22e
bump engine.io
2015-04-10 14:48:54 -07:00
Guillermo Rauch
c9659791bb
Merge pull request #319 from adrai/master
...
added test case for extraHeaders (client)
2015-04-10 14:32:31 -07:00
Adriano Raiano
299ec66d0b
fixing test
2015-04-10 21:40:51 +02:00
Adriano Raiano
85a87c3d51
added test case for https://github.com/Automattic/engine.io-client/pull/379
2015-04-10 21:40:51 +02:00
Guillermo Rauch
d0d38220fb
Update Readme.md
2015-04-08 16:53:04 -07:00
Guillermo Rauch
b076a3cecc
bump engine.io
2015-04-08 10:31:33 -07:00
Guillermo Rauch
e566be74bc
package: bump engine.io-client
2015-04-08 10:29:39 -07:00
Guillermo Rauch
4f87aae6ee
socket: handle parser errors appropriately
2015-04-08 08:32:02 -07:00
Guillermo Rauch
40de4b1cc4
style
2015-04-08 08:29:22 -07:00
Guillermo Rauch
d31a3931ae
Merge pull request #379 from adrai/master
...
introduce extraHeaders (cookies)
2015-04-06 14:17:57 -07:00
Adriano Raiano
98ce907ac7
one test for xhr and one for ws
2015-04-06 23:07:07 +02:00
Guillermo Rauch
87ee832756
Merge pull request #375 from nkzawa/patch-9
...
Fix error when passing WebSocket#send the second argument on Safari
2015-04-05 17:26:44 -07:00
Guillermo Rauch
f8aa157d5d
remove proxy index file
2015-04-05 16:53:28 -07:00
Guillermo Rauch
0e13e9a268
bumped adapter
2015-04-05 15:52:59 -07:00
Guillermo Rauch
de5cba46ce
Merge pull request #26 from nkzawa/patch-0
...
Fix to apply volatile and compress flags when bloadcasting
2015-04-05 15:52:02 -07:00
Guillermo Rauch
916872587f
Merge pull request #2013 from nkzawa/namespace-flags
...
Supports flags on namespace
2015-04-05 15:51:54 -07:00
Guillermo Rauch
a7072845ea
Merge pull request #2006 from nkzawa/patch-4
...
improve Socket#packet and Client#packet and enable volatile and compress when broadcast
2015-04-05 15:51:49 -07:00
Guillermo Rauch
4a1a66ac70
Merge pull request #27 from mikaturunen/patch-1
...
Update package.json license
2015-04-05 15:50:32 -07:00
Guillermo Rauch
ce4048d9cf
Merge pull request #28 from nevir/patch-1
...
Add a LICENSE file
2015-04-05 15:50:24 -07:00
Guillermo Rauch
fb7c1984e8
expose ping and pong events
2015-04-05 15:46:30 -07:00
Timo Uhlmann
0c28be9ba5
Test & doc for cookiePath
2015-04-03 15:05:56 +02:00
Timo Uhlmann
d227719cf9
Allow overriding the cookiePath
2015-04-03 14:50:29 +02:00
Ian MacLeod
25ebaab56c
Add a LICENSE file
...
To appease the lawyery folk.
2015-04-02 14:57:05 -07:00
Ian MacLeod
53073e6a8c
Add a LICENSE file
...
To appease the lawyery folk
2015-04-02 14:55:54 -07:00
Ian MacLeod
4bf319b569
Add a LICENSE file
...
To appease the lawyery folk. Based this off of the [socket.io `LICENSE` file](https://github.com/Automattic/socket.io/blob/master/LICENSE )
2015-04-02 14:52:34 -07:00
Tom Atkinson
dc0482a839
Enable supportsBinary when running as a node client
2015-04-01 15:08:47 +02:00
Roman Shtylman
e5908fce1e
Merge pull request #381 from mikaturunen/patch-1
...
Update package.json license
2015-03-28 18:59:49 -07:00
Adriano Raiano
98c7074dae
document extraHeaders
2015-03-24 19:25:31 +01:00
Jérémy Lal
425409945b
Let adapter.add find connected socket
...
When a socket connects, it joins its own room, resulting in a call to adapter.add.
The adapter in turn should be able to find the socket by id.
2015-03-24 14:54:52 +01:00
Adriano Raiano
ed697edae6
do not special case cookies, introduce extraHeaders
2015-03-23 21:50:10 +01:00
Nathan Rajlich
257bb31888
Merge pull request #317 from mikaturunen/patch-1
...
Update package.json license
2015-03-20 08:40:24 -07:00
Mika Turunen
17a2097f6d
Update package.json license
2015-03-20 11:33:00 +02:00
Mika Turunen
4c7b1b1948
Update package.json license
2015-03-20 11:26:54 +02:00
Mika Turunen
6f9fe2e881
Update package.json license
2015-03-20 10:15:36 +02:00
Guillermo Rauch
5826ef0bb5
Merge pull request #2059 from rase-/update/debug
...
Bump debug to 2.1.3
2015-03-17 16:42:00 -07:00
Tony Kovanen
14e32a9bad
Bump debug to 2.1.3
2015-03-18 01:40:19 +02:00
Guillermo Rauch
6ff9e4685c
Merge pull request #316 from rase-/update/debug
...
Bump debug to 2.1.3
2015-03-17 16:25:22 -07:00
Tony Kovanen
c118be9d22
Bump debug to 2.1.3
2015-03-18 00:03:08 +02:00
Tony Kovanen
b984aff524
Merge pull request #380 from Automattic/update/debug-dep
...
package: update "debug" to v2.1.3
2015-03-17 23:58:14 +02:00
Nathan Rajlich
30756c4ae1
package: update "debug" to v2.1.3
2015-03-17 14:35:54 -07:00
Adriano Raiano
73970be23e
introduce cookies
2015-03-13 16:17:12 +01:00
TC
1dde0f3947
Allowing a custom function for opts.allowRequest
2015-03-12 15:50:31 -06:00
Guillermo Rauch
342faf2197
Release 1.3.5
2015-03-03 10:50:10 -08:00
Guillermo Rauch
12c6ee132d
improve test
2015-03-03 10:34:56 -08:00
Guillermo Rauch
c9d909c993
package: bump socket.io-parser
2015-03-03 10:34:40 -08:00
Guillermo Rauch
6455fb2761
Release 2.2.4
2015-03-03 10:34:16 -08:00
Guillermo Rauch
7363746e8a
added test
2015-03-03 10:33:51 -08:00
Guillermo Rauch
59d2329731
index: fix off-by-one bound checks
2015-03-03 10:22:09 -08:00
Guillermo Rauch
125ab51338
test: added test for parser breakage
2015-03-03 10:08:26 -08:00
Guillermo Rauch
600ed08b69
package: bump ws
2015-03-02 10:47:56 -08:00
Guillermo Rauch
663c85b9fe
test with 0.12
2015-02-19 15:38:51 -08:00
Guillermo Rauch
b31ac18554
test with 0.12
2015-02-19 15:38:35 -08:00
Naoyuki Kanezawa
53cdd8f1fc
support flags on namespace
2015-02-20 03:34:09 +09:00
Naoyuki Kanezawa
86c74520cd
fix error when passing WebSocket#send second argument on Safari
2015-02-19 03:35:07 +09:00
Guillermo Rauch
cdd97fad3e
Merge pull request #374 from 3rd-Eden/patch-1
...
[deps] Bump ws, 0.7 prevents build failures that could be caused by bina...
2015-02-16 21:56:44 -08:00
Naoyuki Kanezawa
81aea995ed
improve Socket#packet and Client#packet
2015-02-15 04:33:20 +09:00
Guillermo Rauch
1b2d902f33
Release 1.3.4
2015-02-14 10:57:50 -08:00
Guillermo Rauch
9536437907
package: bump socket.io-client
2015-02-14 10:55:15 -08:00
Naoyuki Kanezawa
bd48c2f292
set flags as an option object
2015-02-15 03:08:45 +09:00
Guillermo Rauch
49fa6fc4ab
Merge pull request #42 from rase-/update/bump-zuul-and-add-ngrok
...
Bump zuul and use ngrok
2015-02-13 15:45:47 -08:00
Guillermo Rauch
24aa77ec8c
Merge pull request #373 from rase-/update/bump-zuul-and-use-ngrok
...
Bump zuul and use ngrok
2015-02-13 15:45:40 -08:00
Jonathan Ong
4d18307a2c
1.2.0
2015-02-12 10:33:32 -08:00
Naoyuki Kanezawa
b34d74c7ae
fix adding events which have same names with methods of Object
2015-02-12 10:31:39 -08:00
Remy Loubradou
98e5890591
Set encoding of the request to utf8 before listening on data events
2015-02-12 18:46:06 +01:00
Naoyuki Kanezawa
56fe26661d
fix a few assertions
2015-02-12 06:09:30 +09:00
Guillermo Rauch
64bd486ea5
semicolon
2015-02-11 08:24:36 -08:00
Arnout Kazemier
81374e1ff2
[deps] Bump ws, 0.7 prevents build failures that could be caused by binary add-ons.
2015-02-11 16:06:28 +01:00
Tony Kovanen
4424a75290
Bump zuul and use ngrok
2015-02-10 11:13:13 +02:00
Tony Kovanen
2fceba70aa
Bump zuul and use ngrok
2015-02-10 11:10:05 +02:00
Guillermo Rauch
29974ac777
Release 1.3.3
2015-02-03 17:27:51 -08:00
Guillermo Rauch
ef23c74bea
remove compression tests
2015-02-03 17:07:43 -08:00
Guillermo Rauch
49423d70bc
added failing tests
2015-02-03 17:04:33 -08:00
Guillermo Rauch
715c7f99b4
socket: warn node_redis-style about missing error
2015-02-03 17:04:06 -08:00
Guillermo Rauch
f2ea965c6b
package: bump parser
2015-02-03 16:32:48 -08:00
Guillermo Rauch
a93d05a9f3
package: bump parser
2015-02-03 16:30:49 -08:00
Guillermo Rauch
c4bfb06a72
Release 2.2.3
2015-02-03 16:28:11 -08:00
Guillermo Rauch
e77fc4c32b
index: fix potential infinite loop with malicious binary packet
2015-02-03 16:26:53 -08:00
Guillermo Rauch
5ce06d3088
socket: warn node_redis-style about missing error
2015-02-03 16:26:21 -08:00
Guillermo Rauch
816bfec783
added failing tests
2015-02-03 16:26:08 -08:00
Guillermo Rauch
0a17c90d7a
test: added failing test
2015-02-03 15:10:46 -08:00
Guillermo Rauch
d7961dd189
remove legacy travis env vars
2015-02-02 17:03:29 -08:00
Guillermo Rauch
3645741b86
test: increase timeout for large binary data test
2015-01-31 09:35:37 -08:00
Guillermo Rauch
f2a7322b5a
update deps
2015-01-31 08:46:32 -08:00
Guillermo Rauch
ae79d87274
allow clients(fn)
2015-01-31 08:41:21 -08:00
Guillermo Rauch
cb6e0d8b45
Merge pull request #24 from cha0s/clients
...
Suggestion for implementation of clients API
2015-01-31 08:40:16 -08:00
Guillermo Rauch
97c6568f65
Merge pull request #1966 from cha0s/clients
...
Suggestion for implementation of clients API
2015-01-31 08:34:43 -08:00
Ruben Rodriguez II
8814825a35
Suggestion for implementation of clients API
2015-01-31 02:17:49 -06:00
Guillermo Rauch
58eaecad27
Merge branch 'master' of github.com:Automattic/socket.io
2015-01-29 20:39:00 -08:00
Guillermo Rauch
94157e650e
point to master
2015-01-29 20:38:36 -08:00
Guillermo Rauch
0935b81da2
Merge pull request #1963 from michael-luo/bugfix/1956
...
bugfix/1956 test for don't reuse same-namespace connections
2015-01-29 20:34:38 -08:00
Luigi Pinca
51afe50720
CHANGELOG: fix attributions
2015-01-27 09:25:02 +01:00
Ruben Rodriguez II
cba037ffa2
Suggestion for implementation of clients API
2015-01-25 18:59:07 -06:00
Michael Luo
afa871bb8a
bugfix/1956 test for don't reuse same-namspace connections
2015-01-24 20:19:16 -08:00
Tony Kovanen
90b72de2cd
Merge pull request #369 from nkzawa/patch-8
...
Fix variable names for tests
2015-01-24 23:16:42 +02:00
Naoyuki Kanezawa
9f42b8b41f
fix variable name for tests
2015-01-25 05:25:40 +09:00
Guillermo Rauch
1b01e16a6c
fix broken previous commit
2015-01-24 08:02:05 -08:00
Guillermo Rauch
bd6f638c8f
package: bump to work with all objects ( fixes #1955 )
2015-01-24 07:06:30 -08:00
Guillermo Rauch
83b36e54ac
Merge pull request #1958 from nkzawa/compress
...
Support compression
2015-01-23 10:04:43 -08:00
Guillermo Rauch
2f0d9d05af
fix origin verification default https port [evanlucas]
...
for PR #1693
2015-01-22 21:41:59 +00:00
Naoyuki Kanezawa
429eb0cb7c
point to the specific commit
2015-01-22 05:26:37 +09:00
Naoyuki Kanezawa
ac8e8598d7
support compression
2015-01-22 05:01:45 +09:00
Guillermo Rauch
599021ff1e
Merge pull request #365 from nkzawa/compression
...
support permessage-deflate extension
2015-01-21 19:52:33 +00:00
Guillermo Rauch
ddc64a2d12
Merge pull request #299 from nkzawa/compression
...
Support compression
2015-01-21 19:37:47 +00:00
Naoyuki Kanezawa
f0096f6cbd
Merge branch 'master' into compression
...
Conflicts:
package.json
2015-01-22 03:56:03 +09:00
Naoyuki Kanezawa
99b709cadc
Merge branch 'master' into compression
...
Conflicts:
package.json
2015-01-22 03:52:22 +09:00
Guillermo Rauch
9ba6d47ec7
Release 1.3.2
2015-01-19 15:14:18 +00:00
Guillermo Rauch
3d49cafd03
Release 1.3.1
2015-01-19 11:37:14 +00:00
Guillermo Rauch
77ca2dcbda
package: bump engine.io (noop)
2015-01-19 11:11:12 +00:00
Guillermo Rauch
ba530a4762
Release 1.5.1
2015-01-19 10:44:21 +00:00
Guillermo Rauch
8b2f97878c
Release 1.5.1
2015-01-19 10:44:17 +00:00
Guillermo Rauch
7e4aa4fa64
Release 1.3.0
2015-01-19 10:25:49 +00:00
Guillermo Rauch
b46e480f65
Update Readme.md
2015-01-19 09:26:12 +00:00
Guillermo Rauch
5e92dd8663
package: bump socket.io-client
2015-01-18 19:42:43 +00:00
Guillermo Rauch
f981d3f050
package: bump engine.io
2015-01-18 19:41:45 +00:00
Guillermo Rauch
e536f7aa40
Release 1.5.0
2015-01-18 19:24:22 +00:00
Guillermo Rauch
5b31a081e4
Release 1.5.0
2015-01-18 19:23:02 +00:00
Guillermo Rauch
9ee8666b52
Release 1.5.0
2015-01-18 19:23:01 +00:00
Guillermo Rauch
f57505fee7
Merge branch 'master' of github.com:Automattic/socket.io
2015-01-18 18:53:17 +00:00
Guillermo Rauch
f8f1b132a1
package: bump socket.io-client
2015-01-18 18:52:06 +00:00
Guillermo Rauch
f7f83bc09f
package: bump engine.io
2015-01-18 18:51:27 +00:00
Guillermo Rauch
2e21e92d85
package: bump zuul
2015-01-18 17:17:36 +00:00
Guillermo Rauch
82b68c7115
Merge pull request #368 from rase-/fix/ie-tests
...
Fix IE tests firing too many connections
2015-01-17 20:17:53 +00:00
Tony Kovanen
84eb8f13de
Fix IE tests firing too many connections
2015-01-18 22:13:14 +02:00
Guillermo Rauch
c50060d39d
package: use ngrok
2015-01-17 17:15:47 +00:00
Guillermo Rauch
dc3402eb0b
package: bump engine.io-parser
2015-01-17 12:31:47 +00:00
Guillermo Rauch
b57a5acc48
package: bump engine.io-parser
2015-01-17 12:31:17 +00:00
Guillermo Rauch
62f4298a88
Release 1.2.1
2015-01-17 12:30:53 +00:00
Guillermo Rauch
304a93d68f
Merge pull request #21 from marcooliveira/master
...
Fix confusing comment in `add`
2015-01-17 12:28:41 +00:00
Guillermo Rauch
ddf8e61cd6
Merge pull request #20 from marcooliveira/patch-1
...
Call the callback on `delAll`
2015-01-17 12:27:47 +00:00
Guillermo Rauch
3f7dde9e61
Merge pull request #41 from rase-/fix/parse-error
...
Fix parse error
2015-01-17 12:25:24 +00:00
Guillermo Rauch
b8ded0d725
Merge pull request #1903 from rase-/add/volatile-tests
...
Added tests for volatile
2015-01-17 12:23:06 +00:00
Guillermo Rauch
086ccd2708
Merge pull request #1938 from fay-jai/license
...
update license with up-to-date year range
2015-01-17 12:22:11 +00:00
Guillermo Rauch
864857cb6f
Merge pull request #1939 from rase-/add/test-for-emit-after-server-restart
...
Add test for reconnection after server restarts
2015-01-17 12:21:53 +00:00
Guillermo Rauch
e5a7e422f9
Merge pull request #1943 from eychu/patch-1
...
Add space in error message
2015-01-17 12:21:38 +00:00
Tony Kovanen
b21717b66d
Pass has-binary result to encodePacket
...
Needs to be done so thet individual packets don't get encoded as binary.
2015-01-16 21:28:01 +02:00
Tony Kovanen
44c7aa5ab9
Fix parse error
...
We always need to send binary when encoding payloads when sending from
server to client, because the polling transport has to know the response
type ahead of time.
2015-01-16 21:19:27 +02:00
Alexey Chuvashov
f5b75151bd
Add space in error message
2015-01-15 01:24:19 +03:00
Tony Kovanen
0523b655da
Add test for reconnection after server restarts
2015-01-14 17:22:50 +02:00
Roman Shtylman
92e08eee01
fix reference to this (typo from self commit)
2015-01-11 16:59:55 -08:00
Guillermo Rauch
e3fe9a2f44
Merge pull request #366 from Automattic/fix-default-port
...
fix default port detection when host is specified
2015-01-11 16:33:12 -08:00
Roman Shtylman
bfc48ec4ad
fix default port detection when host is specified
...
This fixes an issue when a full url is specified (i.e.
http://service.com ) the port would be the port from the page and not the
uri string. This is easily exposed if using external engine.io servers
on a page served up by localhost:3000 or similar from a development
page.
2015-01-11 16:32:35 -08:00
Guillermo Rauch
d0e8643d05
Revert "migrate this usage to self to help with client side minification"
...
This reverts commit d725d91db2 .
2015-01-11 15:59:43 -08:00
Roman Shtylman
d725d91db2
migrate this usage to self to help with client side minification
...
`this` cannot be effectively minified but using a local self allows for
local minifcation.
2015-01-11 15:51:35 -08:00
Guillermo Rauch
e0feeca3bf
package: bump client
2015-01-11 15:09:42 -08:00
Guillermo Rauch
959d5944eb
package: bump parser
2015-01-11 15:09:23 -08:00
Guillermo Rauch
1923fdc0c8
package: bump parser
2015-01-11 15:09:11 -08:00
Guillermo Rauch
b8ec539b30
Release 1.2.0
2015-01-11 15:08:45 -08:00
Guillermo Rauch
e1a8f55e25
remove envs
2015-01-11 14:54:18 -08:00
Willson Mock
d9415a38e4
update license with up-to-date year range
2015-01-11 00:11:55 -05:00
Roman Shtylman
ca82c09bf2
fix leaving unknown rooms
...
close #1670
2015-01-10 14:58:50 -08:00
Roman Shtylman
b9aaa1607c
Merge pull request #1922 from smart--petea/patch-1
...
Update Readme.md
2015-01-10 14:48:59 -08:00
Roman Shtylman
d1304c5d82
Merge pull request #1926 from coderaiser/patch-1
...
package: debug v2.1.0
2015-01-10 14:33:21 -08:00
Roman Shtylman
b477f2b7ef
README: fix ping/pong packet documentation
...
close #18
2015-01-10 10:27:23 -08:00
Guillermo Rauch
bd479a9cd6
Merge pull request #1936 from drewblaisdell/master
...
Allow null or undefined origins when allowed origins is a function
2015-01-09 16:36:38 -08: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
Guillermo Rauch
1c6620d564
everything is fixed
2015-01-09 16:25:42 -08:00
Guillermo Rauch
dba462e6da
fix tests on 0.11
2015-01-09 16:24:24 -08:00
Guillermo Rauch
19c4422361
package: fix npm test to run on windows
2015-01-09 13:57:45 -08:00
Grant Timmerman
2338755762
Fix return type for decodePacket
2015-01-09 10:54:28 -08:00
Grant Timmerman
81642975f0
Clarify README API
2015-01-09 10:54:28 -08:00
Grant Timmerman
2fe91aa98e
Cleaned up README explanations/code
2015-01-09 10:54:28 -08:00
Grant Timmerman
f2ab8d4ec5
Fixed spelling and formatting of README
2015-01-09 10:54:28 -08:00
Grant Timmerman
c54a46117e
Added API document
2015-01-09 10:54:28 -08:00
Roman Shtylman
2cbcd1eb11
Merge pull request #17 from pkyeck/master
...
fixed the payload format
2015-01-09 10:33:06 -08:00
Naoyuki Kanezawa
f6bf9f807f
support permessage-deflate
2015-01-06 03:20:08 +09:00
Naoyuki Kanezawa
d11e17c8d7
support compression
2015-01-06 02:11:39 +09:00
Guillermo Rauch
6699cd26cc
Merge pull request #297 from lpinca/close/data-request
...
polling: correctly abort the ongoing data request when closing transport
2015-01-03 14:17:34 -08:00
Luigi Pinca
9526e0d27f
polling: correctly abort the ongoing data request when closing transport
2015-01-03 21:13:43 +01:00
Pavel Kornilov
7abd6b0d62
refactor .once
2014-12-26 14:07:16 -08:00
coderaiser
8242dd01ef
package: debug v2.1.0
2014-12-26 14:16:27 +02:00
Chylli
e8f660f77f
fix the order of events
2014-12-26 16:30:52 +08:00
Badarau Petru
17960ed038
Update Readme.md
...
underylings to underlyings
2014-12-22 07:17:01 +02:00
Naoyuki Kanezawa
1e36bfee82
Merge pull request #296 from rase-/fix/build
...
Fix commit reference to client
2014-12-13 00:37:13 +09:00
Tony Kovanen
8fd8c71898
Fix commit reference to client
2014-12-12 17:25:08 +02:00
Guillermo Rauch
e53e9f5931
Merge pull request #36 from cvlchinet/patch
...
Allow sending binary data without ArrayBuffer (e. g. IE8)
2014-12-10 17:57:26 -03:00
Tony Kovanen
d9996f0470
Added tests for volatile
2014-12-08 11:19:49 +02:00
Guillermo Rauch
e352dbf834
Merge pull request #356 from rase-/add/ssl-options
...
Add ssl options
2014-12-04 13:40:33 -03:00
Guillermo Rauch
4cc7936688
Merge pull request #290 from rase-/add/cert-tests
...
Add ssl tests
2014-12-04 13:28:42 -03:00
Tony Kovanen
d0642f0a92
Merge pull request #38 from rase-/add/travis-matrix-support
...
Use travis matrix for better test runs
2014-12-03 22:19:24 +02:00
Tony Kovanen
aa865b921a
Use travis matrix for better test runs
2014-12-03 21:37:15 +02:00
Guillermo Rauch
384980074f
Merge pull request #37 from rase-/fix/binary-only-if-needed
...
Encode into binary only if needed
2014-12-03 00:39:56 -03:00
Tony Kovanen
68d89ab7a9
encode into binary only if needed
2014-12-03 02:07:10 +02:00
Guillermo Rauch
61648de3a2
Merge pull request #319 from samcday/no-abort-on-success
...
Only call xhr.abort() on error cases in polling-xhr.js
2014-12-02 18:21:35 -03:00
Tony Kovanen
9c72e51b13
Add certificate docs to README.
2014-11-24 07:06:09 -03:00
Tony Kovanen
cf9aa5dd34
Bump engine.io-client.
2014-11-24 05:00:11 -03:00
Tony Kovanen
ae2cfc59f3
Too much whitespace.
2014-11-24 04:57:51 -03:00
Tony Kovanen
13a58ed794
Bump XMLHttpRequest.
2014-11-24 04:57:51 -03:00
Tony Kovanen
f2a0d3b528
Add rest of the ssl related options found in https.request.
2014-11-24 04:57:51 -03:00
Tony Kovanen
b0b4bb841f
Bump XMLHttpRequest.
2014-11-24 04:57:51 -03:00
Tony Kovanen
66617e589f
Add options for SSL in ws and xhr.
2014-11-24 04:57:51 -03:00
Tony Kovanen
0a100b0054
Additional SSL tests.
2014-11-24 04:56:44 -03:00
Tony Kovanen
86e1e6f01e
Bump engine.io-client.
2014-11-24 04:56:44 -03:00
Tony Kovanen
b55a0e71b5
Add cert tests.
2014-11-24 04:56:08 -03:00
Guillermo Rauch
24d06d76dd
Release 1.2.1
2014-11-21 04:59:14 +01:00
Guillermo Rauch
4e4bbf918e
fix protocol violations and improve error handling ( fixes #1880 )
2014-11-21 04:16:37 +01:00
Guillermo Rauch
b49f5c82f2
syntax
2014-11-21 04:15:42 +01:00
Guillermo Rauch
5bd67195de
Merge branch 'master' of github.com:Automattic/socket.io
2014-11-21 02:57:35 +01:00
Guillermo Rauch
73fe547956
package: bump engine.io for websocket leak fix
2014-11-21 02:56:28 +01:00
Guillermo Rauch
d95ba537f8
Release 1.4.3
2014-11-21 01:31:03 +01:00
Guillermo Rauch
57ca9fea8e
Release 1.4.3
2014-11-21 01:31:03 +01:00
Guillermo Rauch
5255647e99
package: bump ws to fix fd leaks
2014-11-21 00:49:24 +01:00
Chi Vinh Le
2c1beccbb1
Add line space.
2014-11-20 23:49:46 +01:00
Chi Vinh Le
1e337d3f65
Add test cases for base64 object encoding.
2014-11-20 23:38:49 +01:00
Chi Vinh Le
7112b97908
Add encodeBase64Object to encoder for browser
2014-11-20 13:49:46 +01:00
Guillermo Rauch
73261316d6
Merge pull request #347 from crzidea/bump/debug
...
Bump debug module
2014-11-15 15:09:02 +09:00
Guillermo Rauch
f65d5d8ef0
Merge pull request #354 from divdavem/addEventListenersOldBrowsers
...
addEventListener requires 3 parameters in old browsers
2014-11-15 15:08:46 +09:00
Guillermo Rauch
f6d102a0bb
Merge pull request #357 from lpinca/update/browserify
...
support: make the build system work with the latest browserify
2014-11-15 15:07:50 +09:00
Guillermo Rauch
80aa1aaa49
Merge pull request #291 from lpinca/close/pending-request
...
polling: close the pending poll request when closing transport
2014-11-15 15:06:55 +09:00
Guillermo Rauch
b310fcba59
Merge pull request #294 from lpinca/fix/gh-293
...
socket: flush the write buffer before closing the socket (fixes #293 )
2014-11-15 15:06:36 +09:00
Guillermo Rauch
973e6cc982
Merge pull request #1813 from ogwiz2/patch-1
...
Made comments more consistent
2014-11-12 10:04:09 +01:00
Jonathan Ong
5890152d82
Merge pull request #55 from michaelsanford/master
...
Add MIT license to package.json
2014-11-03 08:55:49 -08:00
Michael Sanford
9d163a5144
Add MIT license to package.json
...
Allows license to be read programatically.
2014-11-03 11:53:08 -05:00
Marco Oliveira
73a1ae89de
Fix confusing comment in add
2014-11-01 15:05:52 +00:00
Marco Oliveira
29d2e46900
Call the callback on delAll
2014-11-01 14:52:27 +00:00
Luigi Pinca
f9e5555b59
support: make the build system work with the latest browserify
2014-10-30 15:28:58 +01:00
Guillermo Rauch
e66ea47c80
Merge pull request #19 from rase-/remove/keys-dependency
...
Remove unnecessary dependency
2014-10-27 19:15:16 -07:00
Tony Kovanen
e0220b7ce5
remove unnecessary dependency
2014-10-28 02:08:56 +02:00
Guillermo Rauch
4a0091b25a
Release 1.2.0
2014-10-27 15:54:57 -07:00
Guillermo Rauch
a1bf85b57f
package: bump socket.io-parser
2014-10-27 11:52:09 -07:00
Guillermo Rauch
62ad812ee5
package: use latest socket.io-client
2014-10-27 11:51:03 -07:00
Guillermo Rauch
9ae8ed6929
package: bump adapter
2014-10-27 11:46:44 -07:00
Guillermo Rauch
c22e10f635
Release 0.3.1
2014-10-27 11:46:21 -07:00
Guillermo Rauch
4a11c16cc2
package: bump socket.io-client
2014-10-27 11:09:44 -07:00
Guillermo Rauch
25238a4bed
test: remove test with partial browser support
2014-10-27 10:46:04 -07:00
Guillermo Rauch
b88a758857
package: bump engine.io
2014-10-27 07:47:51 -07:00
Guillermo Rauch
7de96249b0
Release 1.4.2
2014-10-27 07:47:15 -07:00
Guillermo Rauch
8bd41ad7b4
Release 1.4.2
2014-10-27 07:47:14 -07:00
Luigi Pinca
e754f7eb23
socket: flush the write buffer before closing the socket ( fixes #293 )
2014-10-25 22:04:16 +02:00
Luigi Pinca
1d8e074398
polling: close the pending poll request when closing transport
2014-10-24 17:23:32 +02:00
Tony Kovanen
1642bf1214
Merge pull request #341 from yujiosaka/master
...
IE10 should prefer using XHR2 over XDR because it's safer
2014-10-20 02:55:15 +03:00
Tony Kovanen
591cfb3cfe
Merge pull request #16 from rase-/fix/bump-parser
...
Bump parser version.
2014-10-18 21:25:01 +03:00
Tony Kovanen
7789a22eee
Bump parser version.
2014-10-18 21:22:35 +03:00
Guillermo Rauch
3352d1d726
Merge branch 'master' of github.com:Automattic/socket.io
2014-10-13 08:52:46 -07:00
Guillermo Rauch
e68557fab6
downloads badge
2014-10-13 08:52:36 -07:00
Tony Kovanen
6d908eeff6
Merge pull request #355 from nkzawa/patch-7
...
remove invalid value for strict mode
2014-10-10 23:45:16 +03:00
Naoyuki Kanezawa
002e23cdc4
remove invalid value for strict mode ( #344 )
2014-10-11 02:57:50 +09:00
ddivernois
22b2fc78f6
Fixed calls to addEventListener which requires 3 parameters in old browsers
2014-10-08 14:06:33 +02:00
Tony Kovanen
b72c7f1530
Merge pull request #34 from divdavem/phantomJS
...
Avoid sending Blobs on PhantomJS (as on Android)
2014-10-06 12:40:17 +03:00
ddivernois
d2e1e94ef5
Avoid sending Blobs on PhantomJS (as on Android)
...
Uploading a Blob with PhantomJS does not work correctly, as reported here:
https://github.com/ariya/phantomjs/issues/11395
2014-10-06 11:13:11 +02:00
Alex Jeng
136fe960b7
Made comments more consistent
2014-10-05 22:10:13 -07:00
Guillermo Rauch
51f0528417
Merge pull request #352 from rase-/fix/defer-until-drain
...
Fixed transport close deferring logic.
2014-10-04 18:05:54 -07:00
Tony Kovanen
b462865bcb
Fixed transport close deferring logic.
...
Transport can still be upgrading after deferring until the drain event.
2014-10-05 03:01:50 +03:00
Guillermo Rauch
0cc7cdfe6c
Merge pull request #289 from rase-/fix/jsonp-test
...
Add iframe onload handling to jsonp tests.
2014-10-04 16:13:00 -07:00
Tony Kovanen
c89b085556
Add iframe onload handling to jsonp tests.
...
`onload` handling required for the `drain` event to fire. We need this
for some tests that look at socket closing.
2014-10-05 02:11:23 +03:00
Guillermo Rauch
cbbe44fba8
Merge pull request #351 from nkzawa/patch-6
...
wait for buffer to be drained before closing
2014-10-04 13:25:18 -07:00
Naoyuki Kanezawa
866a56ed20
wait for buffer to be drained before closing
2014-10-04 21:57:35 +09:00
Guillermo Rauch
3eb5b8929d
Release 1.4.1
2014-10-03 10:17:39 -07:00
Guillermo Rauch
72c32caf3a
Release 1.4.1
2014-10-03 10:17:38 -07:00
Guillermo Rauch
457d2fe5cc
Merge pull request #349 from aaronk6/jsonpOnCloseFix
...
Fixed "jsonp polling iframe removal error" on connection close
2014-10-03 08:26:39 -07:00
Guillermo Rauch
aac04dfc98
Merge pull request #285 from lpinca/fix/gh-284
...
socket: allow upgrades if the socket is still in closing state (courtesy of @3rd-Eden)
2014-10-03 08:22:27 -07:00
aaronk6
d9f4317bae
Fixed "jsonp polling iframe removal error" on connection close when using polling (JSONP) transport
2014-09-30 12:29:52 +02:00
Luigi Pinca
00caf543b8
socket: allow upgrades if the socket is still in closing state
...
Fixes #284 , courtesy of @3rd-Eden
2014-09-26 16:01:11 +02:00
李鑫(媒体内容业务线.202368)
0d4cda1fbb
Bump debug module
2014-09-26 09:29:32 +08:00
Tony Kovanen
b4c1d063d4
Merge pull request #346 from rase-/fix/tests
...
Move ws upgrade needing connection tests to a block checking browser support
2014-09-26 01:43:32 +03:00
Tony Kovanen
16f1a06d97
Move ws upgrade needing connection tests to a block checking browser support.
2014-09-26 01:41:43 +03:00
Guillermo Rauch
0097a5e255
Merge pull request #324 from nkzawa/patch-5
...
Defer close while upgrading a transport
2014-09-25 15:32:33 -07:00
Tony Kovanen
da358084f0
Merge pull request #1773 from AjayMT/master
...
Fix usage example for Server#close.
2014-09-26 01:13:18 +03:00
Tony Kovanen
f9efb1eae6
Merge pull request #254 from pawelatomic/master
...
added missing support for XSS filters on IE
2014-09-25 23:51:48 +03:00
Tony Kovanen
522215951b
Merge pull request #280 from reem/patch-1
...
README: Fix typo http_server.
2014-09-25 23:39:41 +03:00
Guillermo Rauch
d4b4051290
Merge pull request #7 from keskival/master
...
Updated the dependency version to be compatible with a current stack.
2014-09-25 10:20:50 -07:00
Tero Keski-Valkama
f2cdb95985
Merged.
2014-09-25 19:50:29 +03:00
Tony Kovanen
1b4f6a5324
Merge pull request #1777 from akamensky/dynamic-cors
...
Dynamic cors
2014-09-22 13:38:14 -06:00
Tony Kovanen
99346eddc5
Merge pull request #1788 from jamesanthonyferguson/patch-1
...
Change grammar issues in the chat/README.md
2014-09-22 12:42:59 -06:00
Tony Kovanen
051ffa0440
Merge pull request #1626 from thanpolas/patch-1
...
http.Server is a constructor
2014-09-22 12:42:10 -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
Tony Kovanen
bafa184c6b
Merge pull request #1792 from rase-/add/autopruning-test
...
Add room autopruning test
2014-09-22 12:25:23 -06:00
Tony Kovanen
e3149d5833
Bump adapter version.
2014-09-20 11:12:58 -06:00
Tony Kovanen
ae9d5277a9
Add test to check that empty rooms are autopruned.
2014-09-20 11:12:26 -06:00
Guillermo Rauch
006f19a225
Merge pull request #12 from rase-/fix/room-autopruning
...
Fix room autopruning
2014-09-19 23:25:17 -06:00
Tony Kovanen
3e6489bf71
Make the room exists when autopruning.
2014-09-19 18:07:08 -06:00
Tony Kovanen
2e061ee733
Fix room autopruning
2014-09-19 18:02:44 -06:00
James Ferguson
2e440722a6
Change grammar issues in the chat/README.md
...
Added a few periods and commas which were missing. Also added the word each to clarify how multiple users each enter a unique username.
Very minor edit. No source code changed.
2014-09-18 21:41:28 -07:00
Tony Kovanen
3fe6d4e8ec
Merge pull request #1784 from matthewcanty/patch-1
...
Change "there're" to "there are"
2014-09-17 07:41:46 -06:00
Matthew Canty
3b93c1c562
Change "there're" to "there are"
...
Not a commonly used contraction and looks a bit odd.
2014-09-17 14:01:01 +01:00
akamensky
e89f82a9b0
Added Server#origins(v:Function) description for dynamic CORS
2014-09-12 11:32:20 +08:00
akamensky
1b90ae2587
Added test coverage for Server#origins(function) for dynamic CORS
2014-09-12 11:13:51 +08:00
akamensky
9658e32e7a
Added optional Server#origins(function) for dynamic CORS
2014-09-12 10:53:14 +08:00
Tony Kovanen
99d76664aa
Merge pull request #1766 from BrianGeppert/master
...
package: fix main file for example application 'chat'.
2014-09-11 18:05:58 +03:00
Tony Kovanen
4eb590e3e6
Merge pull request #342 from rase-/Inventorum
...
Fixed problem when XHR would send in header "application/octet-stream; charset=utf-8" -- rebased
2014-09-11 17:45:53 +03:00
Michał Hernas
f63735b35c
Fixed problem when XHR would send in header "application/octet-stream;
...
charset=utf-8", then Request.data would be "ok" instead of proper data
2014-09-11 17:41:30 +03:00
Tony Kovanen
7793a33e04
Merge pull request #10 from rase-/patch-1
...
Add autoprunning of empty rooms - rebased
2014-09-11 16:52:38 +03:00
Tony Kovanen
b49b781f12
Style
2014-09-11 16:47:07 +03:00
hallucynogenyc
a9142147f7
Add autoprunning of empty rooms
2014-09-11 16:44:43 +03:00
Jonathan Reem
aa132cba67
README: Fix typo http_server.
2014-09-11 01:23:21 -07:00
Ajay MT
23eefa527a
Fix usage example for Server#close.
2014-09-10 18:11:56 +05:30
Brian Geppert
b49b35b26f
package: fix main file for example application 'chat'.
2014-09-04 12:10:43 -05:00
Guillermo Rauch
16483375a7
Release 1.1.0
2014-09-04 12:06:06 +02:00
Guillermo Rauch
ec305bd8df
examples: minor fix of escaping
2014-09-04 11:44:02 +02:00
yujiosaka
850072e3f1
IE10 should prefer using XHR2 over XDR because it's safer
2014-09-04 17:38:39 +09:00
Guillermo Rauch
83c68c7a71
Release 2.2.2
2014-09-04 10:14:58 +02:00
Guillermo Rauch
0ae9a4fba6
prevent direct Buffer reference that breaks browserify
2014-09-04 10:14:23 +02:00
Guillermo Rauch
af07a1c649
package: bump engine.io
2014-09-04 01:57:58 +02:00
Guillermo Rauch
f31a24e8db
Release 1.4.0
2014-09-04 00:05:17 +02:00
Guillermo Rauch
dfad04c46d
Release 1.4.0
2014-09-04 00:05:17 +02:00
Jonathan Ong
ac9b89663a
use .files instead of .npmignore
2014-08-28 20:43:32 -07:00
Tony Kovanen
19e1b245be
Add quotes around browser version in Makefile.
2014-08-25 17:48:54 +03:00
Guillermo Rauch
02ade2ecbd
Makefile: remove @
2014-08-25 11:38:09 -03:00
Guillermo Rauch
e77f71409e
.travis: add BROWSER_PLATFORM
2014-08-25 11:35:24 -03:00
Guillermo Rauch
83a7aec28d
.travis: add BROWSER_PLATFORM
2014-08-25 11:35:04 -03:00
Guillermo Rauch
32ebb018e9
Makefile: add support for BROWSER_PLATFORM
2014-08-25 11:33:12 -03:00
Guillermo Rauch
17d5aeb4b4
travis: remove so many chromes
2014-08-25 11:07:21 -03:00
Guillermo Rauch
8dcf294e5d
Merge pull request #335 from rase-/add/travis-matrix
...
Add matrix support for travis runs.
2014-08-25 10:49:02 -03:00
Tony Kovanen
5034af0813
Use the new zuul patch for a cleaner makefile.
2014-08-25 16:41:56 +03:00
Tony Kovanen
2c668e6957
Add matrix support for travis runs.
2014-08-22 23:54:20 +03:00
Tony Kovanen
fb9bfd7768
Merge pull request #334 from yujiosaka/master
...
check enablesXDR option when Request.hasXDR is called just in case
2014-08-20 11:42:47 +03:00
Tony Kovanen
5863903d44
Merge pull request #1729 from anupbishnoi/patch-1
...
Take "" and "/" as equivalent namespaces on server
2014-08-20 11:27:46 +03:00
yujiosaka
9e17a422cb
check enablesXDR option when Request.hasXDR is called just in case
2014-08-20 07:51:01 +09: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
b3cb18d910
Added relevant tests
...
"" and "/" namespaces are checked for equivalence on server and client
2014-08-18 22:47:06 -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
Guillermo Rauch
9e42aecc6f
Merge pull request #333 from yujiosaka/master
...
disabled XDomainRequest as default and added enablesXDR option to enable...
2014-08-17 16:14:04 -07:00
yujiosaka
b1e1755a7d
disabled XDomainRequest as default and added enablesXDR option to enable it
2014-08-18 07:50:36 +09:00
Guillermo Rauch
0b9551f506
Merge pull request #331 from yujiosaka/master
...
IE8 should use XDomainRequest to avoid loading bar flashing
2014-08-17 10:48:02 -07:00
yujiosaka
89ec0efe74
IE8 should use XDomainRequest to avoid loading bar flashing
2014-08-18 02:17:31 +09:00
Guillermo Rauch
83709e9487
Merge pull request #1714 from PeterDaveHello/patch-2
...
Use svg instead of png to get better image quality
2014-08-12 15:47:12 -07:00
Guillermo Rauch
d7c0eda35a
Merge pull request #19 from PeterDaveHello/patch-2
...
Use svg instead of png to get better image quality
2014-08-12 15:46:38 -07:00
Guillermo Rauch
4069d16fc8
Merge pull request #18 from PeterDaveHello/patch-1
...
make CI build faster
2014-08-12 15:46:17 -07:00
Guillermo Rauch
6f4051aaa7
Merge pull request #1713 from PeterDaveHello/patch-1
...
make CI build faster
2014-08-12 15:45:58 -07:00
Peter Dave Hello
87bf6910b5
Use svg instead of png to get better image quality
2014-08-12 10:56:04 +08:00
Peter Dave Hello
97ebfcb836
Use svg instead of png to get better image quality
2014-08-12 10:54:49 +08:00
Peter Dave Hello
be4a5868ed
make CI build faster
2014-08-12 10:51:52 +08:00
Peter Dave Hello
8946b4ed4c
make CI build faster
2014-08-12 10:51:01 +08:00
Guillermo Rauch
3cef88bc88
binary: reuse isBuf helper
2014-08-10 10:43:45 -07:00
Guillermo Rauch
0c755f93e4
clean up syntax
2014-08-10 10:43:00 -07:00
Guillermo Rauch
fc5930c5d1
Merge pull request #8 from tencircles/master
...
Do not set key/value pairs on arrays
2014-08-06 10:05:52 -07:00
chris_coniglio
ce93e2adaa
A new room should be created as an object instead of an array since the id/true is set as a key value pair. Not an array element.
2014-08-06 09:40:18 -07:00
Roman Shtylman
661e78b1a1
readme: fix formatting for goals numbering
2014-08-05 12:03:30 -07:00
Guillermo Rauch
a40068b5f3
Merge pull request #1688 from fdellabetta/server_side_namespace
...
client cannot connect to non-existing namespaces
2014-08-01 13:45:32 +01:00
Guillermo Rauch
9e29ec9b2b
Merge pull request #1700 from rase-/fix/rooms
...
Fix splice arguments and `socket.rooms` value update in `socket.leaveAll`
2014-08-01 13:45:01 +01:00
Tony Kovanen
624e7cb14f
Fix splice arguments and socket.rooms value update in socket.leaveAll.
...
Hat tip @Marreck
2014-08-01 13:20:18 +02:00
Guillermo Rauch
681b4fc27b
server: ref fix by @nicokaiser
2014-07-30 01:42:01 -07:00
Guillermo Rauch
01e173c8d5
server: fix ws memory leak ( fixes #268 )
2014-07-29 17:35:32 -07: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
Filippo Della Betta
f6eb53f5e1
client cannot connect to non-existing namespaces
2014-07-22 13:58:13 +02:00
Guillermo Rauch
4d45869f7c
Merge pull request #329 from get/parseuri
...
update parseuri version
2014-07-19 22:27:31 -07:00
GK
57d5eb3898
update parseuri version
2014-07-20 01:19:10 -04:00
Naoyuki Kanezawa
f9eed0ef32
check readyState in sendPacket and close on upgradeError too
2014-07-19 17:16:23 +09:00
Stephen Mathieson
27f3d7cd66
bower.json: update version to 1.1.3
...
Closes #50
2014-07-19 00:43:04 -04:00
Guillermo Rauch
9c80317574
Merge pull request #1685 from rase-/fix/remote-address-in-handshake-obj
...
Fix remote address in handshake obj
2014-07-18 19:47:26 -07:00
Guillermo Rauch
f00ef8b284
Merge pull request #270 from rase-/cache-ip-in-handshake
...
Cache remote address in handshake since it might be lost later.
2014-07-18 18:55:35 -07:00
Tony Kovanen
d163d891ef
Bump engine.io version to get the cached IP address
2014-07-19 04:49:51 +03:00
Tony Kovanen
15afd3e2c3
Cache remote address in handshake since it might be lost later.
2014-07-19 04:47:38 +03:00
Tony Kovanen
54726105cb
Fixed handshake object address property and made the test case more strict.
2014-07-19 04:43:03 +03:00
Nathan Rajlich
f733833318
Merge pull request #327 from lpinca/update/browserify
...
Update `browserify` to version 4.2.1
2014-07-18 10:15:16 -07:00
Luigi Pinca
9677f5c45e
package: bump browserify
2014-07-18 15:58:01 +02:00
Naoyuki Kanezawa
5a1ff69516
defer close while upgrading a transport
2014-07-18 04:45:13 +09:00
Guillermo Rauch
3d9e52cf93
Merge branch 'master' of github.com:Automattic/socket.io
2014-07-17 12:20:17 -07:00
Guillermo Rauch
ad74f2ff88
package: bump engine.io
2014-07-17 12:17:46 -07:00
Guillermo Rauch
588af6437c
correct git ref
2014-07-17 11:18:01 -07:00
Guillermo Rauch
c26c8caaef
Merge pull request #323 from rase-/bump/parser
...
Bump parser 1.1.0
2014-07-16 15:45:43 -07:00
Guillermo Rauch
c3478fe494
Merge pull request #267 from rase-/bump/parser
...
Bump parser 1.1.0
2014-07-16 15:45:26 -07:00
Tony Kovanen
aa1eafc99b
Update server to commit with bumped parser
2014-07-17 01:37:33 +03:00
Tony Kovanen
b1e3308784
Bump parser 1.1.0
2014-07-17 01:37:33 +03:00
Tony Kovanen
08afdc4692
Update client to commit with bumped parser
2014-07-17 01:34:10 +03:00
Tony Kovanen
d9b188a58a
Bump parser 1.1.0
2014-07-17 01:29:20 +03:00
Tony Kovanen
b10666cf94
Test that utf8 encoding is not on by default but can be switched on manually.
2014-07-17 01:21:41 +03:00
Guillermo Rauch
859338a4ae
Release 1.1.0
2014-07-16 15:17:49 -07:00
Guillermo Rauch
e390624a39
Merge pull request #31 from rase-/fix/double-encode
...
Don't UTF-8 encode packets unless asked.
2014-07-16 15:16:59 -07:00
Tony Kovanen
95840ca6b6
Don't UTF-8 encode packets unless asked.
...
Still done in payload encoding for polling, but no need with WebSockets since it deals with UTF-8 itself.
2014-07-17 00:54:00 +03:00
Guillermo Rauch
42083ace07
package: bump parser
2014-07-16 11:44:17 -07:00
Guillermo Rauch
7a2fe46b57
package: bump parser
2014-07-16 11:44:07 -07:00
Guillermo Rauch
952b466993
Release 1.0.8
2014-07-16 11:14:19 -07:00
Guillermo Rauch
cf1c1273b3
Merge pull request #1682 from kevin-roark/fix/disconnect-connectbuffer-crash
...
Fixed the failing test where server crashes on disconnect involving connectBuffer
2014-07-16 10:58:54 -07:00
Kevin Roark
1f43c4abb5
Fixed the failing test where server crashes on disconnect involving connectBuffer
...
Source of bug: after connection to nsp '/', the socket's connectBuffer
was being deleted. On attempt to reconnect to a different namespace,
the connect buffer was deleted and we attempted to push to it. Instead
of the deleting the connect buffer, it is now emptied.
2014-07-16 08:35:16 -07:00
Guillermo Rauch
d6e6e8a2f8
Merge pull request #1673 from bryanburgers/patch-1
...
Fix repo in package.json
2014-07-15 18:25:59 -07:00
Guillermo Rauch
c506603874
npmignore: ignore .gitignore
2014-07-15 10:56:25 -07:00
Guillermo Rauch
fbd36b613d
npmignore: ignore .gitignore ( fixes #1607 )
2014-07-15 10:55:34 -07:00
Guillermo Rauch
480b1a05bd
test: added failing case for socket.disconnect and nsps
2014-07-15 10:52:23 -07:00
Nathan Rajlich
674e375eb6
History: whitespace
2014-07-14 14:21:24 -07:00
Guillermo Rauch
1e26a69e4f
adjust protocol revision. fixes #30
2014-07-12 21:01:22 -07:00
Guillermo Rauch
56720ac9ca
package: bump debug
2014-07-11 16:21:43 -07:00
Li Xin
86acb7c7e9
Bump debug module
2014-07-11 15:37:58 +08:00
Bryan Burgers
ef729b72b4
Fix repo in package.json
2014-07-09 07:28:45 -05:00
Sam Day
399fcee300
Only call xhr.abort() on error cases in polling-xhr.js
2014-07-06 16:28:32 +10:00
Nathan Rajlich
7fd117f275
Merge pull request #317 from lpinca/update/browserify
...
Update `browserify` to version 4.2.0
2014-07-03 09:48:34 -07:00
Luigi Pinca
d4d9b17576
package: bump browserify
2014-07-03 10:42:01 +02:00
Tero Keski-Valkama
435a759d9b
Added the repository field.
...
...to fix the npm warnings like:
npm WARN package.json socket.io-adapter@0.3.0 No repository field.
2014-07-01 11:32:51 +03:00
Tero Keski-Valkama
16d7767088
Updated the debug dependency.
...
... to be compatible with express and connect.
2014-07-01 11:12:05 +03:00
Thanasis Polychronakis
63e197083b
update README http ctor to createServer()
2014-07-01 10:41:53 +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
Guillermo Rauch
c18ed5fd4d
Merge pull request #1646 from narcisoguillen/close_sio
...
Close sio
2014-06-30 19:10:26 -07:00
Narciso Guillen
1f7da938bd
Improve Close documentation
2014-06-30 15:57:21 -05:00
Narciso Guillen
4b89bce182
use ephemeral ports
2014-06-30 15:49:08 -05:00
Guillermo Rauch
8122b40b01
Merge pull request #316 from nkzawa/patch-4
...
Remove try-catch for utf8 decode errors
2014-06-29 17:19:26 -07:00
Naoyuki Kanezawa
9071790401
remove try-catch for utf8 decode errors
2014-06-30 08:44:44 +09:00
Guillermo Rauch
ff9cafb5fb
Merge pull request #29 from nkzawa/patch-2
...
Handle invalid utf8 errors gracefully
2014-06-29 11:07:22 -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
Naoyuki Kanezawa
4dc1a13750
handle invalid utf8 errors gracefully
2014-06-29 18:22:53 +09:00
Guillermo Rauch
662b30669b
Merge pull request #1653 from acusti/patch-1
...
Override default browser font-family for inputs
2014-06-28 10:55:22 -07:00
Andrew Patton
001373ee17
Override default browser font-family for inputs
...
For consistent typography, explicitly declare font-family stack for `input` in addition to `html` (in Chrome and Safari on mac, the input will otherwise use default font for such elements, like Lucida Grande)
2014-06-28 13:14:33 -04:00
Tony Kovanen
b9e3d19987
Merge pull request #28 from rase-/fix/memory-leak-on-browser
...
Fix memory leak on browser as well
2014-06-25 23:28:04 +03:00
Tony Kovanen
4ff516b94a
Adjust test to use proper data types and to only run for supporting browsers when testing the memory leak fix
2014-06-25 10:17:56 +03:00
Tony Kovanen
0cec2433b2
Fix memory leak on browser
...
Will exit with an error packet if the packet length string doesn't contain the value 255 in binary packets.
2014-06-25 06:32:05 +03:00
Guillermo Rauch
0b6a00cbec
Merge pull request #6 from poldridge/patch-1
...
Patch 1
2014-06-24 16:08:21 -07:00
poldridge
1dd2bad757
Update index.js
...
Added missing hasOwnProperty check to for .. in loop.
2014-06-24 15:38:51 -07:00
poldridge
19d41920d9
Update index.js
...
Added missing hasOwnProperty checks to two for .. in loops.
2014-06-24 15:36:34 -07:00
Guillermo Rauch
816fd2e5a3
package: bump engine.io-parser for memleak fix
2014-06-24 15:23:03 -07:00
Guillermo Rauch
61a029e596
package: bump engine.io-parser
2014-06-24 15:22:38 -07:00
Guillermo Rauch
7e6da5461b
Release 1.0.7
2014-06-24 15:21:18 -07:00
Guillermo Rauch
ca02f2bfad
add comment per @christophwitzko
2014-06-24 15:20:18 -07:00
Guillermo Rauch
4f8dc74ff5
remove .DS_Store
2014-06-24 15:19:36 -07:00
Guillermo Rauch
93a415b38c
Merge pull request #27 from christophwitzko/patch-memory-leak
...
fix decodePayloadAsBinary memory leak
2014-06-24 15:18:09 -07:00
Christoph Witzko
d41f8e06da
fix decodePayloadAsBinary memory leak
2014-06-24 23:49:57 +02:00
Guillermo Rauch
246f3bb5c3
Merge pull request #1648 from kevin-roark/update/has-binary-data
...
update has-binary-data to 1.0.3
2014-06-23 20:20:39 -07:00
Kevin Roark
68d06ec94c
update has-binary-data to 1.0.3
2014-06-23 20:19:26 -07:00
Narciso Guillen
a1feca1bd3
Add close specs
2014-06-23 21:03:31 -05: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
2e8e26613a
Update README
2014-06-23 20:02:39 -05:00
Narciso Guillen
fbdb94d146
make sure server gets close
2014-06-23 19:55:02 -05:00
Tony Kovanen
439ee19e65
Merge pull request #315 from rase-/update/readme
...
Updated README
2014-06-23 20:31:40 +03:00
Tony Kovanen
f62b000cd2
Updated README
2014-06-23 20:30:27 +03:00
Guillermo Rauch
0d0e94398e
Merge pull request #314 from rase-/add/jsonp-disabling
...
Possibility to disable JSONP.
2014-06-23 10:07:48 -07:00
Tony Kovanen
42b1773713
style and close socket after assert
2014-06-23 19:48:09 +03:00
Tony Kovanen
2aa5c22823
Change constructor check to throw and try-catch
2014-06-23 19:32:35 +03:00
Tony Kovanen
389878b3cb
Rename noJSONP to jsonp (that can be set to false to disable jsonp)
2014-06-23 18:33:48 +03:00
Tony Kovanen
269bdfff23
Possibility to disable JSONP. Emitting an error if JSONP is the only available transport.
2014-06-23 02:04:48 +03:00
Guillermo Rauch
66503b5ad5
fix readme ( fixes #26 )
2014-06-22 10:47:13 -07:00
Tony Kovanen
55572122f3
Merge pull request #1642 from rase-/add/test
...
Duplicate events test for `reconnect_failed`
2014-06-21 17:28:37 +03:00
Tony Kovanen
a1170a3aa6
Bump client
2014-06-21 17:26:55 +03:00
Tony Kovanen
0954301d7e
Add test case for checking that reconnect_failed is fired only once upon failure
2014-06-21 17:14:15 +03:00
Guillermo Rauch
328a9df8eb
package: bump socket.io-parser for component-emitter dep fix
...
cc @davglass @reid
2014-06-20 16:57:54 -07:00
Guillermo Rauch
5c551f0f52
Release 2.2.1
2014-06-20 16:56:24 -07:00
Julian Gruber
1bd7d81f84
Release 1.1.3
2014-06-20 08:25:56 +02:00
Tony Kovanen
c090f20211
Merge pull request #313 from rase-/remove/ie11-ws-tests
...
Disable ws tests on IE11 because saucelabs breaks them.
2014-06-20 02:02:52 +03:00
Tony Kovanen
8102833c27
Disable ws tests on IE11 because saucelabs breaks them. Let's run them in a VM until things get sorted out
2014-06-20 02:01:44 +03:00
Guillermo Rauch
d99e30fca7
Release 1.0.6
2014-06-19 14:57:50 -07:00
Guillermo Rauch
561dd6fd79
package: bump engine.io for utf8 fix ( fixes #1622 )
2014-06-19 14:51:37 -07:00
Guillermo Rauch
f3ada3c723
Release 1.3.1
2014-06-19 14:50:37 -07:00
Guillermo Rauch
e1a9a12df7
Release 1.3.1
2014-06-19 14:50:35 -07:00
Guillermo Rauch
2f63cf1452
package: bump engine.io-client
2014-06-19 14:48:09 -07:00
Guillermo Rauch
bb2455389f
use latest engine.io-client
2014-06-19 14:08:04 -07:00
Guillermo Rauch
51a7c418ed
transport: catch utf8 decode errors
2014-06-19 14:07:32 -07:00
Guillermo Rauch
e9e2a91cea
package: bump socket.io-client
2014-06-19 08:05:38 -07:00
Guillermo Rauch
8a3a111a7f
Merge pull request #1635 from rase-/add/test
...
Test for duplicate events on manual reconnect
2014-06-18 15:54:23 -07:00
Tony Kovanen
bd87e4dc35
Bump socket.io-client to latest commit so that duplicate events test passes
2014-06-19 01:52:34 +03:00
Tony Kovanen
71c253e992
Added test for duplicate events after manual reconnects
2014-06-19 01:49:00 +03:00
Guillermo Rauch
a5cf4f57a0
Release 1.0.5
2014-06-17 18:14:44 -07:00
Guillermo Rauch
a079cbc7f9
client: fixes #1632
2014-06-17 18:07:30 -07:00
Guillermo Rauch
14a9fdb64f
package: bump engine.io
2014-06-16 08:36:01 -07:00
Thanasis Polychronakis
55fb100fc0
http.Server is a constructor
...
...and thus requires the `new` keyword
2014-06-14 13:52:36 +03:00
Guillermo Rauch
c733964004
Release 1.3.0
2014-06-13 13:27:39 -07:00
Guillermo Rauch
a94b6abb5a
Release 1.3.0
2014-06-13 13:27:36 -07:00
Guillermo Rauch
6159df3937
fixed client
2014-06-13 13:04:50 -07:00
Guillermo Rauch
e07d4e1b40
Merge pull request #263 from andybons/example_fix
...
Update example to use v1.2.2
2014-06-13 11:18:39 -07:00
Andrew Bonventre
51318a66c8
update example to use v1.2.2
2014-06-13 14:13:21 -04:00
Guillermo Rauch
6f7bab5dfd
Merge pull request #1578 from kevin-roark/add/emit-buffer-test
...
added the client emit-buffer test
2014-06-13 10:10:40 -07:00
Guillermo Rauch
b806c88ff7
Merge pull request #262 from dainis/newline_escape_fix
...
Newline escape fix
2014-06-13 10:09:10 -07:00
Dainis Tillers
c998d68631
Merge branch '1.1.1_newline_escape_fix' into newline_escape_fix
2014-06-13 15:06:45 +03:00
Dainis Tillers
de0b4a9d4a
Fixed - previously any json message which contained a newline would fail to parse as it would replace escaped newline incorrectly
2014-06-13 15:03:46 +03:00
Guillermo Rauch
7d2b44e176
index: fix typo [thanks @yanatan16]
2014-06-11 10:42:48 -07:00
Tony Kovanen
1feb9d46e9
Merge pull request #309 from Automattic/add/smaller-inherits
...
smaller inherits utility
2014-06-09 00:52:32 +03:00
Guillermo Rauch
09c83a215d
smaller inherits utility
2014-06-08 14:42:44 -07:00
Guillermo Rauch
f3c5981f70
Merge pull request #17 from kevin-roark/add/benchmarking
...
added benchmarking
2014-06-08 14:12:41 -07:00
Kevin Roark
17cf621e86
big binary bench as well
2014-06-08 14:08:10 -07:00
Kevin Roark
8a7e0b8b0a
added benchmarking
2014-06-08 12:23:48 -07:00
Tony Kovanen
0b5fdf995a
Merge pull request #1603 from nkzawa/patch-2
...
Add removeListener to blacklisted events
2014-06-08 14:40:25 +03:00
Naoyuki Kanezawa
a66bea5b33
add removeListener to blacklisted events
2014-06-08 20:34:50 +09:00
Tony Kovanen
b067840376
Merge pull request #308 from nkzawa/patch-3
...
Fix a test for ws
2014-06-08 14:15:23 +03:00
Naoyuki Kanezawa
9ea654138d
fix a test for ws
2014-06-08 20:06:17 +09:00
Guillermo Rauch
ff7ef76ff9
Merge pull request #260 from ifraixedes/patch-1
...
Update README.md
2014-06-07 10:26:57 -07:00
Ivan Fraixedes
038d0ef21e
Update README.md
...
`require(engine.io).listen()` can receive a second optional parameter as options
2014-06-07 17:14:41 +01:00
Guillermo Rauch
a1a88aaaaf
Merge pull request #1600 from poldridge/master
...
Update index.js
2014-06-06 22:36:19 -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
Roman Shtylman
79a1ac0398
README: use svg badges
2014-06-06 17:21:57 -04:00
Roman Shtylman
5f889a682f
README: change badge organization to Automattic
2014-06-06 17:21:26 -04:00
Guillermo Rauch
52477840c5
Merge pull request #306 from reid/component-emitter
...
Upgrade component-emitter to 1.1.2, fix #305
2014-06-04 15:17:41 -07:00
Guillermo Rauch
3c308369d2
Merge pull request #16 from reid/component-emitter
...
Upgrade component-emitter to 1.1.2
2014-06-04 15:17:37 -07:00
Reid Burke
035fa7dded
Upgrade component-emitter to 1.1.2
...
Switch from depending on a tarball URL to the published
component-emitter package at its latest version.
Change all references to emitter module to the new
component-emitter name.
2014-06-04 15:03:37 -07:00
Reid Burke
4b40963f27
Upgrade component-emitter to 1.1.2, fix #305
...
Switch from depending on a tarball URL to the published
component-emitter package at its latest version.
Change all references to emitter module to the new
component-emitter name.
2014-06-04 14:52:42 -07:00
Guillermo Rauch
2ec3d89d4b
Merge pull request #213 from defunctzombie/server_attach
...
add Server.attach method
2014-06-04 11:16:57 -07:00
Roman Shtylman
b8366057d2
lib: remove unused file
2014-06-04 13:45:48 -04:00
Roman Shtylman
48f006f947
make require('engine.io')() return a new Server instance
...
fixes #212
2014-06-04 13:45:48 -04:00
Roman Shtylman
cb2b80afd9
remove lib/index.js
...
Needless level of indirection which blocks actually reading the
important parts of the code.
2014-06-04 13:45:47 -04:00
Roman Shtylman
d3ed8418a8
remove unused require
2014-06-04 13:45:47 -04:00
Roman Shtylman
d74f93e4f9
add Server.attach method
...
This method does what engine.attach use to do but is now on the
instantiated server instance. This makes it possible to create engine.io
servers without yet attaching them to any active http server.
When creating a project which will server static files/pages alongside
engine.io on the same domain/process this makes it easier to separate
logic into files without having to pass around the http server.
2014-06-04 13:45:43 -04:00
Guillermo Rauch
ce9e4720d9
Merge pull request #258 from mokesmokes/fix211
...
fix GH-211, set CORS headers when sending error message
2014-06-03 17:45:33 -07:00
Guillermo Rauch
baac860d5d
Update package.json
2014-06-03 17:43:53 -07:00
Guillermo Rauch
dca8afc952
Update Readme.md
2014-06-03 17:43:40 -07:00
Mark Mokryn
b98406a678
fix GH-211, set CORS headers when sending error message
2014-06-04 03:21:11 +03:00
Guillermo Rauch
99bbd74d14
Merge pull request #1582 from kevin-roark/add/clearer-example-instructions
...
Add/clearer example instructions
2014-06-02 20:44:34 -07:00
Kevin Roark
398511ddee
Merge branch 'upstream' into add/clearer-example-instructions
2014-06-02 20:28:42 -07:00
Kevin Roark
fdf7937815
clearer instructions to install chat example
2014-06-02 20:28:19 -07:00
Guillermo Rauch
475909e642
Release 1.0.4
2014-06-02 20:08:33 -07:00
Guillermo Rauch
95acec8b94
package: bump socket.io-client
2014-06-02 20:07:07 -07:00
Kevin Roark
5812ddf2b0
added the client emit-buffer test
2014-06-01 23:20:42 -07:00
Guillermo Rauch
955055bf53
Merge pull request #15 from kevin-roark/fix/parser-style-and-optimization
...
Less indentation and a decent optimization
2014-05-31 23:35:00 -07:00
Kevin Roark
5ca1da1c7e
bump protocol version here too
2014-05-31 23:30:39 -07:00
Kevin Roark
4e33d6a6c5
Less indentation and a small optimization
...
The optimization is the "else if" instead of "if" for checking
array in _removeBlobs. No need to iterate over keys of a blob.
2014-05-31 22:41:12 -07:00
Guillermo Rauch
1bbc3951bd
Release 1.0.3
2014-05-31 18:34:50 -07:00
Guillermo Rauch
039eed2c2a
package: bump socket.io-client
2014-05-31 09:53:25 -07:00
Guillermo Rauch
6de022b180
Merge pull request #1565 from kevin-roark/add/binary-ack
...
Add/binary ack
2014-05-31 09:50:19 -07:00
Guillermo Rauch
a06331d29f
travis fix
2014-05-30 21:37:22 -07:00
Guillermo Rauch
22aaae4135
Release 0.3.0
2014-05-30 21:33:58 -07:00
Guillermo Rauch
1f4baa6f82
Merge pull request #3 from hiddenmin/patch-1
...
Update package.json
2014-05-30 21:32:46 -07:00
Amin Cheloh
e46f60ba3e
Update package.json
2014-05-31 11:30:03 +07:00
Guillermo Rauch
e639685370
fix travis
2014-05-30 21:23:55 -07:00
Guillermo Rauch
1f2e681ce2
package: bump socket.io-parser for binary ack fix
2014-05-30 21:11:57 -07:00
Guillermo Rauch
2997b08ce3
Release 2.2.0
2014-05-30 21:11:00 -07:00
Guillermo Rauch
15c60ad13c
Merge pull request #8 from kevin-roark/add/binary-ack
...
add binary ack documentation, update to version 4
2014-05-30 20:50:42 -07:00
Kevin Roark
fb9fe3ebe3
add binary ack documentation, update to version 4
2014-05-30 20:49:00 -07:00
Guillermo Rauch
8acf2452de
Merge pull request #14 from kevin-roark/add/binary-ack
...
added a BINARY_ACK type
2014-05-30 20:43:23 -07:00
Kevin Roark
397944fcbe
big file tests
2014-05-30 20:40:44 -07:00
Kevin Roark
27dada65b9
distinction between ACK and BINARY_ACK
2014-05-30 18:42:23 -07:00
Kevin Roark
ca4f42a922
added a BINARY_ACK type
2014-05-30 18:41:47 -07:00
Guillermo Rauch
99f1ac9aae
Merge pull request #1563 from rase-/fix/no-disconnect-fired-for-nsp
...
Fix namespace iterator in disconnect
2014-05-30 16:40:59 -07:00
Tony Kovanen
ee8d0fbae0
Fix namespace iterator in disconnect
2014-05-31 02:25:28 +03:00
Guillermo Rauch
8e08a6d419
Merge pull request #1562 from rase-/add/utf8-tests
...
Add test case for emitting multibyte chars
2014-05-30 15:48:34 -07:00
Tony Kovanen
318ae87f50
Add test case for emitting multibyte chars
2014-05-31 01:45:31 +03:00
Tony Kovanen
447948425c
Rebuild
2014-05-31 00:41:48 +03:00
Guillermo Rauch
2c1b61148d
Merge branch 'master' of github.com:automattic/socket.io
2014-05-30 14:14:12 -07:00
Guillermo Rauch
507054c0a8
package: bump engine.io for utf8 binary fix
2014-05-30 14:09:54 -07:00
Guillermo Rauch
70f9615eda
README tweaks
2014-05-30 13:28:38 -07:00
Guillermo Rauch
48d6567c18
README tweak
2014-05-30 12:57:33 -07:00
Guillermo Rauch
3358918824
Release 1.2.2
2014-05-30 12:37:43 -07:00
Guillermo Rauch
8aeb4632a1
Release 1.2.2
2014-05-30 12:37:39 -07:00
Guillermo Rauch
a18ddbe398
package: bump engine.io-parser
2014-05-30 12:18:19 -07:00
Guillermo Rauch
d84b6aa22d
package: bump engine.io-parser
2014-05-30 12:18:04 -07:00
Guillermo Rauch
5ac8af3e4a
Release 1.0.6
2014-05-30 12:16:54 -07:00
Guillermo Rauch
c396acffa6
Merge branch 'master' of github.com:LearnBoost/engine.io-parser
2014-05-30 12:00:09 -07:00
Guillermo Rauch
1b8e077b22
Merge pull request #24 from rase-/fix/utf8
...
Fix utf8 encoding for binary payloads.
2014-05-30 11:59:47 -07:00
Tony Kovanen
37ede5ffdd
Add parser encode/decode test with long dash
2014-05-30 16:20:36 +03:00
Tony Kovanen
2da2fbbabc
Don't use the already deprecated binary buffer encoding
2014-05-30 16:04:38 +03:00
Tony Kovanen
067e286d2b
Use plain binary encoding for byte length since we're now using utf8.js
2014-05-30 14:15:27 +03:00
Tony Kovanen
dfceb006d7
Merge pull request #1554 from grant/master
...
Fix xss vulnerability in example chat app
2014-05-30 12:15:12 +03:00
Grant Timmerman
4d83456f74
Fix xss vulnerability in example chat app
2014-05-30 02:03:33 -07:00
Tony Kovanen
201aad83b1
Merge pull request #1540 from grant/master
...
Make chat example wrap long words (no overflow)
2014-05-30 12:02:15 +03:00
Grant Timmerman
72eb61d01f
Make chat example wrap long words (no overflow)
2014-05-30 01:44:27 -07:00
Tony Kovanen
163a2a696e
Merge pull request #1543 from mohnish/patch-1
...
Remove obsolete message from README file
2014-05-29 21:33:36 +03:00
Guillermo Rauch
199a479ebc
Merge pull request #1545 from overra/patch-1
...
Use cleanInput() on incoming messages
2014-05-28 20:47:20 -07:00
Guillermo Rauch
d383ff9662
Merge pull request #1546 from hiddenmin/patch-1
...
Update Readme.md
2014-05-28 19:42:39 -07:00
Amin Cheloh
416b550189
Update Readme.md
...
socket.io-adapter link
2014-05-29 09:41:37 +07:00
Adam Snodgrass
536b338a01
Use cleanInput() on incoming messages
...
This prevents XSS if one were to send messages using socket.io from the console.
2014-05-28 20:35:24 -05:00
Mohnish Thallavajhula
a06ae10895
Remove obsolete message from README file
2014-05-28 17:10:50 -07:00
Guillermo Rauch
35a85084b1
Release 1.0.2
2014-05-28 13:24:59 -07:00
Guillermo Rauch
0c2b44a846
package: bump parser for windows fix
2014-05-28 13:23:51 -07:00
Guillermo Rauch
0f6ee2dbd9
travis
2014-05-28 12:56:10 -07:00
Guillermo Rauch
61ea471035
Merge pull request #255 from Aaron1011/fix_badge
...
Fix Travis Badge URL in README
2014-05-28 12:09:30 -07:00
Aaron1011
5d83c7c222
Fix Travis Badge URL in README
2014-05-28 15:07:37 -04:00
Guillermo Rauch
68ac0d6d24
Release 1.0.1
2014-05-28 10:32:31 -07:00
Guillermo Rauch
00ef9ca652
Release 1.0.0
2014-05-28 10:19:24 -07:00
Guillermo Rauch
e958b5deaa
zuul: added older androids
2014-05-27 17:42:42 -07:00
Guillermo Rauch
2febbce87d
Merge pull request #1530 from kevin-roark/update/has-binary-data
...
bump has-binary-data
2014-05-24 15:19:48 -07:00
Kevin Roark
31c45862cb
bump has-binary-data
2014-05-24 14:14:59 -05:00
Guillermo Rauch
aaf07313c6
Release 2.1.5
2014-05-24 11:37:02 -07:00
Guillermo Rauch
cf16eca0f7
Merge pull request #11 from rase-/fix/date
...
don't iterate keys of date objects
2014-05-24 11:22:14 -07:00
Guillermo Rauch
809e2bc3f8
Merge pull request #1529 from rase-/add/bc
...
Added socket.handshake BC object
2014-05-24 11:08:00 -07:00
Tony Kovanen
e2fb6e58c8
don't iterate keys of date objects
2014-05-24 19:33:30 +03:00
Tony Kovanen
10adcb089e
Added socket.handshake BC object
2014-05-24 17:02:47 +03:00
Guillermo Rauch
5bc75ea944
Release 1.0.0-pre5
2014-05-22 09:35:32 -07:00
Guillermo Rauch
cd4f6ad5e9
package: bump socket.io-client for parser fixes
2014-05-22 09:32:42 -07:00
Guillermo Rauch
54e6c79014
package: bump engine.io
2014-05-22 09:25:58 -07:00
Guillermo Rauch
3b6c195afa
Release 1.2.1
2014-05-22 09:08:39 -07:00
Guillermo Rauch
d5fecf7494
Release 1.2.1
2014-05-22 09:08:36 -07:00
Guillermo Rauch
ca7a539856
package: bump engine.io-client
2014-05-22 09:08:06 -07:00
Guillermo Rauch
2c6418e36b
build
2014-05-22 09:07:35 -07:00
Guillermo Rauch
0eca5e5d46
shishishishishi
2014-05-22 01:45:21 -07:00
Guillermo Rauch
13cbe34fbc
index: prevent inaccurate length for utf8.js-encoded strings
2014-05-22 01:26:56 -07:00
Pawel
5676699a1c
added missing comment about Content-Type header
2014-05-21 11:21:32 +02:00
Pawel
bd42b1ee1e
added missing support for XSS filters on IE
...
issue #252
2014-05-21 11:14:56 +02:00
Guillermo Rauch
8c109efa51
Merge pull request #302 from j-salazar/noping
...
Make 'don't-ping' test browser-only
2014-05-19 17:05:02 -07:00
Julian Salazar
42dac5826e
Make don't-ping test browser-only
2014-05-19 16:45:24 -07:00
Guillermo Rauch
237b234cab
Release 1.0.0-pre4
2014-05-19 16:02:54 -07:00
Guillermo Rauch
547440605d
package: bump client
2014-05-19 16:02:31 -07:00
Guillermo Rauch
44b35738b8
Merge pull request #270 from j-salazar/noping
...
Don't ping when socket closed by open handler
2014-05-19 14:06:31 -07:00
Julian Salazar
7afd8c8273
Don't ping when socket closed by open handler
2014-05-19 06:23:58 -07:00
Guillermo Rauch
b089c45b81
Release 1.2.0
2014-05-18 10:17:45 -07:00
Guillermo Rauch
7bbd91b98f
Release 1.2.0
2014-05-18 10:17:41 -07:00
Guillermo Rauch
8d15e5b4d7
new build
2014-05-18 09:05:16 -07:00
Guillermo Rauch
d763c8b6ea
Release 1.0.0-pre3
2014-05-17 15:40:40 -07:00
Guillermo Rauch
da07eb713b
removing flashsocket, moving to userland
2014-05-17 15:24:51 -07:00
Guillermo Rauch
10261c5211
removed flashsocket, moving to userland
2014-05-17 15:24:40 -07:00
Guillermo Rauch
5d210ac46c
package: bump parser
2014-05-17 14:02:57 -07:00
Guillermo Rauch
993b2b0240
Release 2.1.4
2014-05-17 13:50:54 -07:00
Guillermo Rauch
005a55026e
Merge pull request #10 from kevin-roark/fix/null-reconstruction-bug
...
fix null reconstruction bug
2014-05-17 13:36:50 -07:00
Guillermo Rauch
ea89e520bc
package: bump engine.io
2014-05-16 16:57:41 -07:00
Kevin Roark
6d3218eb3a
fix null reconstruction bug
2014-05-15 10:51:39 -04:00
Guillermo Rauch
4bb92430e0
re-execute tests
2014-05-14 11:38:24 -07:00
Guillermo Rauch
361053c30b
further reduce
2014-05-14 11:34:13 -07:00
Guillermo Rauch
29404972a5
README: fix
2014-05-14 11:27:31 -07:00
Guillermo Rauch
e822d4f1de
README: tweak
2014-05-14 11:27:12 -07:00
Guillermo Rauch
6bae44f7a9
Release 1.1.1
2014-05-14 11:19:05 -07:00
Guillermo Rauch
5558838c3d
Release 1.1.1
2014-05-14 11:19:02 -07:00
Guillermo Rauch
b5a311e2d1
test: reduce packet size
2014-05-14 10:45:20 -07:00
Guillermo Rauch
f2a7d36785
Merge pull request #299 from nkzawa/patch-2
...
Remove Socket#onopen
2014-05-13 15:07:41 -07:00
Nathan Rajlich
df6afb6ad1
Update README.md
2014-05-13 15:00:52 -07:00
Guillermo Rauch
afe23b7299
Merge pull request #296 from grant/patch-1
...
Fixed improper README code formatting in ordered list
2014-05-13 14:58:26 -07:00
Guillermo Rauch
edb4c557be
Merge pull request #300 from pyhrus/fix_jsonp_newline_escape
...
JSONP transport fails when sending JSON stringified message
2014-05-13 14:57:52 -07:00
Shankar Karuppiah
049b290425
Fixed jsonp transport getting close due parser error, when escaped new line sent over the socket
2014-05-13 09:48:19 +03:00
Guillermo Rauch
a0aabcace1
Merge pull request #297 from rase-/quirky-string
...
Tests for multibyte strings
2014-05-06 10:25:16 -04:00
Guillermo Rauch
c8bf064b10
Merge pull request #1513 from hallucynogenyc/patch-1
...
Update for new npm check
2014-05-06 10:15:33 -04:00
hallucynogenyc
08fe191211
Update for new npm check
...
Npm will now throw a warning when installing a package:
npm WARN package.json socket.io@1.0.0-pre2 No repository field.
If the repository field is not present.
2014-05-06 16:14:50 +02:00
Guillermo Rauch
ccc4482fe6
package: bump parser
2014-05-06 06:31:50 -04:00
Guillermo Rauch
895ea6d261
package: bump parser
2014-05-06 06:31:25 -04:00
Guillermo Rauch
7fe6f0f63e
Release 1.0.5
2014-05-06 06:31:05 -04:00
Guillermo Rauch
086e366095
Merge pull request #20 from joeybaker/patch-1
...
Don't pass too many arguments
2014-05-05 18:18:18 -04:00
Joey Baker
b0e75f94c4
Don't pass too many arguments
...
`.apply()` has a max argument length which was easily exceeded by a large buffer. This makes more calls to `String.fromCharCode` but is guaranteed not to throw a `RangeError`.
More on max argument size: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply#Using_apply_and_built-in_functions
2014-05-05 15:02:08 -07:00
Naoyuki Kanezawa
6def3f56ee
remove Socket#onopen
2014-05-02 15:18:33 +09:00
Guillermo Rauch
371e940355
Merge pull request #19 from rase-/quirky-strings
...
Encode strings with utf8.js to support multibyte strings
2014-04-30 10:16:41 -07:00
Grant Timmerman
937e9d3689
Fixed improper code formatting in ordered list
...
Ref: https://gist.github.com/clintel/1155906
2014-04-30 03:40:14 -07:00
Guillermo Rauch
81f93af215
Merge pull request #17 from lpinca/update/base64-arraybuffer
...
package: bump `base64-arraybuffer` to `0.1.2`
2014-04-29 20:34:20 -07:00
Guillermo Rauch
dcccf58dcb
Merge pull request #16 from get/license
...
Add MIT license file and update readme
2014-04-29 18:09:20 -07:00
Tony Kovanen
a42fc93340
Tests for multibyte strings
2014-04-30 03:13:03 +03:00
Tony Kovanen
52bc2f8c03
Encode strings with utf8.js to support multibyte strings
2014-04-30 01:23:35 +03:00
Guillermo Rauch
0842729c1f
test: temporarily removing parser test
2014-04-28 11:16:59 -07:00
Guillermo Rauch
9720c76d10
Release 1.0.0-pre2
2014-04-27 19:40:33 -07:00
Guillermo Rauch
0f127d2b7d
package: bump engine.io
2014-04-27 19:23:07 -07:00
Guillermo Rauch
e87e9e18e1
package: bump parser
2014-04-27 18:54:53 -07:00
Guillermo Rauch
aea5477c43
Release 2.1.3
2014-04-27 18:45:57 -07:00
Guillermo Rauch
083671de84
rebuild
2014-04-27 14:28:35 -07:00
Guillermo Rauch
2619b9153f
README: fix
2014-04-27 14:27:58 -07:00
Guillermo Rauch
327bfaafa7
Release 1.1.0
2014-04-27 14:24:45 -07:00
Guillermo Rauch
44c5ab5095
Release 1.1.0
2014-04-27 14:24:38 -07:00
Guillermo Rauch
76628a0d9e
socket: removed unneeded clearTimeout ( fixes #250 )
2014-04-26 10:50:27 -07:00
Luigi Pinca
b4e7c610b3
package: bump base64-arraybuffer to 0.1.2
2014-04-24 15:13:36 +02:00
GK
5f5eb31edc
added MIT license file and updated readme
2014-04-22 19:44:01 -04:00
Guillermo Rauch
118073f2f2
Merge pull request #294 from rase-/fixerrors
...
Error handling fixes
2014-04-17 17:26:37 -07:00
Guillermo Rauch
8313b3f7dc
Merge pull request #9 from rase-/bump/zuul
...
Bump zuul version
2014-04-17 17:14:59 -07:00
Guillermo Rauch
4d5d36a0ff
Merge pull request #295 from rase-/bump/zuul
...
Bump zuul version
2014-04-17 17:06:08 -07:00
Tony Kovanen
11edc45624
Bump zuul version
2014-04-18 03:05:57 +03:00
Guillermo Rauch
739e412b20
Merge pull request #15 from rase-/bump/zuul
...
Bump zuul version
2014-04-17 17:05:33 -07:00
Tony Kovanen
ad03afaa36
Bump zuul version
2014-04-18 03:01:48 +03:00
Tony Kovanen
c8390297e1
Bump zuul version
2014-04-18 02:57:50 +03:00
Tony Kovanen
c12f44b5bd
Renamed removeAllListeners to cleanup
2014-04-18 01:25:08 +03:00
Tony Kovanen
c67afb549e
Not emitting an upgrade error when upgrading was in fact successful
2014-04-18 01:17:35 +03:00
Guillermo Rauch
cc19ee1a90
Merge pull request #293 from get/use_inherits
...
Use inherits package instead of inherit
2014-04-17 15:12:48 -07:00
GK
731092e156
Merge branch 'master' into use_inherits
2014-04-17 18:05:42 -04:00
Tony Kovanen
e1ef7fc04d
Added a debug line to websocket.js for reporting cases where the socket is closed before onclose is fired
2014-04-18 01:05:37 +03:00
GK
7f3fae0d3b
use inherits package instead of inherit
2014-04-17 18:04:56 -04:00
Tony Kovanen
f7e7658bac
Fixed bad indent
2014-04-18 01:02:50 +03:00
Guillermo Rauch
464820794d
Merge pull request #292 from get/removingutil
...
Remove references to util.js
2014-04-17 14:30:32 -07:00
GK
8709898f28
Merge branch 'master' into removingutil
2014-04-17 15:34:23 -04:00
GK
6329f81b9d
removed all references to util.js
2014-04-17 15:33:36 -04:00
Guillermo Rauch
9ac50ae316
Merge pull request #287 from get/removingutil
...
Remove util.js, replace its methods with npm modules, inline code
2014-04-17 11:46:28 -07:00
GK
e0e7db69dd
fix if statement in FlashWS.ready method
2014-04-16 13:14:16 -04:00
GK
844306c68d
pass values directly in FlashWS.ready method
2014-04-16 11:34:25 -04:00
GK
ca9ae9cb78
merged with master
2014-04-16 11:12:32 -04:00
GK
dc65d13b76
removed unnecessary UA detection
2014-04-16 11:09:34 -04:00
binlain
d3d086699e
Forgot to register close listener
2014-04-15 17:43:41 +02:00
binlain
ba3592b198
Handle error on send
2014-04-15 17:41:19 +02:00
binlain
7f00e951d0
Clean up probing and handle premature transport disconnect
2014-04-15 17:39:17 +02:00
Guillermo Rauch
46351d38b8
Merge pull request #1489 from kevin-roark/add/protocol-check
...
added test that server and client using same protocol
2014-04-14 13:11:04 -07:00
Kevin Roark
ce68fb3105
Merge branch 'upstream' into add/protocol-check
2014-04-14 12:43:01 -04:00
Guillermo Rauch
c93da98c8e
rebuild
2014-04-13 12:28:04 -07:00
Guillermo Rauch
94905500e4
Merge pull request #1467 from rase-/add/set-backwards-compatibility
...
Added backwards compatible settability of engine.io maxHttpBufferSize
2014-04-13 12:25:36 -07:00
Guillermo Rauch
e46d36e673
rebuild
2014-04-13 12:21:58 -07:00
Guillermo Rauch
927904067c
package: bump engine.io-parser
2014-04-13 12:06:11 -07:00
Guillermo Rauch
d477098b39
package: bump engine.io-parser
2014-04-13 12:05:59 -07:00
Guillermo Rauch
2d6c0000f2
Release 1.0.4
2014-04-13 12:05:48 -07:00
Guillermo Rauch
961f33cb77
Merge pull request #288 from lpinca/fix/polling-jsonp-cleanup
...
polling-jsonp: prevent spurious errors from being emitted when the window is unloaded
2014-04-13 11:06:33 -07:00
Luigi Pinca
3fcc9fb438
polling-jsonp: prevent spurious errors from being emitted when the window is unloaded
2014-04-13 10:47:58 +02:00
Guillermo Rauch
d8b3310759
README: more tweaks (thanks @mokesmokes)
2014-04-12 11:42:09 -07:00
Guillermo Rauch
3f9f9028cc
Merge pull request #285 from lpinca/fix/comment
...
polling-xhr: fix a comment and remove unneeded `document` reference
2014-04-12 11:40:44 -07:00
Luigi Pinca
a3f840504f
polling-xhr: fix a comment and remove unneeded document reference
2014-04-12 15:42:08 +02:00
Tony Kovanen
f830899e39
Added backwards compatible settability of engine.io maxHttpBufferSize
...
Updated readme
2014-04-12 12:02:52 +03:00
GK
1a43bc9346
enforce cache busting
2014-04-11 21:43:11 -04:00
GK
f3d9f2bcfb
remove util.js
2014-04-11 20:15:20 -04:00
GK
5a3d15581f
Merge branch 'master' into removingutil
2014-04-11 20:11:26 -04:00
GK
8fc0f34e35
put UA detection inline where used, remove util.js
2014-04-11 20:08:48 -04:00
GK
5d3ec15c95
remove on, load, replace keys and inherits with modules
2014-04-11 19:45:46 -04:00
Guillermo Rauch
ca8a435d01
Merge pull request #246 from rase-/fix/jsonp-tests
...
Fix tests
2014-04-11 11:09:51 -07:00
Tony Kovanen
83caa815cd
Removed an old test that checked the ws api works (which is now removed) and fixed a global leak in JSONP tests
2014-04-11 21:09:24 +03:00
Guillermo Rauch
3444f017bc
Merge pull request #1492 from kevin-roark/add/query-test
...
Added a test to check access to client query params
2014-04-11 10:57:04 -07:00
Kevin Roark
0588dc0fc4
Added a test to check access to client query params
...
It fails with the current upstream client! There is a pending PR to
make this test pass though.
2014-04-11 13:19:19 -04:00
Guillermo Rauch
57425ab1dd
Merge pull request #1485 from rase-/add/origins
...
Added support for setting allowed origins
2014-04-11 09:46:37 -07:00
Guillermo Rauch
32db7c46c0
tweaks
2014-04-11 09:45:52 -07:00
Guillermo Rauch
03228046da
README: fix node.js example
2014-04-11 09:44:07 -07:00
Tony Kovanen
463d7a16a1
Moved the origins checking callback outside the origins getter/setter function.
2014-04-11 19:39:10 +03:00
Guillermo Rauch
dbc814e3fd
cleanup
2014-04-11 09:34:44 -07:00
Guillermo Rauch
d527099265
dropping illusory websocket parity
2014-04-11 09:33:14 -07:00
Guillermo Rauch
6fb3d800d9
Merge pull request #280 from get/parseqs
...
querystring turned into module, removed from util.js
2014-04-11 09:14:09 -07:00
Guillermo Rauch
076b3e4b84
Merge pull request #284 from rase-/fix/tests
...
Fix double firing of close event when explicitly closing a socket
2014-04-11 08:50:50 -07:00
Guillermo Rauch
d30cb2b27b
Merge pull request #286 from rase-/fix/ie
...
JSONP and test fixes causing fails in IE
2014-04-11 08:45:59 -07:00
Tony Kovanen
449bb12572
Ignoring test for closing an incorrect connection for situations leading to JSONP polling
2014-04-11 16:59:23 +03:00
Tony Kovanen
aad85cb2bd
JSONP and test fixes for fails in IE
2014-04-11 15:39:14 +03:00
Guillermo Rauch
8ac2dbdc89
polling-xhr: fix by @3rd-eden
2014-04-10 15:41:40 -07:00
Tony Kovanen
5d74847123
Updated README to include origins
2014-04-11 01:29:37 +03:00
Guillermo Rauch
ddf29dff03
Merge pull request #243 from rase-/add/origin-callback
...
Origins support
2014-04-10 15:24:05 -07:00
Tony Kovanen
5b7f0cffb1
Updated README to include allowRequest callback
2014-04-11 01:23:42 +03:00
GK
c21b291936
change qs and qsParse methods to encode and decode
2014-04-10 18:23:10 -04:00
Tony Kovanen
802f130080
Made the request verification process async
2014-04-11 01:17:57 +03:00
Tony Kovanen
db36d031bc
Added support for giving a function to engine.io to decide whether a request should be allowed or not when verifying. This is used by socket.io to check for allowed origins.
2014-04-11 01:11:32 +03:00
Tony Kovanen
382b15c71e
Fix double firing of close event when explicitly closing a socket
2014-04-11 01:06:41 +03:00
Guillermo Rauch
18ae1adec6
Merge pull request #273 from lpinca/fix/polling-timestamp
...
polling: ensure that the timestamp used for cache busting is unique
2014-04-10 15:04:53 -07:00
Guillermo Rauch
51d5ba0165
Merge pull request #283 from lpinca/fix/polling-xhr-cleanup
...
polling-xhr: abort the request when the window is unloaded
2014-04-10 15:01:21 -07:00
Guillermo Rauch
ac12f7222c
Merge pull request #281 from 3rd-Eden/master
...
[fix] new XMLHttpRequest always returns an object
2014-04-10 14:58:11 -07:00
Kevin Roark
f8b4d87331
added test that server and client using same protocol
2014-04-10 14:45:32 -04: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
Guillermo Rauch
60c8596a51
Merge pull request #12 from nkzawa/patch-0
...
Fix encodePayloadAsBinary method encodes packets to base64
2014-04-10 10:42:14 -07:00
Guillermo Rauch
ee17598b36
fix copyright
2014-04-10 07:45:45 -07:00
Guillermo Rauch
c597bac0c5
package: bump engine.io-parser to 1.0.3
2014-04-10 06:06:48 -07:00
Guillermo Rauch
af872a516f
package: bump engine.io-parser to 1.0.3
2014-04-10 06:06:31 -07:00
Guillermo Rauch
c4a35bc536
Release 1.0.3
2014-04-10 06:06:08 -07:00
Guillermo Rauch
0743f325b9
Merge pull request #241 from contra/master
...
use _query instead of query, closes #203
2014-04-09 15:02:00 -07:00
Tony Kovanen
d33553a4bd
Added support for setting allowed origins
2014-04-09 22:34:53 +03:00
Luigi Pinca
9ea0abc316
polling-xhr: abort the request when the window is unloaded
2014-04-06 15:03:34 +02:00
Contra
1ebc286af4
use _query instead of query, fixes compat with restify
2014-04-03 18:03:16 -07:00
Arnout Kazemier
d4afe6c2c6
[fix] new XMLHttpRequest always returns an object
2014-04-03 17:01:04 +02:00
Naoyuki Kanezawa
14728f9a77
fix encodePayloadAsBinary method encodes packets to base64
2014-04-02 00:41:40 +09:00
GK
c38b041195
removed redundant util.js test file
2014-03-30 17:34:42 -04:00
GK
85a858bc68
merged with master
2014-03-30 17:26:46 -04:00
GK
3bbb714a13
querystring extracted from util.js into own npm module
2014-03-30 17:19:44 -04:00
Philipp Kyeck
6c03892236
fixed the payload format
...
was there but wasn't displayed correctly b/c of missing code formatting
2014-03-30 22:05:15 +02:00
Guillermo Rauch
45a98970d7
added information about logging
2014-03-28 11:51:54 -03:00
Guillermo Rauch
d669fbb8e0
Merge pull request #238 from rase-/add/max-http-buffer-size
...
Maximum buffer size for polling
2014-03-26 16:22:17 -03:00
Tony Kovanen
f8100f9237
Added a maximum buffer size to received data from polling. Settable with the maxHttpBufferSize option
2014-03-26 21:19:54 +02:00
Guillermo Rauch
1327863d1f
Merge pull request #8 from kevin-roark/add/docs
...
added documentation with a few examples
2014-03-26 14:49:15 -03:00
Kevin Roark
1771ee75e1
added documentation with a few examples
2014-03-26 13:47:47 -04:00
Guillermo Rauch
8b2df0b237
Merge pull request #11 from binlain/master
...
Fix length calculation when encoding as binary
2014-03-26 11:02:20 -03:00
binlain
395ff6f86f
Fix length calculation when encoding as binary
2014-03-26 00:11:02 +01:00
Guillermo Rauch
0b4e4f6a67
Merge pull request #1464 from rase-/add/set-backwards-compatibility
...
Set function for BC
2014-03-25 20:09:16 -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
97b7ab4fe2
Merge pull request #1462 from nicolagreco/patch-1
...
Mistake in callback call 'done' instead of 'next' in docs
2014-03-24 22:38:02 -03:00
Nicola Greco
6a435ce677
Mistake in callback call 'done' instead of 'next' in docs
2014-03-25 01:02:46 +00:00
Guillermo Rauch
98f807192e
Merge pull request #236 from DimitarChristoff/bug-235-enumerables
...
fixing looping array via for in to normal loop
2014-03-24 19:40:53 -03:00
Guillermo Rauch
e0a30f3416
Merge pull request #7 from kevin-roark/update/protocol-version
...
updated protocol version
2014-03-24 16:14:06 -03:00
Kevin Roark
ed7cd9410c
updated protocol version
2014-03-24 14:55:35 -04:00
Guillermo Rauch
116e023b48
Merge pull request #6 from kevin-roark/add/new-protocol-description
...
Updated Readme for version 3
2014-03-24 15:49:56 -03:00
Luigi Pinca
d07aac6015
polling: ensure that the timestamp used for cache busting is unique
2014-03-24 19:48:05 +01:00
Kevin Roark
8b75c22bba
Protocol now reflects the latest parser implementatation.
...
Including 'decoded' events, Decoder and Encoder instances, Decoder.add,
etc.
2014-03-24 14:46:32 -04:00
Guillermo Rauch
6aa553b211
Merge branch 'master' of github.com:LearnBoost/socket.io
2014-03-24 14:44:00 -03:00
Guillermo Rauch
024af23b2c
package: bump client
2014-03-24 14:43:37 -03:00
Guillermo Rauch
b50d9f8f5d
Merge pull request #1443 from kevin-roark/add/simple-tests
...
added some new tests, including binary with acks
2014-03-24 14:21:19 -03:00
Guillermo Rauch
949baef4eb
Merge pull request #277 from nkzawa/patch-1
...
Fix the this object for onlyBinaryUpgrades
2014-03-24 14:20:08 -03:00
Guillermo Rauch
33de820edb
Merge pull request #275 from plievone/ensure-transport-close
...
Ensure transport will be really closed in all cases
2014-03-24 14:17:03 -03:00
Kevin Roark
874c194210
Merge branch 'upstream' into add/simple-tests
...
Conflicts:
package.json
2014-03-24 13:03:43 -04:00
Naoyuki Kanezawa
7bf80c643e
fix the this object for onlyBinaryUpgrades
2014-03-23 18:54:46 +09:00
plievone
647c693791
Cast hasAttachEvent to boolean early
2014-03-21 15:28:21 +02:00
plievone
fea1fce36c
Make Request#cleanup() safe to call multiple times.
2014-03-21 14:37:51 +02:00
plievone
cbe11eacb7
Socket#onClose(): ensure transport won't stay open.
...
There are rare error cases when transport could stay open in the background
even if socket is closed, so it is better to always call
`this.transport.close()` in Socket#onClose as it is idempotent and
safe to call multiple times.
2014-03-21 14:27:20 +02:00
DimitarChristoff
e4593af733
fixing looping array via for in to normal loop
2014-03-21 11:32:13 +00:00
Guillermo Rauch
f537560bcc
package: bump socket.io-parser
2014-03-18 18:28:49 -03:00
Guillermo Rauch
7197d6a29d
rebuild
2014-03-18 17:16:38 -03:00
Guillermo Rauch
8dba96511d
package: rollback socket.io-parser to fix acks
2014-03-18 16:45:48 -03:00
Guillermo Rauch
f8d1d33dfa
Merge branch 'master' of github.com:LearnBoost/socket.io
...
Conflicts:
package.json
2014-03-18 16:34:49 -03:00
Guillermo Rauch
736106a9e7
package: bump engine.io
2014-03-18 16:31:22 -03:00
Guillermo Rauch
7f9d623660
Release 1.0.5
2014-03-18 16:26:37 -03:00
Guillermo Rauch
bab992d0f7
Release 1.0.5
2014-03-18 16:26:36 -03:00
Guillermo Rauch
61f012f349
package: bump engine.io-parser
2014-03-18 16:23:53 -03:00
Guillermo Rauch
a9d9d74250
Merge branch 'master' of github.com:LearnBoost/engine.io-client
2014-03-18 16:23:40 -03:00
Guillermo Rauch
75ffb26c2d
package: bump engine.io-parser
2014-03-18 16:23:09 -03:00
Guillermo Rauch
e87f52c656
Release 1.0.2
2014-03-16 13:45:04 -03:00
Guillermo Rauch
2d9b4551fb
Merge pull request #8 from rase-/add/android-test
...
Added android to zuul browsers
2014-03-16 12:56:23 -03:00
Guillermo Rauch
9805230b2c
Merge pull request #272 from rase-/fix/android
...
Added android as a browser for testing fixed tests accordingly
2014-03-16 12:55:22 -03:00
Tony Kovanen
112c37966b
Encoding binary as ArrayBuffer for android, because blob data is sent as empty payload
2014-03-16 14:28:04 +02:00
Tony Kovanen
e303c080a9
Added android as a browser for testing fixed tests accordingly
2014-03-16 14:18:44 +02:00
Tony Kovanen
0609fa1ff9
Added android to zuul browsers
2014-03-16 02:31:15 +02:00
Guillermo Rauch
f5a8ac293a
Merge pull request #1452 from kevin-roark/update/parser-dependency
...
updated parser dependency
2014-03-15 19:35:35 -02:00
Kevin Roark
afc83ad65a
Merge branch 'upstream' into add/simple-tests
...
Conflicts:
package.json
2014-03-15 17:32:27 -04:00
Kevin Roark
b5f90923a2
updated parser dependency
2014-03-15 17:30:47 -04:00
Guillermo Rauch
5a0cb9fc5d
polling-xhr: lint
2014-03-15 17:06:23 -03:00
Guillermo Rauch
c574f5f959
Merge pull request #1451 from elisee/patch-1
...
Fix // … to be /* … */ in README.md
2014-03-15 17:57:01 -02:00
elisee
ba339cc460
Fix // … to be /* … */
2014-03-15 20:25:00 +01:00
Guillermo Rauch
aee4dd9a6d
package: bump expect.js
2014-03-15 10:39:21 -03:00
Guillermo Rauch
ad86129437
Release 1.0.0-pre
2014-03-15 10:36:51 -03:00
Guillermo Rauch
c8eda77da3
package: fix versions
2014-03-15 10:33:02 -03:00
Guillermo Rauch
a4fabba781
Readme: tweak
2014-03-15 10:23:25 -03:00
Guillermo Rauch
c19d2692e2
package: bump engine.io
2014-03-14 19:39:10 -03:00
Guillermo Rauch
ca05ac493c
Release 1.0.4
2014-03-14 19:38:24 -03:00
Guillermo Rauch
bc893fc36c
Release 1.0.4
2014-03-14 19:38:23 -03:00
Guillermo Rauch
85b5c7af1a
package: bump engine.io-client
2014-03-14 19:37:17 -03:00
Guillermo Rauch
04e8a94850
Merge pull request #271 from rase-/fix/websocket-binary
...
Not base64 encoding for no reason when using websockets
2014-03-14 20:34:15 -02:00
Tony Kovanen
94511ae063
Not base64 encoding for no reason when using websockets
2014-03-14 22:25:33 +02:00
Guillermo Rauch
36ad8e87eb
package: bump socket.io-adapter
2014-03-14 15:05:43 -03:00
Guillermo Rauch
668b9cfb47
Release 0.2.0
2014-03-14 15:04:31 -03:00
Guillermo Rauch
c039311f4a
Merge branch 'master' of github.com:LearnBoost/socket.io-adapter
2014-03-14 15:04:00 -03:00
Guillermo Rauch
74bbac0633
Merge pull request #1 from kevin-roark/update/parser-dependency
...
needs the faster parser
2014-03-14 16:03:32 -02:00
Kevin Roark
50a641a2db
needs the faster parser
2014-03-14 13:25:13 -04:00
Kevin Roark
7d4aa670ad
bumped parser dependency
2014-03-13 10:49:31 -04:00
Kevin Roark
620f94a007
Merge branch 'upstream' into add/simple-tests
...
Conflicts:
package.json
2014-03-12 20:33:01 -04:00
Guillermo Rauch
f808c377b0
package: bump engine.io
2014-03-12 15:47:29 -03:00
Guillermo Rauch
744649eee4
Release 1.0.3
2014-03-12 15:25:28 -03:00
Guillermo Rauch
52fdbcb71a
Release 1.0.3
2014-03-12 15:25:26 -03:00
Guillermo Rauch
edadf1bbd0
package: bump engine.io-client
2014-03-12 15:19:36 -03:00
Guillermo Rauch
5f805c3700
fix browserify
2014-03-12 15:18:43 -03:00
Guillermo Rauch
52e288c747
Release 1.0.2
2014-03-12 14:54:47 -03:00
Guillermo Rauch
086a3e5a59
Release 1.0.2
2014-03-12 14:54:45 -03:00
Guillermo Rauch
0a287e4437
bump engine.io-client
2014-03-12 14:54:26 -03:00
Guillermo Rauch
4282bae7af
build
2014-03-12 14:39:51 -03:00
Guillermo Rauch
6649bef65c
support: fix browserify
2014-03-12 14:30:59 -03:00
Guillermo Rauch
41c5b37ac7
bump engine.io
2014-03-11 11:53:42 -03:00
Guillermo Rauch
c972153669
bump client
2014-03-10 20:09:56 -03:00
Guillermo Rauch
ba4a134bff
README: syntax
2014-03-09 13:25:24 -03:00
Guillermo Rauch
12edeecc57
Merge pull request #262 from lpinca/fix/browserify-options
...
Fix browserify options
2014-03-09 13:21:30 -02:00
Guillermo Rauch
585fbf1397
Merge pull request #268 from rase-/refactor/tests
...
Cleaned up tests by using the blob module
2014-03-09 02:57:49 -02:00
Kevin Roark
4823d20cf1
Merge branch 'upstream' into add/simple-tests
...
Conflicts:
package.json
2014-03-08 20:58:41 -05:00
Tony Kovanen
cfba060d8a
Cleaned up tests by using the blob module
2014-03-09 01:30:41 +02:00
Guillermo Rauch
5818976a26
Merge pull request #267 from rase-/master
...
Rebump engine.io-parser version to fix broken merge
2014-03-08 21:15:26 -02:00
Guillermo Rauch
380d3b7e2a
Merge pull request #7 from rase-/refactor/tests
...
Cleaned up logic for deciding if blob tests should be run
2014-03-08 21:12:45 -02:00
Tony Kovanen
134897a1e0
Cleaned up logic for deciding if blob tests should be run
2014-03-09 01:01:17 +02:00
Tony Kovanen
2f470cadd9
Removed parser tests. Parser has it's own tests
2014-03-09 00:52:08 +02:00
Tony Kovanen
5523d7e000
Rebump engine.io-parser version to fix broken merge
2014-03-09 00:25:30 +02:00
Guillermo Rauch
b084823008
Merge pull request #266 from get/parsejson_new
...
ParseJSON and parseURI made into their own modules
2014-03-08 19:40:36 -02:00
Guillermo Rauch
fef5536c11
Merge pull request #265 from rase-/remove/global
...
Removed the global dependency
2014-03-08 19:39:58 -02:00
rase-
bce783641b
Style
2014-03-08 22:46:41 +02:00
Guillermo Rauch
44a79f9cee
server: make Server#adapter work after construction
2014-03-07 18:33:36 -03:00
Guillermo Rauch
56e7de5044
Release 0.1.0
2014-03-07 18:07:08 -03:00
Guillermo Rauch
41d9c0b344
initial commit
2014-03-07 17:46:17 -03:00
Guillermo Rauch
81e8a0c3a5
added support for volatile packets
2014-03-07 04:09:43 -06:00
Guillermo Rauch
adffabeee3
style
2014-03-07 03:41:22 -06:00
Guillermo Rauch
79dd06a767
socket: fix flags api state
2014-03-07 03:32:27 -06:00
Guillermo Rauch
93df3c47cc
Readme; document Socket#id
2014-03-07 00:43:40 -06:00
Guillermo Rauch
2a3a5a01a2
Readme: document Socket#join and Socket#leave
2014-03-07 00:39:39 -06:00
Guillermo Rauch
dd8745ece2
Readme: document to multiple-call situation
2014-03-07 00:33:54 -06:00
Guillermo Rauch
4615e932c1
Readme: document Socket#to and Socket#in
2014-03-07 00:33:05 -06:00
Guillermo Rauch
7e96f0a1ff
Readme: document Socket#emit
2014-03-07 00:31:01 -06:00
Guillermo Rauch
8df80ee91c
move adapter out
2014-03-06 22:49:38 -06:00
GK
74fb64e122
fixed package.json merge issues
2014-03-06 19:55:08 -05:00
GK
6737a83d99
fixed indentation
2014-03-06 19:49:59 -05:00
Tony Kovanen
55f10e68b3
Removed the global dependency
2014-03-07 01:44:16 +02:00
Kevin Roark
612d35194f
updated parser dependency
2014-03-06 18:41:43 -05:00
Guillermo Rauch
4f2916b5a6
Release 2.1.2
2014-03-06 17:37:57 -06:00
Guillermo Rauch
4ead96448c
Release 1.0.1
2014-03-06 17:33:48 -06:00
Guillermo Rauch
7f17c4d4d0
Release 1.0.1
2014-03-06 17:33:35 -06:00
Guillermo Rauch
4c9a4a736d
package: bump engine.io-parser
2014-03-06 17:31:58 -06:00
Guillermo Rauch
f14ad2d28d
package: bump engine.io-parser
2014-03-06 17:30:49 -06:00
Guillermo Rauch
83514d709f
Release 1.0.1
2014-03-06 17:29:14 -06:00
Guillermo Rauch
e247e937fe
Merge pull request #6 from kevin-roark/add/binary-ack-support
...
Encoding ack packets as binary
2014-03-06 17:23:50 -06:00
Guillermo Rauch
66be853117
Merge pull request #6 from rase-/refactor/browser.js
...
Using the blob module
2014-03-06 17:19:03 -06:00
Guillermo Rauch
a2612ed8c2
Merge pull request #5 from rase-/enhance/style
...
Style, bump arraybuffer.slice version and remove nbsp
2014-03-06 17:14:16 -06:00
Tony Kovanen
ec08d1d004
Using the blob module for creating a blob constructor that abstracts the constructor api used
2014-03-07 00:35:46 +02:00
Kevin Roark
c8cce3e8c0
removed the 'in' slowness
2014-03-06 17:24:58 -05:00
Guillermo Rauch
4d08358017
transports: fix jshint warnings and style
2014-03-06 14:03:44 -08:00
Kevin Roark
a5ff1d854e
added some new tests, including binary with acks
2014-03-06 16:58:21 -05:00
Kevin Roark
2f729e07b4
Encoding ack packets as binary
...
So that arbitrary data can be passed back and forth in ack callbacks.
2014-03-06 16:52:08 -05:00
Tony Kovanen
56e1ce292d
Style, bump arraybuffer.slice version and remove nbsp
2014-03-06 22:49:24 +02:00
Guillermo Rauch
0c8ed9547c
package: introduce proper engine.io version
2014-03-06 12:11:46 -08:00
Guillermo Rauch
31b5bfc328
readme tweak
2014-03-06 12:06:16 -08:00
Guillermo Rauch
59b4748f6f
Release 1.0.0
2014-03-06 11:55:09 -08:00
Guillermo Rauch
38ef3810d1
Release 1.0.0
2014-03-06 11:55:06 -08:00
Guillermo Rauch
caacf6d442
polling-xhr: added OPTIONS support, fixes CORS
2014-03-06 11:33:05 -08:00
Guillermo Rauch
b0e5527513
style
2014-03-06 11:32:24 -08:00
Guillermo Rauch
8104694fdf
package: bump parser
2014-03-04 23:29:22 -08:00
Guillermo Rauch
b8d7885a0e
Release 2.1.1
2014-03-04 23:18:59 -08:00
Guillermo Rauch
1b7b04bfba
Merge pull request #5 from kevin-roark/fix/remove-blob-object-check
...
Fix/remove blob object check
2014-03-04 23:15:44 -08:00
Kevin Roark
ba64f07bca
Removed has-binary-data dependency
...
And replaced it with better isBuf function. Has binary data would not have
checked objects that contain blobs. isBuf only checks the current object,
not its child objects
2014-03-05 00:20:52 -05:00
Kevin Roark
47df0694f5
Fixed the object check in binary.removeBlobs
...
Remove blobs has to iterate over a javascript object and asynchronously
remove the blobs / files. It does this by iterating over arrays and
objects in the larger object recursively.
Problem was in checking for object to iterate over, wasn't checking if
that object was binary data itself. So it was working, but really slowly,
by iterating over every byte in a Buffer and checking it for blobs.
Much faster now :)
2014-03-04 23:50:36 -05:00
Guillermo Rauch
6be582db3d
package: bump client
2014-03-04 00:25:24 -08:00
Guillermo Rauch
12733a8759
test: fix global leakage
2014-03-03 14:22:51 -08:00
Guillermo Rauch
5e28161322
Merge pull request #1440 from kevin-roark/add/binary-broadcasting
...
Added binary support to broadcasting of events
2014-03-02 20:53:37 -08:00
Kevin Roark
c2bf0ea700
Added binary support to broadcasting of events
...
lib/namespace.js previously was not considering whether an event had
binary data and was giving all events parser.EVENT type -- now it uses
the has-binary-data module to set the event type appropriately.
Then, after this fix there was a problem with lib/adapter.js -- because
socket.io-parser modifies the packet object in its encoding, the sockets
after the 1st in a broadcast were not getting the correct data. To fix
this, the data is encoded once in adapter, and then the encoded data
is passed to each of the sockets.
lib/socket.js and lib/client.js were updated to allow for the above. The
.packet method of each now takes an optional second "preEncoded" parameter
-- if this is true, then client skips the encoding and just writes the
packet argument directly to engine.
test/socket.io.js was updated to add two new tests that test
multi-messaging of events with binary data.
2014-03-02 22:15:16 -05:00
Guillermo Rauch
571f3a663c
package: bump socket.io-client for new build
2014-03-01 10:18:33 -08:00
Guillermo Rauch
d293e3be7c
version badge
2014-03-01 09:00:34 -08:00
Guillermo Rauch
e2a5e4b1f2
package: adjust socket.io-client
2014-03-01 08:55:50 -08:00
Guillermo Rauch
7b4c8c67c2
package: bump parser
2014-03-01 08:55:05 -08:00
Guillermo Rauch
e280e17094
Merge pull request #1432 from kevin-roark/add/better-binary-events
...
Updated protocol-facing code for new binary protocol
2014-03-01 08:53:49 -08:00
Guillermo Rauch
3283b89c4e
Release 2.1.0
2014-03-01 08:32:23 -08:00
Guillermo Rauch
947d7b4ea5
Merge pull request #1437 from keyosk/master
...
Update chat example
2014-03-01 08:21:53 -08:00
Cody Massin
318d62e5ad
When displaying leave and join messages show a message with an updated participants count.
...
Signed-off-by: Cody Massin <keyosk@gmail.com >
2014-03-01 00:20:51 -08:00
Guillermo Rauch
dd4b822426
Merge pull request #4 from kevin-roark/add/class-based-protocol
...
Protocol is now class-based
2014-02-27 15:09:14 -08:00
Kevin Roark
fc34c7d7a4
Updated protocol-facing code to reflect newest parser
...
Socket.io-parser now has a class-based Encoder and Decoder scheme,
so client.js was changed appropriately.
The main difference is that most of the logic for interpreting packets
is now isolated to parser, and client receives a 'decoded' event when
parser has a reconstructed packet ready to go.
2014-02-27 17:54:02 -05:00
Kevin Roark
5bea0bf41c
Protocol is now class-based
...
Separated the encoding and decoding into two public-facing objects,
Encoder and Decoder.
Both objects take nothing on construction. Encoder has a single method,
encode, that mimics the previous version's function encode (takes a
packet object and a callback). Decoder has a single method too, add, that
takes any object (packet string or binary data). Decoder emits a 'decoded'
event when it has received all of the parts of a packet. The only
parameter for the decoded event is the reconstructed packet.
I am hesitant about the Encoder.encode vs Decoder.add thing. Should it be
more consistent, or should it stay like this where the function names are
more descriptive?
Also, rewrote the test helper functions to deal with new event-based
decoding. Wrote a new test in test/arraybuffer.js that tests for memory
leaks in Decoder as well.
2014-02-27 17:46:20 -05:00
Guillermo Rauch
101aeabdb8
Merge pull request #3 from kevin-roark/add/new-binary-parsing
...
A faster and smaller binary parser and protocol
2014-02-27 12:15:10 -08:00
Guillermo Rauch
027c73b91b
remove old credentials
2014-02-27 12:14:52 -08:00
Kevin Roark
299849b002
A faster and smaller binary parser and protocol
...
This is a squash of a few commits. Below is a small summary of commits.
Results from it: before the build size of socket.io-client was ~250K.
Now it is ~215K.
Tests I was doing here
(https://github.com/kevin-roark/socketio-binaryexample/tree/speed-testing )
take about 1/4 - 1/5 as long with this commit compared to msgpack.
The first was the initial rewrite of the encoding, which removes msgpack
and instead uses a sequence of engine.write's for a binary event. The
first write is the packet metadata with placeholders in the json for
any binary data. Then the following events are the raw binary data that
get filled by the placeholders.
The second commit was bug fixes that made the tests pass.
The third commit was removing unnecssary packages from package.json.
Fourth commit was adding nice comments, and 5th commit was merging
upstream.
The remaining commits involved merging with actual socket.io-parser,
rather than the protocol repository. Oops.
2014-02-26 22:31:39 -05:00
Kevin Roark
2f526f7a68
Updated Readme for version 3
...
Version 3 is the protocol that supports the newest binary-handling
parser.
2014-02-26 21:24:45 -05:00
Guillermo Rauch
53f9dce1a1
Merge branch 'master' of github.com:LearnBoost/socket.io-protocol
...
Conflicts:
index.js
2014-02-26 14:59:48 -08:00
Kevin Roark
449c28ce1c
Updated protocol-facing code for new binary protocol
...
This is a squash of four boring commits. The gist is that client.js
encoding and decoding stuff was updated to take an array of encoded packets
to write, and to handle sequences of binary packets to decode. There was
also merging done with upstream. All tests are passing.
2014-02-26 13:45:47 -05:00
Guillermo Rauch
9249b76e40
Merge pull request #4 from kevin-roark/fix/global-buffer-check
...
Added a check for global.Buffer before .isBuffer
2014-02-24 17:49:59 -08:00
Kevin Roark
bc162313a1
Added a check for global.Buffer before .isBuffer
...
Need this check for the future where we remove the browserify insertion
of Buffer. It is also cleaner to check, I believe.
2014-02-24 20:33:31 -05:00
Guillermo Rauch
3faca287a5
chat: forward 3000
2014-02-24 16:54:48 -08:00
Guillermo Rauch
266278d14c
prettify
2014-02-24 16:46:23 -08:00
Guillermo Rauch
d286ba2064
rename app->index
2014-02-24 16:28:04 -08:00
Guillermo Rauch
d4ec1b6ff0
use shorthand io call
2014-02-24 16:27:46 -08:00
Guillermo Rauch
49f11f9cf5
README: move to index
2014-02-24 16:27:37 -08:00
Luigi Pinca
81442ceea6
fix browserify options
2014-02-24 16:48:14 +01:00
Guillermo Rauch
7c9b0f9d58
fixed build
2014-02-23 09:17:11 -08:00
GK
3011d31aa2
made parseJSON its own module, update calls
2014-02-22 18:51:09 -05:00
Guillermo Rauch
05fd23ddda
Merge pull request #1430 from kevin-roark/fix/has-binary-dependency
...
fixed the has-binary-data dependency
2014-02-21 14:19:35 -08:00
Kevin Roark
d21b1f36a3
fixed the has-binary-data dependency
2014-02-21 17:10:53 -05:00
Guillermo Rauch
573b32cc7d
package: bump client
2014-02-21 13:32:12 -08:00
Guillermo Rauch
16d1afc7fc
Merge pull request #1426 from brishin/binary
...
Binary
2014-02-21 13:02:26 -08:00
Kevin Roark
675830e726
updated socket.io-client dependency
2014-02-20 17:21:39 -05:00
Guillermo Rauch
36f8aa8355
updated credentials
2014-02-20 13:56:43 -08:00
Guillermo Rauch
fd1018b92a
Merge pull request #1 from rase-/add/zuul
...
Added zuul config and made testing work on browsers
2014-02-20 13:54:56 -08:00
Guillermo Rauch
b66ef40573
package: bump engine.io-client
2014-02-20 13:48:32 -08:00
Guillermo Rauch
874b6422f2
package: bump engine.io
2014-02-20 13:48:07 -08:00
Guillermo Rauch
78164e5f65
Merge pull request #227 from j-salazar/memleak
...
close() properly when triggered in connection handler
2014-02-20 13:37:04 -08:00
Guillermo Rauch
472e2bd885
Merge pull request #259 from rase-/fix/browserify
...
Fixed options passed to browserify
2014-02-20 11:58:45 -08:00
Tony Kovanen
52e9744485
Fixed options passed to browserify
2014-02-20 21:57:19 +02:00
GK
bc793d30fc
checked out build file
2014-02-20 14:55:04 -05:00
Guillermo Rauch
921efdac63
build
2014-02-20 11:15:50 -08:00
Guillermo Rauch
0beb956530
Revert "Make timestamping default for sockets"
...
This reverts commit efc5ff99d1 .
2014-02-20 10:54:51 -08:00
Guillermo Rauch
46617c995c
Merge branch 'master' of github.com:LearnBoost/engine.io-client
2014-02-20 10:48:50 -08:00
Guillermo Rauch
519eb2b8be
fix
2014-02-20 10:48:39 -08:00
Guillermo Rauch
d91662e39d
Merge pull request #250 from j-salazar/multisockets
...
Force timestamping for sockets
2014-02-20 10:41:57 -08:00
Guillermo Rauch
76d9692228
build
2014-02-20 10:37:01 -08:00
Guillermo Rauch
e16aefc6d7
fix and upgrade browserify build
2014-02-20 10:36:41 -08:00
Guillermo Rauch
f7c7f2a0f0
build
2014-02-20 09:39:29 -08:00
Guillermo Rauch
f272070ad0
Makefile: make build dependent on package.json changes
2014-02-20 09:39:11 -08:00
Guillermo Rauch
423f84d820
run browserify without shims
2014-02-20 08:54:35 -08:00
Tony Kovanen
4e8db59871
Configured npm test
2014-02-20 13:08:04 +02:00
Tony Kovanen
85f8f98699
Added a couple of tests with Blobs for issue #2
2014-02-20 12:39:56 +02:00
Tony Kovanen
42cc5d2cff
Added zuul config and made testing work on browsers
2014-02-20 12:18:21 +02:00
Julian Salazar
efc5ff99d1
Make timestamping default for sockets
2014-02-20 01:21:34 -08:00
Julian Salazar
ef77af8c2f
close() properly when triggered in connection handler
2014-02-20 01:06:41 -08:00
Kevin Roark
b1c971507b
updated engine and -parser dependencies
2014-02-19 19:54:31 -05:00
Guillermo Rauch
5efe005679
Release 2.0.0
2014-02-19 16:51:16 -08:00
Guillermo Rauch
b4342772a3
package: point engine.io to commit for tests
2014-02-19 15:52:11 -08:00
Guillermo Rauch
f071471e46
package: bump engine.io-client
2014-02-19 15:43:49 -08:00
Guillermo Rauch
6524010835
package: bump parser
2014-02-19 15:38:49 -08:00
Guillermo Rauch
ac8156963d
package: bump parser
2014-02-19 15:35:56 -08:00
Guillermo Rauch
f00b6bd199
Merge pull request #244 from rase-/add/binary-support
...
Binary support
2014-02-19 15:32:07 -08:00
Guillermo Rauch
861b60ef26
package: fix github url
2014-02-19 15:26:55 -08:00
Guillermo Rauch
86725d1e92
moved from socket.io-protocol
2014-02-19 15:26:26 -08:00
Guillermo Rauch
504996417a
updated readme and moved parser out
2014-02-19 15:12:47 -08:00
Kevin Roark
8c3ca99e7c
merged binary with upstream's new chat app
2014-02-19 18:03:36 -05:00
Tony Kovanen
5708098f8e
style
2014-02-20 01:02:38 +02:00
Kevin Roark
beab053123
anonymous function style correct
2014-02-19 17:57:59 -05:00
Guillermo Rauch
6e8a2cd890
.travis: fix
2014-02-19 12:03:16 -08:00
Guillermo Rauch
db68db7b6b
Merge pull request #3 from rase-/add/zuul
...
Added zuul configurations and testing for browsers
2014-02-19 11:44:28 -08:00
Tony Kovanen
8e5557d712
Added zuul configurations and testing for browsers
2014-02-19 21:26:27 +02:00
Kevin Roark
745ee03102
Added binary support to socket.io
...
This is a squash of about 25 commits, and here is a summary:
adamreis added initial binary test with the doge image.
kevin-roark updated binary tests and wrote some binary encoding protocol.
kevin-roark replaced the custom binary encoding with msgpack because we
have to handle arbitrary json that contains binary.
adamreis added some 'crazy' tests for emmiting and receiving events with
several types of data.
kevin-roark updated client.js to use socket.io-protocol's async encoding
Did a bunch of upstream merging.
2014-02-19 13:46:39 -05:00
Tony Kovanen
43721adf2d
Merged current master
2014-02-19 18:35:05 +02:00
Tony Kovanen
eca3593706
Reverted the build file
2014-02-19 13:57:48 +02:00
Guillermo Rauch
69de792c03
Merge pull request #1427 from grant/upstream
...
Example: Chat -- Welcome message is always on top. Click now focuses input.
2014-02-18 21:14:53 -08:00
Grant Timmerman
d037d6cb38
Redefined input-focus click areas
2014-02-18 21:08:43 -08:00
Grant Timmerman
e06ea11c27
Welcome message is always on top. Click now focuses input.
2014-02-18 20:43:59 -08:00
Guillermo Rauch
ab4ea948cc
Merge pull request #218 from rase-/add/binary-support
...
Binary support
2014-02-18 17:28:57 -08:00
Guillermo Rauch
daf8df8f5c
Merge pull request #1425 from Aaron1011/node_11
...
Test on Node 0.11
2014-02-18 17:00:06 -08:00
Guillermo Rauch
ff2476c7a5
Merge pull request #1415 from grant/upstream
...
Example: Chat
2014-02-18 15:51:51 -08:00
Guillermo Rauch
10e2f12ef9
Merge pull request #3 from brishin/add/binary-support
...
Add/binary support
2014-02-18 15:00:58 -08:00
Tony Kovanen
94ba1afc1f
Added Blob to the list of possible parameter types to send
2014-02-19 00:54:11 +02:00
Kevin Roark
7f4ad41bca
merged new dependencies into upstream
2014-02-18 17:40:27 -05:00
Kevin Roark
26c65aa4a4
Added browser field to package to reduce build
...
Also made some stylistic changes based on guille's comments on PR
so far.
2014-02-18 17:12:06 -05:00
Tony Kovanen
20d06700c3
Removed the need to set any default values for binary support in transports
2014-02-18 23:56:01 +02:00
Tony Kovanen
69eb14b7b2
Increased timeout in binary fallback test
2014-02-18 23:54:23 +02:00
Tony Kovanen
a9a6f25e76
style
2014-02-18 23:33:22 +02:00
Guillermo Rauch
c86ea6d9c6
Merge pull request #2 from HaykoKoryun/patch-1
...
created .npmignore
2014-02-18 13:19:36 -08:00
Guillermo Rauch
bb797a4f83
.travis: drop 0.6, 0.8, upgrade to 0.10
2014-02-18 13:15:22 -08:00
Guillermo Rauch
fd07b59875
Readme: tweak
2014-02-18 13:14:43 -08:00
Guillermo Rauch
1c44485c77
Readme: initial readme
2014-02-18 13:11:21 -08:00
Guillermo Rauch
4f391be65d
README: point to reference implementation
2014-02-18 13:10:03 -08:00
Guillermo Rauch
19a4bf06e3
moved parser into own repo engine.io-parser
2014-02-18 13:08:22 -08:00
Guillermo Rauch
7d2c099f79
package: new repository
2014-02-18 13:06:42 -08:00
Guillermo Rauch
105fb8befe
moving code from engine.io-protocol
2014-02-18 13:06:06 -08:00
Guillermo Rauch
39f6040bfd
Release 1.0.0
2014-02-18 12:23:12 -08:00
Guillermo Rauch
5bfbad0411
Merge pull request #15 from rase-/add/binary-support
...
Binary support
2014-02-18 12:20:20 -08:00
Tony Kovanen
7d8944a856
Redisabled firefox tests because they are still not stable
2014-02-18 20:08:22 +02:00
Aaron Hill
fc77c0faca
Test on Node 0.11
2014-02-18 12:31:07 -05:00
Kevin Roark
27f872754e
added binary info to docs
2014-02-18 11:18:58 -05:00
Guillermo Rauch
746f4cfa30
Revert "don't override empty opts.port"
...
This reverts commit 1bf90f5aaa .
2014-02-17 14:52:11 -08:00
Guillermo Rauch
0ae7977d81
README: tweak
2014-02-17 14:48:05 -08:00
Guillermo Rauch
632684be55
Merge pull request #251 from j-salazar/locationport
...
Don't override empty opts.port
2014-02-17 14:41:22 -08:00
Julian Salazar
1bf90f5aaa
don't override empty opts.port
2014-02-17 14:38:10 -08:00
Grant Timmerman
e0a85a90aa
Changed hash function after testing it on generated lists of random usernames
2014-02-17 13:50:43 -08:00
Grant Timmerman
3aa3213b13
Moved colors to client with hash fn, cleaned up app.js
2014-02-17 13:41:21 -08:00
Tony Kovanen
d269acd2ab
User can now pass in an onlyBinaryUpgrades option to disable upgrading to a transport that doesn't support binary from one that does to avoid the overhead of base64 encoding
2014-02-16 22:55:23 +02:00
Grant Timmerman
575ff2ecfc
Fixed scrollbar height, fixed "undefined is typing", cleaned up fade effect
2014-02-16 12:12:02 -08:00
Grant Timmerman
852a9d34df
Added X is typing functionality
2014-02-16 02:50:33 -08:00
Grant Timmerman
8a3781499d
Reorganized event system, added log event, and changed formatting of chat
2014-02-16 01:05:41 -08:00
Tony Kovanen
caeae2da74
Re-enabled firefox, which seems to behave more stable now
2014-02-16 10:01:44 +02:00
Grant Timmerman
ab60d166ac
Added basic chatroom html
2014-02-15 23:31:00 -08:00
Tony Kovanen
33b5e79ca1
Testing for base64 fallback mechanism now run for browsers that don't support binary types
2014-02-16 09:18:32 +02:00
Tony Kovanen
c9c286da12
Fixed b64 encoding for browsers with no binary types at all
2014-02-16 09:11:24 +02:00
Grant Timmerman
f7838635a7
Added basic login page html for the new design
2014-02-15 23:00:20 -08:00
Tony Kovanen
47842afac1
Updated README to match the updated protocol
2014-02-16 03:13:25 +02:00
Tony Kovanen
990fbc9158
Better hack for running iPhone tests. New simulators now also run ws tests.
2014-02-16 03:09:59 +02:00
Guillermo Rauch
b0ba5dae93
Merge pull request #257 from nlagrow/remember-upgrade
...
Add tests for remembering websocket upgrade
2014-02-15 14:02:16 -08:00
Nick LaGrow
d38c58b772
Add tests for remembering websocket upgrade
...
Add 'rememberUpgrade' section. Tests whether sockets remember the upgrade to
webscoket if and only if the 'rememberUpgrade' flag is set.
2014-02-15 16:38:03 -05:00
Guillermo Rauch
0a3c521939
Merge pull request #243 from mokesmokes/sslws
...
Enable a direct websocket connection if the previous websocket connection ...
2014-02-15 13:14:50 -08:00
Tony Kovanen
e56b740647
Hack to leave ws tests out for old iOS simulators
2014-02-15 22:21:38 +02:00
Tony Kovanen
e43b2eee56
Switched platform for IE10. Windows 2012 tests pass, but for some reason 2008 not
2014-02-15 22:00:10 +02:00
Tony Kovanen
5c8ac8c94a
Adjusting timeouts
2014-02-15 21:34:22 +02:00
Tony Kovanen
62da296101
Fixed running tests
2014-02-15 20:06:24 +02:00
Mark Mokryn
76615fecc4
remember websocket upgrade
2014-02-15 17:48:02 +02:00
Tony Kovanen
9d233d3a8b
Style
2014-02-15 09:23:43 +02:00
Tony Kovanen
8cd37f0839
Style
2014-02-15 09:15:12 +02:00
Tony Kovanen
ca9ad8fecd
Ignoring Firefox for now + style
2014-02-15 09:01:16 +02:00
Tony Kovanen
33f7b2fba1
IE and iPhone fixed. Firefox is giving trouble
2014-02-15 08:28:20 +02:00
Grant Timmerman
cfb2a26d4f
Updated package.json, added numUsers int on server, and used io shorthand notation
2014-02-14 21:29:08 -08:00
Guillermo Rauch
09cfb17731
*: remove unused client dir and symlink WARN
2014-02-14 10:34:24 -08:00
Tony Kovanen
a711e3346f
Vendor prefixes in BlobBuilder taken into account
2014-02-14 04:50:54 +02:00
Guillermo Rauch
4cd4381b80
lib: bc compatibility
2014-02-13 14:12:59 -08:00
Kevin Roark
98067423ab
better msgpack browser module
2014-02-13 00:42:29 -05:00
Guillermo Rauch
d65ec8d649
package: bump socket.io-client
2014-02-12 16:43:08 -08:00
Guillermo Rauch
e16ac61b82
package: bump socket.io-client
2014-02-12 16:28:35 -08:00
Kevin Roark
a60fd25ee9
Base64 decoding support
...
Added a function that takes the base64 encoding of our event packets and
decodes them into packet json with correct type, namespace, and data args,
where data args are defined as [eventName, {base64: true, data: base64string}].
Then we leave it up to the user to handle something where base64 is true.
This bit of code is only relevant for very old browsers.
2014-02-12 18:05:46 -05:00
Guillermo Rauch
d17f5ce914
package: use a specific debug
2014-02-12 14:21:04 -08:00
Guillermo Rauch
1982afa481
package: serve a working socket.io-client
2014-02-12 14:16:32 -08:00
Guillermo Rauch
9ab3b106d9
socket: restore 0.8 compatibility
2014-02-12 12:40:22 -08:00
Guillermo Rauch
27141f962d
Merge pull request #223 from binlain/master
...
Fix possible DOS and small changes to timeouts
2014-02-12 12:19:00 -08:00
binlain
336e05b461
Fix dos by possibly creating many intervals
2014-02-12 22:12:39 +01:00
binlain
4c84571280
Merge pull request #1 from LearnBoost/master
...
123
2014-02-12 15:28:54 +01:00
Kevin Roark
2ad8c4ab4f
using isarray
2014-02-12 03:56:42 -05:00
Kevin Roark
0d457ad531
updated debug
2014-02-12 03:04:24 -05:00
Grant Timmerman
1860aa41ee
Removed extra lines, removed extra html
2014-02-11 21:46:59 -08:00
Grant Timmerman
598a140ad4
Update styles and formatting
2014-02-11 21:30:07 -08:00
Grant Timmerman
b8f6d4054c
Added more friendly username input interface
2014-02-11 21:11:58 -08:00
Tony Kovanen
19456fc0d6
Fixed iPhone 4.3 xhr2 problem
2014-02-12 05:49:59 +02:00
Grant Timmerman
450d408ed6
Updated code style
2014-02-11 18:18:54 -08:00
Grant Timmerman
0023aed4c3
Changed tabs to spaces, removed screenshot, and updated README
2014-02-11 17:13:44 -08:00
Grant Timmerman
f99cdc9339
Updated package.json and Readme
2014-02-11 16:22:01 -08:00
Grant Timmerman
999b8bc387
Updated screenshot
2014-02-11 16:16:25 -08:00
Grant Timmerman
95d19e285c
Removed external npm socket.io and now using local socket.io module
2014-02-11 13:09:46 -08:00
Grant Timmerman
9f8b1a2e1e
Removed .gitignore in the chat example
2014-02-11 13:04:14 -08:00
Grant Timmerman
0c5e3eb5cf
Merge branch 'master' of https://github.com/LearnBoost/socket.io into upstream
2014-02-11 13:00:20 -08:00
Grant Timmerman
eca3316620
Removed zuul yml
2014-02-11 12:59:17 -08:00
Grant Timmerman
29df46ae07
Added chat example
2014-02-11 12:48:55 -08:00
Guillermo Rauch
361429b076
Release 1.1.2
2014-02-11 10:14:33 -08:00
Guillermo Rauch
8fd1348336
package: bump json3 to fix IE6-7
2014-02-11 10:13:17 -08:00
Nathan Rajlich
2999c522a0
add LICENSE file
...
Closes #41 .
2014-02-10 20:24:05 -08:00
Nathan Rajlich
dbad2e1cdb
Release 1.1.2
2014-02-10 18:15:22 -08:00
Nathan Rajlich
39f2b5d849
History: add v1.1.1 changelog notes
2014-02-10 18:15:07 -08:00
Nathan Rajlich
82822cfe8c
package: rename to "component-emitter"
2014-02-10 18:13:25 -08:00
Nathan Rajlich
204a1047cf
package: update "main" and "component" fields
2014-02-10 18:12:26 -08:00
Tony Kovanen
7c61b41b1c
Fixes for iPhone safari
2014-02-11 04:08:12 +02:00
Tony Kovanen
7cc1b86145
Fixes for iPhone safari
2014-02-11 04:07:52 +02:00
Guillermo Rauch
3e972eb423
Release 1.1.1
2014-02-10 16:06:23 -08:00
Guillermo Rauch
e7f3b5fe40
package: bump debug to fix browserify issues
2014-02-10 16:04:42 -08:00
Jonathan Ong
b2d7c9be50
Merge pull request #42 from poshaughnessy/license
...
Add license to Readme (same format as the other components)
2014-02-10 08:42:19 -08:00
Peter O'Shaughnessy
d09675998d
Add license to Readme (same format as the other components)
2014-02-10 11:10:43 +00:00
Kevin Roark
589791df3e
Added support for reading File objects
...
Uses the same code as the Blob stuff before (fileReader can take a
Blob or File, and make an ArrayBuffer from either).
Browsers can now directly pass file handles because why not, probably
more useful than blobs.
2014-02-10 03:50:00 -05:00
Kevin Roark
3e561290ce
Added Blob support and made encoding async
...
In order to add Blob support to Socket.IO (part of the larger binary
support), the encode function was made asynchronous (it now takes a
callback) because blobs are converted to ArrayBuffers via an
async FileReader method.
Tests were also added to test the encoding and decoding of Buffers and
ArrayBuffers. The reason there is a new special test method to test
encoded vs decoded ArrayBuffers is that decoded ArrayBuffers in node
don't have the slice function (it is native code that can't be
transmitted over msgpack). Not sure how big of an issue this is.
Because of this new async, we need to now worry about buffering, etc.
Ideally this would all be engine.io level, but dang blobs.
Blob support is very close to file support -- update on that soon.
2014-02-09 14:49:22 -08:00
Guillermo Rauch
d4e6e1df71
Merge pull request #254 from mokesmokes/upgradeEvent
...
document Socket.upgrade event, and fix its timing just after setTranspor...
2014-02-09 12:22:06 -08:00
Mark Mokryn
facf40ad9b
emit socket upgrade event after upgrade done
2014-02-09 22:12:34 +02:00
GK
de2c561e45
made parseUri its own node module, change parseUri calls and tests
2014-02-09 12:09:57 -08:00
Guillermo Rauch
980b6a7c40
package: bump engine.io
2014-02-09 11:18:49 -08:00
Guillermo Rauch
fba0495614
README: fix test section
2014-02-09 11:11:05 -08:00
Guillermo Rauch
b10cf177e7
README: bump copyright
2014-02-09 11:08:38 -08:00
Guillermo Rauch
13dac10c72
package: bump engine.io server
2014-02-09 09:57:47 -08:00
Guillermo Rauch
06d031aea6
Release 0.9.0
2014-02-09 09:57:22 -08:00
Guillermo Rauch
5a2259571e
Release 0.9.0
2014-02-09 09:57:14 -08:00
Tony Kovanen
0bf7f8b301
Reorganizing binary testing on the browser
2014-02-09 19:54:59 +02:00
Guillermo Rauch
d55ad6231b
added npm-debug.log to gitignore
2014-02-09 08:57:38 -08:00
Guillermo Rauch
fd37233821
test: fixed close flag
2014-02-09 08:51:16 -08:00
Guillermo Rauch
2b0b281f68
Merge pull request #239 from mokesmokes/closefix
...
fix GH-207
2014-02-09 08:46:32 -08:00
Guillermo Rauch
9cde1b367c
Merge pull request #214 from mokesmokes/closetest
...
add tests for https://github.com/LearnBoost/engine.io-client/issues/207
2014-02-09 08:46:09 -08:00
Guillermo Rauch
b59ce1fd50
Merge pull request #247 from bmalehorn/parseUri
...
fix util.parseUri('localhost:3000') bug
2014-02-09 08:42:40 -08:00
Brian Malehorn
ebefd5e33a
fix parseUri('localhost:80'), add ipv6 addresses
2014-02-09 11:06:33 -05:00
Tony Kovanen
7fa7f82759
Fixes for iPhone safari
2014-02-09 09:44:15 +02:00
Kevin Roark
6c22a75cf9
browser style msgpack
2014-02-08 17:49:27 -08:00
Tony Kovanen
26cc5aaabc
Extracted arraybuffer slicing to a separate module
2014-02-09 02:38:39 +02:00
Tony Kovanen
4e436fd130
Not running blob tests in browsers that don't support blobs
2014-02-09 01:35:07 +02:00
Guillermo Rauch
d220856275
Merge pull request #248 from poohlty/cleanup-test
...
Use !this.xhr for testing in cleanup method
2014-02-08 15:15:26 -08:00
Tony Kovanen
238ebe6b6d
Moved tests for sending and receiving binary
2014-02-09 01:10:10 +02:00
Tianyu Liu
90dc66e998
Use !this.xhr for testing in cleanup method
2014-02-08 15:00:07 -08:00
Kevin Roark
95a2a4bd5d
replaced custom binary encoding with msgpack
2014-02-08 14:29:06 -08:00
Tony Kovanen
72221d6cfb
Really fixed binary support detection
2014-02-09 00:26:49 +02:00
Tony Kovanen
dd0f5e71a2
Fixed websocket binary support detection
2014-02-09 00:23:35 +02:00
Guillermo Rauch
36b284dd7f
README: style
2014-02-08 14:18:48 -08:00
Kevin Roark
e374341a56
initial binary support encoding
2014-02-08 14:11:18 -08:00
Tony Kovanen
f2623da126
Changed blob feature detection
2014-02-08 23:59:02 +02:00
Guillermo Rauch
1ed7920b0e
Merge pull request #222 from nlagrow/upgrade
...
Deny upgrade when proxy doesn't support websocket
2014-02-08 13:50:06 -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
Guillermo Rauch
1f0f209d5e
Merge pull request #1411 from get/server-client-file
...
change index to read build file from client
2014-02-08 12:11:57 -08:00
Nick LaGrow
468ca23339
Merge branch 'master' of https://github.com/LearnBoost/engine.io into upgrade
2014-02-08 12:11:35 -08:00
Nick LaGrow
17143bde09
Deny upgrade when proxy doesn't support websocket
...
Some proxies - such as nginx and squid - don't support websocket. The client attempting to upgrade its transport caused the engine.io connection to break (see GH-177). THe server now checks within handleRequest to see if the transport has changed without an upgrade request - if this is the case, the upgrade request is denied (defaults to polling) and the connection is maintained
2014-02-08 12:10:47 -08:00
Tony Kovanen
9e9af935c3
Fixed test that didn't work with HTTPS
2014-02-08 22:06:56 +02:00
GK
fc61a37a6d
change index to read build file from client
2014-02-08 11:18:07 -08:00
Tony Kovanen
1e9fbee95d
Fixed setting responseType for XHR2 in Firefox
2014-02-08 21:05:22 +02:00
Tony Kovanen
d6ca4a20db
Simpler XHR2 feature detection
2014-02-08 19:40:09 +02:00
Tony Kovanen
11bf741f3d
Bugfix to blob encoding
2014-02-08 19:16:58 +02:00
Tony Kovanen
1d3fc839d8
Tests for encoding payloads as blobs
2014-02-08 19:15:40 +02:00
Tony Kovanen
a1322d1b0d
Better feature detection for XHR2
2014-02-08 18:56:55 +02:00
Tony Kovanen
603c39c3cc
style
2014-02-08 05:09:16 +02:00
Tony Kovanen
057d4836cb
BlobBuilder stuff
2014-02-08 03:00:15 +02:00
Tony Kovanen
0c36e48bbc
Supporting sending of blobs. Not completely done yet.
2014-02-08 02:40:50 +02:00
Tony Kovanen
81437e5235
Using after instead of async
2014-02-08 01:42:22 +02:00
Guillermo Rauch
1e84be1270
Merge pull request #14 from HaykoKoryun/patch-1
...
created .npmignore
2014-02-07 15:29:35 -08:00
Guillermo Rauch
bf8761fb9b
Merge pull request #1410 from brishin/test
...
Fix `npm test`
2014-02-07 15:24:45 -08:00
Brian Donghee Shin
3dcba2859c
Fix npm test
2014-02-07 15:23:22 -08:00
Tony Kovanen
9c4f36e10a
Supporting sending of blobs. Not completely done yet.
2014-02-08 00:33:47 +02:00
Guillermo Rauch
3c58e854da
Merge pull request #246 from gterrono/bump-zuul-version
...
Bumped zuul version to 1.5.2
2014-02-07 14:14:01 -08:00
Greg Terrono
415b17dffe
Bumped zuul version to 1.5.2
2014-02-07 14:09:20 -08:00
Tony Kovanen
5df182abfb
Dummy support for sending blobs
2014-02-04 09:48:16 +02:00
Tony Kovanen
f59451ee4c
Dummy support for sending blobs
2014-02-04 09:46:36 +02:00
Tony Kovanen
e345a0f9f7
Truly async encoding
2014-02-04 09:05:27 +02:00
Tony Kovanen
13ff119772
Making encoding work with callbacks. Not completely there yet.
2014-02-04 00:04:30 +02:00
Tony Kovanen
d71fde22fd
Making encoding work with callbacks. Not completely there yet.
2014-02-04 00:04:05 +02:00
Tony Kovanen
3ca16b414b
Making encoding work with callbacks. Not completely there yet.
2014-02-04 00:03:40 +02:00
Guillermo Rauch
c73e01485d
Merge pull request #1403 from nkzawa/patch-1
...
middlewares of main namespace should be called first
2014-02-03 14:00:14 -08:00
Naoyuki Kanezawa
a3e1b0658f
middlewares of main namespace should be called first
2014-02-04 04:00:24 +09:00
Guillermo Rauch
aa0527fe54
Merge pull request #216 from mokesmokes/reqfix
...
fix Socket.request for upgraded sockets
2014-02-03 07:25:54 -08:00
Mark Mokryn
25e03c8351
Socket.request a simple property
2014-02-03 17:20:32 +02:00
Guillermo Rauch
3cf6a0949b
Merge pull request #1402 from gdi2290/patch-1
...
update copyright year
2014-02-03 06:52:08 -08:00
Guillermo Rauch
c0ec1af75c
Merge pull request #220 from gdi2290/patch-1
...
update copyright year
2014-02-03 06:52:05 -08:00
Tony Kovanen
740150ae50
Nicer feature detection
2014-02-03 15:48:28 +02:00
Mark Mokryn
3b8d7863b8
Socket.request made a nonwritable Socket property set in constructor
2014-02-03 13:32:59 +02:00
PatrickJS
193f401e79
update copyright year
2014-02-03 02:23:19 -08:00
PatrickJS
a98b8abe97
update copyright year
2014-02-03 02:08:42 -08:00
Tony Kovanen
feec922511
Encoding payloads is now using the same base64 encoding scheme as individual packets
2014-02-03 03:13:41 +02:00
Tony Kovanen
1c1cfc1f9c
Using url parameter for communicating the need for base64 instead of upgrade packet for WebSocket
2014-02-03 02:33:14 +02:00
Tony Kovanen
44159592c7
Using url parameter for communicating the need for base64 instead of upgrade packet for WebSockets
2014-02-03 02:31:48 +02:00
Tony Kovanen
8d6e42f5f3
Failing test for sending blobs
2014-02-03 01:25:32 +02:00
Mark Mokryn
9bf3119cf4
adding tests for engine.io-client #207 , PR #239
2014-02-03 00:31:44 +02:00
Guillermo Rauch
349413ab06
Merge pull request #217 from mokesmokes/id
...
document Socket.id
2014-02-02 11:02:41 -08:00
Guillermo Rauch
e475fd9aeb
Merge pull request #219 from mokesmokes/upgradeEvent
...
Emit upgrade event after new transport set
2014-02-02 10:49:36 -08:00
Tony Kovanen
944e3953ab
Nicer feature detection
2014-02-02 19:33:56 +02:00
Tony Kovanen
1bf72e860c
Got rid of polyfilling ArrayBuffer#slice, and made a separate tested module for a function that abstracts slicing
2014-02-02 17:42:19 +02:00
Tony Kovanen
948c811d92
Cleaning up connection.js tests
2014-02-02 17:10:23 +02:00
Tony Kovanen
1067ae80d3
WebSocket's support for binary is now checked, and base64 is used when there is no binaryType. If WebSocket doesn't support binary, this is communicated to the server through the upgrade packet.
2014-02-02 14:44:02 +02:00
Tony Kovanen
7723e8a2db
Upgrade packet can now set transport binary support capabilities
2014-02-02 14:42:16 +02:00
Tony Kovanen
02c44eea33
Individual packets can now be encoded/decoded as base64 strings
2014-02-02 02:45:02 +02:00
Mark Mokryn
1cbca8684b
added upgrade event timing test
2014-02-02 02:16:00 +02:00
Mark Mokryn
c8ddbf8e1c
Emit upgrade event after new transport set
2014-02-02 01:59:09 +02:00
Tony Kovanen
e88937036c
Some README updates
2014-02-01 23:59:24 +02:00
Tony Kovanen
004261aabd
Polyfilling slice when it doens't exist for ArrayBuffer and base64 string to ArrayBuffer conversion into separate modules
2014-02-01 20:19:27 +02:00
Tony Kovanen
e419a13d04
style
2014-02-01 19:01:46 +02:00
Tony Kovanen
552f871b06
Parser now has to figure out whether binary or string data is sent
2014-02-01 14:54:23 +02:00
Tony Kovanen
e60c62815a
Parser now has to figure out whether binary or string data is sent
2014-02-01 14:53:13 +02:00
Tony Kovanen
d9d8548341
Parser now has to figure out whether binary or string data is sent
2014-02-01 14:34:33 +02:00
Tony Kovanen
efc4c06b89
Adapting code to conventions
2014-02-01 13:26:24 +02:00
Tony Kovanen
dc4cab5619
Binary support
2014-02-01 01:52:41 +02:00
Tony Kovanen
dbe140c117
Binary support
2014-02-01 01:20:51 +02:00
Tony Kovanen
129687d0ad
Binary support
2014-02-01 00:24:39 +02:00
Mark Mokryn
4785b786cb
document Socket.id
2014-01-29 17:09:51 +02:00
Guillermo Rauch
f346921f78
Merge pull request #242 from lzyzsd/master
...
fix captcha in comment
2014-01-27 10:37:12 -08:00
Bruce Lee
0df20215b4
fix captcha in comment
2014-01-27 18:01:30 +08:00
Mark Mokryn
02684b8a54
update close event in README
2014-01-27 07:55:22 +02:00
Guillermo Rauch
9aa0cfa862
Merge pull request #234 from mokesmokes/patch-1
...
Socket.open() is a private API
2014-01-26 16:34:57 -08:00
Mark Mokryn
365bc471a5
undo removal of onclose for websocket api compattibility
2014-01-26 23:39:03 +02:00
Guillermo Rauch
18de24507a
Merge pull request #241 from defunctzombie/fix/disabled-xml
...
update to has-cors 1.0.3
2014-01-26 13:34:55 -08:00
Roman Shtylman
fc91fd39d7
update to has-cors 1.0.3
...
Fixes graceful fallback if XMLHttp request is disabled in IE
2014-01-26 16:10:27 -05:00
Guillermo Rauch
8454c2cdf9
Merge pull request #240 from defunctzombie/fix/build-worker
...
fix: build engine.io.js dynamically for webworker test
2014-01-26 11:43:04 -08:00
Roman Shtylman
ad074617c5
fix: build engine.io.js dynamically for webworker test
...
This avoids the problem of testing against a stale engine.io.js file.
2014-01-26 14:38:33 -05:00
Mark Mokryn
b583fe4a51
fix GH-207
2014-01-26 21:01:38 +02:00
Bruce Lee
db429864f6
fix captcha
2014-01-24 21:29:55 +08:00
Guillermo Rauch
5cbde0b798
Merge pull request #238 from defunctzombie/fix/makefile
...
fix Makefile
2014-01-23 15:01:16 -08:00
Roman Shtylman
d04eb7b29e
fix Makefile
...
actually depend on source files for build of engine.io.js
2014-01-23 17:36:35 -05:00
Guillermo Rauch
3841d7b846
websocket: document ws require
2014-01-22 15:29:07 -08:00
Guillermo Rauch
3655acd620
polling-xhr: fix ie10 webworker tests
2014-01-22 14:56:14 -08:00
Nathan Rajlich
d97ffaa1cc
Merge pull request #236 from defunctzombie/fix/component
...
add xmlhttprequest to component.json
2014-01-21 12:06:40 -08:00
Roman Shtylman
1471153e92
add xmlhttprequest to component.json
...
fixes #235
2014-01-21 15:00:19 -05:00
Guillermo Rauch
5c9ced8189
style
2014-01-19 11:39:31 -08:00
Guillermo Rauch
461918ba63
README: point to new spec
2014-01-18 11:34:06 -08:00
Guillermo Rauch
325d14be31
Removed SPEC (now in engine.io-protocol repository)
2014-01-18 11:33:51 -08:00
Guillermo Rauch
7ac24db0ce
Updated README
2014-01-18 11:33:33 -08:00
Guillermo Rauch
e2a1995aa2
test: disable worker test via feature detection
2014-01-18 11:29:41 -08:00
Guillermo Rauch
32bd7446f7
Release 0.8.2
2014-01-18 11:26:46 -08:00
Guillermo Rauch
0a6b887fbe
Release 0.8.2
2014-01-18 11:26:45 -08:00
Guillermo Rauch
94334afc55
package: bump engine.io-client
2014-01-18 11:26:18 -08:00
Guillermo Rauch
267001cb58
socket: style
2014-01-18 11:24:48 -08:00
Guillermo Rauch
ee321370ac
build
2014-01-18 11:23:38 -08:00
Guillermo Rauch
62125f1bea
test: added (failing) worker test ( fixes #231 )
2014-01-18 11:23:07 -08:00
Guillermo Rauch
679a357758
polling-xhr: avoid catching user-thrown errors
2014-01-18 09:45:04 -08:00
mokesmokes
8ed41c65fa
Socket.open() is a private API
...
Also see https://github.com/LearnBoost/engine.io-client/issues/175
2014-01-17 23:08:41 +02:00
Guillermo Rauch
9ce2dcd08c
style
2014-01-17 10:41:02 -08:00
Guillermo Rauch
d20ad91dc2
util: remove unused hasCORS
2014-01-17 10:28:23 -08:00
Guillermo Rauch
41fa0c3993
remove deferring for faster startup ( fixes #174 )
2014-01-17 10:23:33 -08:00
Guillermo Rauch
c8233bf62c
Release 0.8.1
2014-01-17 08:25:22 -08:00
Guillermo Rauch
8b192eb494
Release 0.8.1
2014-01-17 08:25:21 -08:00
Guillermo Rauch
c3de37047c
package: bump engine.io-client
2014-01-17 08:22:17 -08:00
Guillermo Rauch
25701e8d9d
Merge branch 'master' of github.com:LearnBoost/engine.io-client
2014-01-17 08:04:58 -08:00
Guillermo Rauch
7e832ca61d
package: bump debug to fix localStorage issue ( fixes #213 )
2014-01-17 08:04:06 -08:00
Guillermo Rauch
2815a4b19e
Merge pull request #229 from defunctzombie/fixes
...
misc fixes and readme updates
2014-01-15 11:34:13 -08:00
Roman Shtylman
3a590c003b
remove duplicate xmlhttprequest code
...
Since we shim the XMLHttpRequest module with our xmlhttprequest.js code
for browser packaging, we do not need the legacy util.request function
and can use the XMLHttpRequest module directly.
2014-01-15 14:18:13 -05:00
Roman Shtylman
f7e7154132
cleanup readme
...
- remove component instructions
- better browserify instructions
- add note about zuul to Tests section
2014-01-15 14:17:26 -05:00
Roman Shtylman
4893d6661d
add iphone to zuul browsers
2014-01-15 14:17:07 -05:00
Roman Shtylman
618cff2c32
bump zuul to 1.3.0
2014-01-15 14:16:53 -05:00
Roman Shtylman
6bfd5b3f20
use invalid ip address for incorrect connection test
...
Ensures that a failed connection will fail immediately versus waiting
for some DNS to resolve. Some browsers are very persistent about
resolving DNS names and some ISPs will DNS hijack.
2014-01-15 13:58:41 -05:00
Guillermo Rauch
7d5612eed7
Merge pull request #1395 from nulltask/patch-1
...
index: remove send dep
2014-01-15 10:22:41 -08:00
Seiya Konno
3efcd52674
index: remove send dep
2014-01-16 03:18:39 +09:00
Guillermo Rauch
8c0b60791c
gitignore: added coverage
2014-01-10 11:47:55 -03:00
Guillermo Rauch
32fe383e70
package: remove send dependency
2014-01-10 11:47:24 -03:00
Guillermo Rauch
6305ebe8aa
test: extend client serving tests
2014-01-10 11:47:04 -03:00
Guillermo Rauch
2b1a5afe6c
index: simplify and speed up client serving
2014-01-10 11:46:45 -03:00
Guillermo Rauch
84bf735e4d
add test coverage
2014-01-09 13:09:26 -03:00
Guillermo Rauch
142c73c9a1
index: remove SIO_COV env
2014-01-09 13:01:08 -03:00
Guillermo Rauch
9e5740bc8d
Merge pull request #227 from mokesmokes/patch-1
...
Update contributors, thanks Guillermo
2014-01-08 16:39:11 -08:00
Guillermo Rauch
6fb0c8426f
Merge branch 'master' of github.com:LearnBoost/engine.io
2014-01-08 17:34:58 -03:00
Guillermo Rauch
d001452935
Merge pull request #210 from mokesmokes/patch-1
...
Update contributors, thanks Guillermo
2014-01-08 12:04:05 -08:00
mokesmokes
032fd4c8c5
Update contributors, thanks Guillermo
2014-01-08 21:55:46 +02:00
Guillermo Rauch
93fa9a7cb2
polling-xhr: syntax
2014-01-08 16:54:40 -03:00
mokesmokes
75d878b1f4
Update contributors, thanks Guillermo
2014-01-08 21:52:38 +02:00
Guillermo Rauch
2cd76860b8
Merge pull request #226 from mokesmokes/patch-1
...
Fix GH-224, remove sockets array
2014-01-08 10:55:23 -08:00
mokesmokes
c2d547be54
Fix GH-224, remove sockets array
2014-01-08 20:48:49 +02:00
Guillermo Rauch
6c7cb48f78
Merge pull request #223 from defunctzombie/patch-6
...
README: remove outdated browserbuild reference
2014-01-07 17:12:29 -08:00
Roman Shtylman
e7b9ff4362
README: remove outdated browserbuild reference
2014-01-07 18:14:25 -05:00
Guillermo Rauch
099a49b19e
package: pin dev deps
2014-01-06 14:58:46 -03:00
Guillermo Rauch
c96768e85c
examples: fix port output
2014-01-06 14:07:16 -03:00
Guillermo Rauch
00c35016f8
Merg branch 'master' of github.com:LearnBoost/engine.io
2014-01-06 14:06:35 -03:00
Guillermo Rauch
53c75034d2
Merge pull request #204 from andybons/example
...
Correctly log the port that the latency example is running on.
2014-01-06 08:27:39 -08:00
Guillermo Rauch
14cc4c5f6b
Merge pull request #206 from HaykoKoryun/patch-1
...
created .npmignore
2014-01-06 07:06:47 -08:00
Guillermo Rauch
b14e3c1b96
Merge pull request #209 from defunctzombie/latency-example-fix
...
fix latency example
2014-01-06 07:05:53 -08:00
Roman Shtylman
9e38c2664a
fix latency example
2014-01-06 00:40:52 -05:00
Guillermo Rauch
16e58c4f53
Revert "Revert "package: bump zuul for tests performance""
...
This reverts commit 2c3b84447c .
2014-01-05 20:38:15 -03:00
Guillermo Rauch
2c3b84447c
Revert "package: bump zuul for tests performance"
...
This reverts commit 3678cb61cb .
2014-01-05 19:51:29 -03:00
Guillermo Rauch
3678cb61cb
package: bump zuul for tests performance
2014-01-05 19:48:55 -03:00
Guillermo Rauch
d23c1d9f27
page: syntax
2014-01-05 19:43:47 -03:00
Guillermo Rauch
2e55e3589f
Release 0.8.0
2014-01-05 19:41:39 -03:00
Guillermo Rauch
bd94d27e8f
Release 0.8.0
2014-01-05 19:41:35 -03:00
Guillermo Rauch
34ab2c7680
package: bump engine.io-client to 0.8.0
2014-01-05 19:41:06 -03:00
Guillermo Rauch
fa6c0c9fed
socket: emit upgrade errors as upgradeError instead of error
2014-01-05 19:39:57 -03:00
Guillermo Rauch
8ede274e05
test: fix syntax, remove globals
2014-01-05 19:16:15 -03:00
Guillermo Rauch
62c9885f61
Merge branch 'master' of github.com:LearnBoost/engine.io-client
2014-01-02 18:24:48 -03:00
Guillermo Rauch
6739f779f9
package: bump zuul
2014-01-02 18:24:29 -03:00
Guillermo Rauch
2e784aba14
Merge pull request #218 from HaykoKoryun/patch-1
...
updated .npmignore
2014-01-02 12:24:44 -08:00
Guillermo Rauch
07cf9395a0
package: bump engine.io
2014-01-02 08:00:04 -03:00
Guillermo Rauch
7ed789d381
package: remove ~
2014-01-02 07:40:44 -03:00
Guillermo Rauch
cf1d22e4c6
package: tweak url
2014-01-02 07:27:33 -03:00
Guillermo Rauch
815de9c379
.travis: speed up client tests
2014-01-01 19:09:53 -03:00
Guillermo Rauch
ae11244f0d
package: pin versions
2014-01-01 19:05:12 -03:00
Guillermo Rauch
1f02fcf267
Release 0.7.14
2014-01-01 19:02:29 -03:00
Guillermo Rauch
dc7a3e8895
package: bump engine.io-client to 0.7.14
2014-01-01 19:02:02 -03:00
Guillermo Rauch
9b22ece9a2
Release 0.7.14
2014-01-01 19:00:19 -03:00
Guillermo Rauch
5d88f318f8
switch to working versions of chrome
2014-01-01 18:29:10 -03:00
Guillermo Rauch
197e917dc3
test: increase timeouts for network tests
2013-12-31 00:11:16 -03:00
Guillermo Rauch
d840cc40d5
test: whitelist globals
2013-12-30 22:23:44 -03:00
Guillermo Rauch
fa187c48e6
transports: fix node tests error
2013-12-30 21:44:46 -03:00
Guillermo Rauch
2f880c6264
test: style
2013-12-30 15:30:35 -03:00
Guillermo Rauch
9e241b6d92
test: improve socket closing test
2013-12-30 15:30:22 -03:00
Guillermo Rauch
29e641bacb
polling: improve url timestamp for ie11 and allow force disabling
2013-12-30 15:30:11 -03:00
Guillermo Rauch
4e6c2f447d
polling-xhr: handle errors for xhr creation (fixes access denied issues)
2013-12-30 15:27:35 -03:00
Guillermo Rauch
026f5a035a
polling-xhr: style
2013-12-30 15:27:22 -03:00
Guillermo Rauch
1ab40e794e
socket: more instrumentation for transport creation
2013-12-30 15:25:58 -03:00
Guillermo Rauch
9811a66204
socket: allow explicit false for timestampRequests
2013-12-30 15:25:42 -03:00
Guillermo Rauch
53da167033
socket: accept null as first argument
2013-12-30 15:25:25 -03:00
Guillermo Rauch
cfb719c940
socket: style
2013-12-30 15:23:42 -03:00
Guillermo Rauch
0430bc4a72
transport: style
2013-12-29 15:16:41 -03:00
Guillermo Rauch
30baf081c6
test: fix transport tests on ie
2013-12-28 19:15:29 -03:00
Guillermo Rauch
afd0608345
package: bump zuul
2013-12-26 23:53:51 -03:00
Guillermo Rauch
48936231ea
index: add support for string port numbers
2013-12-26 21:30:33 -03:00
Guillermo Rauch
e48eb876a9
Makefile: cleanup
2013-12-26 09:14:21 -03:00
Guillermo Rauch
9732c8669d
.travis: deprecate 0.6
2013-12-25 23:39:04 -03:00
Guillermo Rauch
618a2a035c
README: tweak
2013-12-25 23:35:39 -03:00
Guillermo Rauch
0ed506fb72
move zuul to Makefile
2013-12-25 20:13:07 -03:00
Guillermo Rauch
eeb373d2c8
Release 1.1.0
2013-12-25 15:59:41 -03:00
Guillermo Rauch
eb6930f8d5
package: pin versions
2013-12-25 14:28:25 -03:00
Guillermo Rauch
656e224f7c
index: use json3
2013-12-25 14:17:11 -03:00
Guillermo Rauch
2b27ff2f2e
package: add json3 dep
2013-12-25 14:16:40 -03:00
Guillermo Rauch
2b5183b369
socket: revert onclose reason
2013-12-25 13:15:18 -03:00
Guillermo Rauch
14c71c2e72
socket: fix onclose reason
2013-12-25 13:13:02 -03:00
Guillermo Rauch
03db6a62e7
Readme: document use
2013-12-24 21:46:23 -03:00
Guillermo Rauch
83208b6e11
socket: add conn, client, request getters
2013-12-24 21:36:48 -03:00
Guillermo Rauch
036faa7d89
Readme: fix
2013-12-24 21:02:15 -03:00
Guillermo Rauch
7b2a71ac4f
server: add listen
2013-12-24 20:49:21 -03:00
Guillermo Rauch
da844159d9
namespace: jshint friendly usage of reserved keyword for backwards-compatibility
2013-12-24 20:10:16 -03:00
Guillermo Rauch
baea55009b
Readme: document usage with node
2013-12-24 20:08:47 -03:00
Guillermo Rauch
198efb0957
Readme: clarify engine.io options
2013-12-24 20:07:56 -03:00
Guillermo Rauch
f0e88265d6
Readme: added example of using 1.0 and koajs
2013-12-24 20:05:24 -03:00
Guillermo Rauch
760e1b5cda
Readme: fix
2013-12-24 20:01:56 -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
d31aafa5fd
socket: fix style
2013-12-24 19:56:10 -03:00
Guillermo Rauch
c545e3b963
lib: fix style
2013-12-24 19:56:01 -03:00
Guillermo Rauch
af66e5df4e
client: fix style
2013-12-24 19:55:52 -03:00
Guillermo Rauch
a86994f693
index: syntax
2013-12-24 19:51:53 -03:00
Jonathan Ong
7547b11c71
Merge pull request #38 from HaykoKoryun/patch-1
...
created .npmignore
2013-12-23 08:09:38 -08:00
Hayko Koryun
4f850be846
created .npmignore
...
created `.npmignore` to additionally ignore the `test` folder for __production__
2013-12-23 05:09:02 -08:00
Hayko Koryun
5bd1db556f
updated .npmignore
...
updated `.npmignore` to additionally ignore the `test` folder for __production__
2013-12-23 04:48:59 -08:00
Hayko Koryun
76e5e32c52
created .npmignore
...
created `.npmignore` to additionally ignore the `test` folder for __production__
2013-12-23 04:45:24 -08:00
Hayko Koryun
41021c8df3
created .npmignore
...
created `.npmignore` file to additionally ignore `test` folder to not pull for __production__
2013-12-23 04:02:33 -08:00
Hayko Koryun
27ca74dafc
created .npmignore
...
created `.npmignore` to additionally ignore `examples` and `test` folders to not pull them for __production__
2013-12-23 03:54:57 -08:00
Guillermo Rauch
0a197af0b2
Release 0.7.13
2013-12-20 12:41:39 -03:00
Guillermo Rauch
c154d11aad
package: bump engine.io-client
2013-12-20 12:41:01 -03:00
Guillermo Rauch
823f61c3eb
Release 0.7.13
2013-12-20 12:39:19 -03:00
Guillermo Rauch
f64e22d1b1
use jsonp in favor of XDomainRequest to preserve Cookie headers in all situations [3rd-eden] ( fixes #217 )
2013-12-20 12:36:33 -03:00
Andrew Bonventre
680df59d27
correctly log the port that the example is running on
2013-12-16 19:14:35 -05:00
Guillermo Rauch
e10ca28cc7
transports: added support for xss filters and IE11 UA
...
thanks @3rd-eden for bringing up ie11
2013-12-09 16:36:21 -03:00
Guillermo Rauch
430670f136
Merge pull request #1313 from tylermcginnis33/patch-1
...
Remove unnecessary comma from documentation
2013-12-09 08:27:02 -08:00
Guillermo Rauch
b527c7570b
transports: added support for XSS filters on IE
2013-12-09 13:25:58 -03:00
Guillermo Rauch
f65966d858
Merge pull request #1220 from balupton/patch-1
...
Removed 0.6 from travis (no longer supported by socket.io deps), added 0.10
2013-12-09 08:16:38 -08:00
Guillermo Rauch
2f3f54fb38
updated history
2013-12-09 13:03:37 -03:00
Guillermo Rauch
f0cc5aa834
package: bump engine.io
2013-12-09 13:00:02 -03:00
Guillermo Rauch
340281152f
LICENSE: update
2013-12-09 00:28:51 -03:00
Guillermo Rauch
5f247ca38e
package: remove optionalDependencies
2013-12-09 00:27:45 -03:00
Jonathan Ong
24ca3a05c8
travis stuff
2013-12-01 14:27:00 -08:00
Jonathan Ong
a5631018f6
1.1.1
2013-12-01 14:24:50 -08:00
Jonathan Ong
84a9ee4ec9
fix .once adding .on to the listener
2013-12-01 14:24:28 -08:00
Jonathan Ong
039f5fbee6
Merge pull request #36 from juliangruber/patch-1
...
docs: Emitter#off()
2013-11-30 20:06:08 -08:00
Julian Gruber
f544102278
docs: Emitter#off()
2013-11-30 23:16:22 +01:00
Guillermo Rauch
7f819e3be5
Merge pull request #210 from defunctzombie/zuul
...
browser and cloud testing via zuul
2013-11-18 12:35:13 -08:00
Roman Shtylman
dbeda86644
run zuul tests after node tests
2013-11-18 15:16:03 -05:00
Roman Shtylman
a70ba78dd8
update zuul version
2013-11-18 15:15:58 -05:00
Roman Shtylman
c649671a7e
travis: add encrypted saucelabs env vars
2013-11-18 15:15:53 -05:00
Roman Shtylman
e8c0095025
travis: quote all node versions
...
unquoted 0.10 changes to 0.1 which is not what you really want
2013-11-18 15:15:48 -05:00
Roman Shtylman
bc50a3eb86
test: close socket connection once test done
2013-11-18 15:15:42 -05:00
Roman Shtylman
2d9555c639
add test support server
...
Allows for tests to actually make connections to a backend.
2013-11-18 15:15:29 -05:00
Roman Shtylman
af1be0f46a
add zuul support for easier browser testing
...
To run tests in a local browser:
zuul --local 8080 -- test/index.js
To run tests in the cloud via saucelabs:
zuul -- test/index.js
2013-11-18 15:15:15 -05:00
binlain
9e01e245bf
Use setImmediate instead of process.nextTick
2013-11-17 03:24:28 +01:00
Guillermo Rauch
605af3a9d9
.travis
2013-11-11 18:11:52 -03:00
Guillermo Rauch
8f54073666
Release 0.7.12
2013-11-11 18:09:34 -03:00
Guillermo Rauch
fead2c9f3a
package: bump engine.io-client
2013-11-11 18:08:59 -03:00
Guillermo Rauch
d9145a3cb7
Merge branch 'master' of github.com:LearnBoost/engine.io-client
2013-11-11 18:00:38 -03:00
Guillermo Rauch
8bb0d1219f
Release 0.7.12
2013-11-11 18:00:19 -03:00
Guillermo Rauch
b1714a9877
engine.io: updated build to fix WebSocket constructor issue
2013-11-11 17:59:29 -03:00
Guillermo Rauch
5e5f4d9ccf
Merge pull request #211 from binlain/master
...
Document 'path' option
2013-11-11 12:27:44 -08:00
binlain
9c29d7b790
Document 'path' option
2013-11-11 21:20:09 +01:00
amir abu shareb
a14f2e39ac
add .repo prop
2013-11-06 23:49:09 +02:00
Guillermo Rauch
b7e4704f17
package: move browserify into devDeps
2013-11-06 13:31:50 -03:00
Guillermo Rauch
43f6627505
Release 0.7.11
2013-11-06 13:07:01 -03:00
Guillermo Rauch
7c56db516e
package: bump engine.io-client
2013-11-06 12:44:10 -03:00
Guillermo Rauch
0f1d80ecb2
Release 0.7.11
2013-11-06 12:35:03 -03:00
Guillermo Rauch
7db96258b7
Makefile: build now smaller thanks to browserify
2013-11-06 12:33:48 -03:00
Guillermo Rauch
6e944e028c
Merge pull request #209 from defunctzombie/0.7.10-dz
...
add browserify support
2013-11-06 07:04:14 -08:00
Guillermo Rauch
20adda3b6b
Merge pull request #199 from mokesmokes/GH-198
...
fix GH-198
2013-11-06 06:57:36 -08:00
Roman Shtylman
a969aa761a
add browserify support
...
fixes #200
2013-11-01 21:24:46 -04:00
Mark Mokryn
38f2dd151d
test updated
2013-10-31 14:58:53 +02:00
Mark Mokryn
2f0306d1f3
test added
2013-10-30 21:22:15 +02:00
Mark Mokryn
b4b4887f51
fix GH-198
2013-10-30 17:03:19 +02:00
Guillermo Rauch
e3692fd6e0
Release 0.7.10
2013-10-28 15:56:25 -05:00
Guillermo Rauch
8c79efe5ab
Release 0.7.10
2013-10-28 15:55:54 -05:00
Guillermo Rauch
ac108addd4
package: bump engine.io-client
2013-10-28 15:54:22 -05:00
Jonathan Ong
b98e1142b7
1.1.0
2013-10-20 23:03:51 -07:00
Amir Abu Shareb
7400f85e8d
alias .on, .off to .addEventListener and .removeEventListener
2013-10-20 14:09:43 +03:00
Guillermo Rauch
b917a50f81
Merge pull request #178 from goinstant/stash/catch-xhr-send
...
Emit errors thrown by xhr.send()
2013-10-17 07:48:40 -07:00
Guillermo Rauch
55da2a1b7c
Merge pull request #205 from topcloud/master
...
Fixed issue which prevented IE9 and under to pass Cookies to server duri...
2013-10-17 07:44:04 -07:00
Jonathan Gros-Dubois
55b6302e8a
Fixed issue which prevented IE9 and under to pass Cookies to server during handshake
2013-10-17 22:59:04 +11:00
Nathan Rajlich
ed9300475c
Merge pull request #196 from LearnBoost/update/ws-0.4.31
...
package: update "ws" to v0.4.31
2013-10-16 23:28:00 -07:00
Nathan Rajlich
d04ef95c04
Merge pull request #204 from LearnBoost/update/ws-0.4.31
...
package: update "ws" to v0.4.31
2013-10-16 23:22:19 -07:00
Nathan Rajlich
9aaa28b56e
package: update "ws" to v0.4.31
2013-10-14 11:05:32 -07:00
Nathan Rajlich
784a9c7b77
package: update "ws" to v0.4.31
2013-10-14 11:04:44 -07:00
Jonathan Ong
0c46bde5d1
Merge pull request #31 from btd/master
...
Added bower.json
2013-10-09 14:56:41 -07:00
Jonathan Ong
1590302b30
Merge pull request #29 from repoify/add/repository
...
Add repository field to readme
2013-10-09 14:54:59 -07:00
Denis Bardadym
2817060644
Added bower.json
2013-09-27 14:02:40 +04:00
Guillermo Rauch
f09b1ce2a9
Merge pull request #199 from dainis/fix_flashsocket
...
Fix #198 , flashsocket creation would fail
2013-09-19 10:38:10 -07:00
Dainis Tillers
305d703650
Fixed - there is no host property only hostname
2013-09-19 15:15:25 +03:00
Dainis Tillers
f8b68c969e
Fixed - flash socket creation should not call websocket doOpen as that will create a websocket and not a flashsocket connection because of changed scope(in websocket transport WebSocket is pointing to value returned by ws library, which in case of IE6,7,8 will be null and in result of that will fail with an error)
2013-09-19 15:15:18 +03:00
Tyler McGinnis
cbabf0719e
Remove unnecessary comma from documentation
...
A comma is used when there are three or more items in a series or you are separating two or more independent clauses.
2013-09-11 19:10:46 -07:00
Guillermo Rauch
9308adc822
Release 0.7.9
2013-08-30 20:26:35 -07:00
Guillermo Rauch
95457ebaa8
package: bump engine.io-client
2013-08-30 20:26:12 -07:00
Guillermo Rauch
380faf769d
Release 0.7.9
2013-08-30 20:25:56 -07:00
Guillermo Rauch
cd4747c869
Merge pull request #196 from LearnBoost/fix/lion
...
websocket: pass `undefined` as the WebSocket "protocols"
2013-08-30 20:24:24 -07:00
Nathan Rajlich
22a4a4b097
websocket: pass undefined as the WebSocket "protocols"
...
Fixes: https://cloudup.com/cfn0Edwkpya
2013-08-30 20:21:43 -07:00
Guillermo Rauch
4a32bc69b4
Release 0.7.8
2013-08-30 17:37:41 -07:00
Guillermo Rauch
cdf770cb22
package: bump engine.io-client
2013-08-30 17:36:09 -07:00
Guillermo Rauch
1bed7e391a
Release 0.7.8
2013-08-30 17:08:24 -07:00
Guillermo Rauch
2902f1ea5e
Merge pull request #190 from LearnBoost/update/ws
...
package: update "ws" to TooTallNate/ws@0cb9fe7a21a7a7c200f68b57916d1d62b...
2013-08-30 17:01:13 -07:00
Guillermo Rauch
fd7203f1ba
Merge pull request #195 from LearnBoost/update/ws
...
package: update "ws" to TooTallNate/ws@0cb9fe7a21a7a7c200f68b57916d1d62b...
2013-08-30 17:00:53 -07:00
Nathan Rajlich
f6607ae75d
package: update "ws" to TooTallNate/ws@0cb9fe7a21
...
Pending https://github.com/einaros/ws/pull/235
2013-08-30 16:56:02 -07:00
Nathan Rajlich
5f3e45b4e7
package: update "ws" to TooTallNate/ws@0cb9fe7a21
...
Pending https://github.com/einaros/ws/pull/235
2013-08-30 16:54:04 -07:00
Guillermo Rauch
8df69de904
Release 0.7.7
2013-08-30 16:07:55 -07:00
Guillermo Rauch
47c2e4b5cf
package: bump engine.io-client
2013-08-30 16:06:11 -07:00
Guillermo Rauch
e933b4542d
Release 0.7.7
2013-08-30 16:05:45 -07:00
Guillermo Rauch
c7dc4bd0ce
Merge pull request #193 from LearnBoost/add/component/ws
...
Add and use `component/ws`
2013-08-30 15:58:04 -07:00
Guillermo Rauch
a46ab9de95
Merge pull request #194 from LearnBoost/update/fixes
...
Upgrade to ws v0.4.30 + fixes
2013-08-30 15:50:59 -07:00
Nathan Rajlich
54ad249129
test: re-enable the "agent" option tests
2013-08-30 15:48:34 -07:00
Nathan Rajlich
af026a20b2
websocket: remove the "bufferedAmount" checking logic
...
This code was buggy to begin with, and actually the underlying
technique being used was non-deterministic and wouldn't work in practice
anyways.
The WebSocket client API kinda sucks in this regard, since it's virtually
impossible to implement proper ACKs using the WebSocket API by itself.
2013-08-30 15:46:27 -07:00
Nathan Rajlich
42b8547b18
package: bump ws to 0.4.30
2013-08-30 15:46:00 -07:00
Guillermo Rauch
c774b14da7
Release 0.7.6
2013-08-30 14:28:41 -07:00
Guillermo Rauch
1f2434b362
package: bump engine.io-client
2013-08-30 14:27:07 -07:00
Guillermo Rauch
7d93110e7a
Release 0.7.6
2013-08-30 14:26:36 -07:00
Guillermo Rauch
f2b2af65f3
package: revert ws
2013-08-30 14:26:19 -07:00
Guillermo Rauch
0465ac8147
Release 0.7.5
2013-08-30 14:14:50 -07:00
Guillermo Rauch
88355ac3f5
package: bump engine.io-client
2013-08-30 14:12:13 -07:00
Guillermo Rauch
fffb468f0d
Release 0.7.5
2013-08-30 14:11:46 -07:00
Guillermo Rauch
9d30514a57
package: bump ws to 0.4.30
2013-08-30 14:09:56 -07:00
Guillermo Rauch
5fc4eb9642
Merge pull request #190 from timoxley/master
...
Force timestampRequests for the Chrome Frame.
2013-08-29 09:46:31 -07:00
Nathan Rajlich
22ffc825cb
websocket: no more env sniffing, just require ws
...
This should make @shtylman very happy...
2013-08-29 09:34:46 -07:00
Nathan Rajlich
bada0179bb
component: add "component/ws" as a dependency
2013-08-29 09:34:26 -07:00
Nathan Rajlich
7f70fa2928
pin "component/has-cors" to v1.0.2
...
Now "has-cors" pins "global" to v2.0.1 as well (should fix v0.6.x)
2013-08-27 12:40:39 -07:00
Nathan Rajlich
e58be1a3b5
.travis.yml: start testing v0.6 once again
...
Now that the `package.json` is no longer using the "<user>/<repo>"
syntax, this should be fine once again.
2013-08-27 12:23:17 -07:00
Nathan Rajlich
d8242fa9a5
package: pin "xmlhttprequest" to LearnBoost/node-XMLHttpRequest@0f36d0b5eb
2013-08-27 12:22:14 -07:00
Nathan Rajlich
48ba84528c
pin "component/has-cors" to v1.0.1
...
/cc @shtylman
2013-08-27 12:20:23 -07:00
Nathan Rajlich
1316b05a7e
pin "component/global" to v2.0.1
...
/cc @shtylman
2013-08-27 12:18:39 -07:00
Tim
967cb09a6b
Force timestampRequests for Chromeframe.
2013-08-27 15:33:29 +10:00
Guillermo Rauch
70a5ecd370
test: temporarily disable breaking tests after ws regression
2013-08-25 14:32:01 -07:00
Guillermo Rauch
20d586ec9e
Release 0.7.4
2013-08-25 14:15:13 -07:00
Guillermo Rauch
d3fb10eb7f
package: bump engine.io-client
2013-08-25 14:14:53 -07:00
Guillermo Rauch
67339a5406
Release 0.7.4
2013-08-25 14:14:42 -07:00
Guillermo Rauch
9295638c71
package: rolling back to ws 0.4.25 due to disconnection bug
...
for moar info:
https://github.com/einaros/ws/issues/230
2013-08-25 14:13:18 -07:00
Guillermo Rauch
b063180406
Release 0.7.3
2013-08-23 15:50:18 -07:00
Guillermo Rauch
532997f6be
package: bump engine.io-client (noop)
2013-08-23 15:47:31 -07:00
Guillermo Rauch
beb22bde17
Release 0.7.3
2013-08-23 15:47:15 -07:00
Guillermo Rauch
1e55b039b9
package: fix regresison in upgrade cause by ws update
2013-08-23 15:45:35 -07:00
Guillermo Rauch
072d6a8ed2
Release 0.7.2
2013-08-23 15:41:20 -07:00
Guillermo Rauch
68cfbff94a
package: bump engine.io-client for WebSocket browser fix
2013-08-23 15:40:58 -07:00
Guillermo Rauch
9cda091f2c
Release 0.7.2
2013-08-23 15:40:18 -07:00
Guillermo Rauch
d46855924a
Merge pull request #187 from LearnBoost/fix/client-side-websocket-transport-again
...
transports: fix WebSocket transport in the web browser
2013-08-23 15:39:33 -07:00
Nathan Rajlich
50684ff362
transports: fix WebSocket transport in the web browser
...
For realz this time...
2013-08-23 15:38:25 -07:00
Guillermo Rauch
6954ab3b00
Release 0.7.1
2013-08-23 14:46:08 -07:00
Guillermo Rauch
876a740119
package: bump engine.io-client for ws fix
2013-08-23 14:45:05 -07:00
Guillermo Rauch
c844346300
Release 0.7.1
2013-08-23 14:44:46 -07:00
Guillermo Rauch
6fc9d13374
Merge pull request #186 from LearnBoost/fix/client-side-websocket-fail
...
transports: fix WebSocket transport in the web browser
2013-08-23 14:44:02 -07:00
Nathan Rajlich
af55d53b39
transports: fix WebSocket transport in the web browser
2013-08-23 14:43:00 -07:00
Nathan Rajlich
18e9282de2
package: upgrade "ws" to v0.4.29
2013-08-23 13:31:59 -07:00
Guillermo Rauch
912e93a1b7
Release 0.7.0
2013-08-23 11:09:31 -07:00
Guillermo Rauch
bfb7e38660
package: bump engine.io-client
2013-08-23 10:46:42 -07:00
Guillermo Rauch
ed89261524
Release 0.7.0
2013-08-23 10:33:38 -07:00
Guillermo Rauch
3901c60b61
Merge pull request #189 from mahnunchik/master
...
updated example, engine version 0.6.3, usage component
2013-08-23 08:35:37 -07:00
Guillermo Rauch
5086987881
Merge pull request #185 from LearnBoost/add/httpAgent-support
...
Add `http.Agent` support
2013-08-22 23:20:36 -07:00
Nathan Rajlich
8b72679885
README: document agent option
2013-08-22 22:16:51 -07:00
Nathan Rajlich
fe935edf97
socket: pass through the agent option to the Transport
2013-08-22 22:14:56 -07:00
Nathan Rajlich
43414294dd
use updated component/global API
2013-08-22 21:46:49 -07:00
Guillermo Rauch
05884f1344
Merge pull request #173 from jbowes/ie8-emitter
...
Update emitter dep to 1.0.1
2013-08-22 21:06:41 -07:00
Guillermo Rauch
af6d5d3663
Merge pull request #184 from repoify/add/repository
...
Add repository field to readme
2013-08-22 21:04:05 -07:00
Nathan Rajlich
7fb5612e27
test: add agent option tests for WebSocket and XMLHttpRequest backends
...
The `agent` option is only relevant for Node.js...
2013-08-22 18:00:02 -07:00
Nathan Rajlich
d2b87ba73a
package: add "scripts.test" field, for Travic-CI
2013-08-22 17:20:12 -07:00
Nathan Rajlich
2c1870a77d
transports: pass the options to the util.request() function
...
Probably not strictly necessary in this case...
In fact, I can't seem to find this `poller()` function being used anywhere
in the codebase in the first place! It only seems to be invoked in the tests...
2013-08-22 17:17:55 -07:00
Nathan Rajlich
3c1f28c6cc
polling-xhr: pass the agent option to the XMLHttpRequest constructor
2013-08-22 17:16:25 -07:00
Nathan Rajlich
a9846e549f
util: add jsdoc comment
2013-08-22 17:15:56 -07:00
Nathan Rajlich
a19e3ab1af
util: make the request() helper accept an "options" object
2013-08-22 17:15:02 -07:00
Nathan Rajlich
863610f50e
package: point "xmlhttprequest" to our LearnBoost fork
...
Which currently includes support for the `agent` option for passing a custom
`http.Agent`.
2013-08-22 17:06:39 -07:00
Nathan Rajlich
e27cba4472
package: specify a newer version of "ws" that includes agent support
2013-08-22 17:05:22 -07:00
Nathan Rajlich
62b647186d
websockets: pass the agent option to the WebSocket constructor
2013-08-22 17:04:00 -07:00
Nathan Rajlich
018d7cb301
transport: set the agent field, defaults to false
2013-08-22 14:33:19 -07:00
Nathan Rajlich
edc35fef94
.travis.yml: stop testing v0.6, start testing v0.10
2013-08-22 14:32:46 -07:00
Nathan Rajlich
164f71085c
use "component/has-cors"
2013-08-22 14:16:26 -07:00
Nathan Rajlich
3f957b844c
transport: fix whitespace
2013-08-22 13:38:21 -07:00
Nathan Rajlich
732180a082
util: use "component/global"
2013-08-22 13:37:54 -07:00
Nathan Rajlich
5ee23e8e41
use "component/global"
2013-08-22 12:01:28 -07:00
Nathan Rajlich
d0f7549d07
util: more bullet-proof global() function
...
Somebody could easily add a fake global `window` variable in node, and things
would have been thrown off before. With this logic, the *real* "global" is
always returned.
2013-08-22 11:24:08 -07:00
Eugeny Vlasenko
46f9203e58
updated example, engine version 0.6.3, usage component
2013-08-22 19:21:33 +07:00
Forbes Lindesay
57472b9978
add repository field to readme
2013-08-21 10:01:14 -07:00
Forbes Lindesay
074af621d1
add repository field to readme
2013-08-21 10:00:29 -07:00
Guillermo Rauch
6eed7c9444
Merge pull request #181 from kkoopa/depupdates
...
Updated dependencies to support Node 0.11
2013-08-16 14:25:38 -07:00
King Koopa
0dccdcb4a7
Another correction.
2013-08-16 22:52:05 +03:00
King Koopa
53f5087f6f
Correction.
2013-08-16 22:50:06 +03:00
King Koopa
e23562e5a2
Updated deps.
2013-08-16 22:18:34 +03:00
Guillermo Rauch
433aa787b3
Merge pull request #180 from yields/master
...
don't use __proto__
2013-08-14 14:26:54 -07:00
Amir Abu Shareb
797b874928
inline merge
2013-08-14 18:58:01 +03:00
Guillermo Rauch
7db80a70c3
Merge pull request #187 from mahnunchik/master
...
added support node version 0.10 to .travis.yml
2013-08-14 08:49:08 -07:00
Eugeny Vlasenko
f1a08f7a55
added support node version 0.10 to .travis.yml
2013-08-14 18:17:24 +07:00
Guillermo Rauch
2df65ff5ee
Merge pull request #186 from kkoopa/test_fix
...
Fixed tests. Closes #184 and #185
2013-08-13 21:01:52 -07:00
King Koopa
73794f375d
Fixed respond to flash policy request test. Closes #184
2013-08-11 16:20:09 +03:00
King Koopa
2699d153e9
Fixed upgrade with timeout test. Closes #185
2013-08-11 16:10:49 +03:00
Guillermo Rauch
c5f8aed3ce
Merge pull request #183 from jbowes/patch-1
...
Bump ws dep
2013-08-09 09:12:35 -07:00
James Bowes
55d43c59a3
Bump ws dep
...
ws 0.4.27 includes a number of fixes for node 0.10.x.
2013-08-09 09:13:55 -03:00
Guillermo Rauch
8b230a3985
Merge pull request #179 from jbowes/dont-lose-packets-after-close
...
Don't lose packets writen during upgrade after a re-open
2013-07-31 11:58:11 -07:00
James Bowes
604e4ce0cb
Don't lose packets writen during upgrade after a re-open
...
After a close, reset the prevBufferLen along with the buffers,
so a drain event after upgrade won't remove any packets that have been
queued up during upgrading.
2013-07-31 15:54:06 -03:00
Stash
0c70eabaf0
By util.defer(fn) I really mean setTimeout(fn,0)
2013-07-29 12:55:56 -07:00
Stash
cedca5699f
Emit errors thrown by xhr.send()
2013-07-29 12:31:34 -07:00
Nathan Rajlich
9edbe83d6d
socket: use a consistent "debug" name for socket.js
2013-07-25 16:16:45 -07:00
Amir Abu Shareb
4a52160119
typo
2013-07-03 15:51:46 +03:00
Amir Abu Shareb
a2fff6fcab
don't use __proto__, closes #170
2013-07-03 15:48:17 +03:00
James Bowes
f26d46f273
Update emitter dep to 1.0.1
...
Emitter 1.0.0 did not support legacy versions of IE. 1.0.1 does!
2013-07-02 08:38:01 -03:00
TJ Holowaychuk
b0a02583d6
fix pkg.json name
2013-06-27 08:55:16 -07:00
TJ Holowaychuk
df9d9c63dc
Release 1.0.1
2013-06-27 08:53:58 -07:00
Guillermo Rauch
ee3882404f
Release 0.6.3
2013-06-21 21:44:57 -07:00
Guillermo Rauch
608919d51f
package: bumped engine.io-client to 0.6.3
2013-06-21 21:44:32 -07:00
Guillermo Rauch
4b21bec6d7
Release 0.6.3
2013-06-21 21:44:17 -07:00
Guillermo Rauch
839498789c
Merge pull request #170 from nkzawa/patch-0
...
fix to check readyState
2013-06-21 21:39:36 -07:00
Naoyuki Kanezawa
d3d1375722
fix to check readyState
2013-06-22 13:24:29 +09:00
Guillermo Rauch
8d0c482d1e
Merge pull request #1 from sam-github/repository_in_package_json
...
Put git repository in package.json
2013-06-17 14:01:08 -07:00
Sam Roberts
31d95b8e0d
Put git repository in package.json
2013-06-17 12:38:25 -07:00
Guillermo Rauch
a962812072
Merge pull request #169 from Contra/patch-2
...
use http url in package.json
2013-06-15 19:57:38 -07:00
Eric Schoffstall
10176916ba
use http url
2013-06-15 19:11:30 -06:00
Guillermo Rauch
5d2377b26f
package: syntax
2013-06-15 17:42:55 -07:00
Guillermo Rauch
7a35178eff
Release 0.6.2
2013-06-15 16:39:56 -07:00
Guillermo Rauch
7d32f9c14c
Release 0.6.2
2013-06-15 16:38:24 -07:00
Guillermo Rauch
3536a45941
transports: improve polling orderly close ( fixes #164 )
2013-06-15 16:23:34 -07:00
Guillermo Rauch
76ae6d98e0
socket: ignore further transport communication upon onClose
2013-06-15 16:23:11 -07:00
Guillermo Rauch
51ac4b9879
socket: added missing socket#onerror support
2013-06-15 16:22:55 -07:00
Guillermo Rauch
d352ccdcda
Revert "socket: clear timer after sending one noop packet ( fixes #174 )"
...
This reverts commit 752dab4c16 .
2013-06-15 16:22:40 -07:00
Guillermo Rauch
d73668b8b1
socket: don't call socket#onclose if previous state was not open
2013-06-15 15:54:59 -07:00
Guillermo Rauch
96e8eb116d
socket: code style
2013-06-15 15:54:51 -07:00
Guillermo Rauch
f9c42795ea
transports: really fix iOS crash issue
2013-06-06 17:40:55 -07:00
Guillermo Rauch
1f3d7f6eb6
Revert "WebSocket setTimeout wrap when on iOS"
...
This reverts commit bc5ba93296 .
2013-06-06 17:28:04 -07:00
Guillermo Rauch
8687ea4520
Revert "websocket:Improve send method"
...
This reverts commit 60c61af68e .
2013-06-06 17:27:57 -07:00
Guillermo Rauch
24708de071
Makefile: extra precaution when building to avoid 0.6.0 build problem
2013-06-06 07:08:10 -07:00
Guillermo Rauch
5511071262
Release 0.6.1
2013-06-06 06:52:38 -07:00
Guillermo Rauch
32b04b64a0
Release 0.6.1
2013-06-06 06:52:16 -07:00
Guillermo Rauch
c81e859abb
package: bumped engine.io-client to 0.6.1
2013-06-06 06:51:49 -07:00
Guillermo Rauch
f3bf1856e3
engine.io: fixed build
2013-06-06 06:50:55 -07:00
Guillermo Rauch
482eb164f2
package: update engine.io test dep
2013-06-01 09:27:18 -07:00
Guillermo Rauch
831a2ddcbf
Release 0.6.0
2013-06-01 09:26:37 -07:00
Guillermo Rauch
ce3102d86a
Release 0.6.0
2013-05-31 07:25:57 -07:00
Guillermo Rauch
752dab4c16
socket: clear timer after sending one noop packet ( fixes #174 )
2013-05-31 07:22:08 -07:00
Guillermo Rauch
a7697c2f92
Merge pull request #172 from Raynos/master
...
Clear all timers on socket clos
2013-05-27 09:59:07 -07:00
Guillermo Rauch
b07f1151e2
Merge pull request #161 from jphire/master
...
fix/#156 add test for calling socket.close() in payload
2013-05-27 08:53:20 -07:00
Guillermo Rauch
97fb63be8e
Merge pull request #150 from jphire/fix/104_improve_ping_api
...
Fix/104 improve ping api
2013-05-25 09:23:28 -07:00
Guillermo Rauch
59d823d86e
engine.io: updated build
2013-05-25 09:18:35 -07:00
Guillermo Rauch
7c22710ffa
Merge pull request #154 from sweetieSong/fix/issue-168
...
fix issue/168
2013-05-25 09:15:28 -07:00
Raynos
cb578ad70e
clear timers in onClose
2013-05-20 23:37:15 -07:00
Raynos
316c84eef3
Clear all timers on socket close
2013-05-20 22:14:27 -07:00
Sweet Song
da88410d3d
Does not emit close on incorrect socket connection
2013-05-10 16:16:31 -04:00
Guillermo Rauch
a86505ee9f
Merge pull request #157 from goinstant/indexof
...
use indexof component for ie8 and below
2013-05-09 14:24:11 -07:00
Gavin Uhma
35c49c72e7
use indexof component for ie8 and below
2013-05-09 17:58:59 -03:00
Benjamin Arthur Lupton
6a11d09590
Removed 0.6 from travis, added 0.10
...
Also stringified the versions as they should be, as it is a yaml file so `0.10` becomes `0.1`, so for versions we should use strings - `"0.10"` stays `0.10`
2013-04-19 12:45:47 +10:00
Guillermo Rauch
af0a4576c3
Merge pull request #160 from mjgil/bug-159-fix
...
adding fix for when websocket is undefined
2013-04-06 09:22:28 -07:00
Guillermo Rauch
4e924b9a2d
Merge pull request #151 from brozie/master
...
Use xhr wherever possible instead of xdomainrequest
2013-04-05 08:56:15 -07:00
Róbert Oroszi
df01aeaef9
should handle xdomain, if we are in the browser
2013-04-05 15:28:03 +02:00
Róbert Oroszi
5f8d4f2f0b
hostname should be tested against host, + port strict equality
2013-04-05 15:23:03 +02:00
Janne Laukkanen
2e54dda152
use ping() in setPing()
2013-04-04 13:15:07 +03:00
Janne Laukkanen
0e12bcaf9b
improve ping api
2013-04-04 13:15:07 +03:00
Malcom Gilbert
365aaaa6cc
Merge remote branch 'upstream/master' into bug-159-fix
2013-04-03 15:56:46 -04:00
Guillermo Rauch
b5c982cc19
Merge pull request #148 from 3rd-Eden/better-node-xhr
...
Don't check against the window to detect node.js, wrap code in a try cat...
2013-03-27 07:16:36 -07:00
3rd-Eden
3c6eb2a177
Don't check against the window to detect node.js, wrap code in a try catch statement
...
and have it degrade gracefully.
Fixes #147
2013-03-26 21:41:00 +01:00
Malcom Gilbert
51ede1ec38
adding test for faulty websocket request
2013-03-24 18:21:55 -04:00
Guillermo Rauch
315935484a
Merge pull request #162 from mscdex/patch-1
...
Fix typos and use consistent capitalization
2013-03-23 20:21:14 -07:00
Brian White
6bd328e79e
Fix typos and use consistent capitalization
2013-03-23 23:56:54 -03:00
Guillermo Rauch
17df993e76
Merge branch 'master' of github.com:/LearnBoost/engine.io
2013-03-23 19:36:26 -07:00
Guillermo Rauch
db297a75c1
Merge pull request #157 from albertyfwu/bug136_tests
...
added tests for callbacks and buffering
2013-03-23 19:35:50 -07:00
Guillermo Rauch
ccb4b9cbbe
package: for travis
2013-03-23 19:24:05 -07:00
Guillermo Rauch
68780141ef
Merge pull request #145 from MatthewMueller/patch-1
...
I *think* this is a typo.
2013-03-23 19:14:53 -07:00
Matthew Mueller
07777168fb
I *think* this is a typo.
...
Right now, whenever I try upgrading to WS, I get:
Uncaught TypeError: Object #<Transport> has no method 'setInterval'
Did a quick search for WS.prototype.setInterval and I don't see it anywhere. Removing `this` makes the upgrade work correctly.
2013-03-23 19:07:28 -07:00
Malcom Gilbert
0280352f88
sending error on transport creation failure due to bad request
2013-03-22 17:08:37 -04:00
Janne Laukkanen
9bac4635ed
fix/156 add payload socket.close() test
2013-03-22 19:37:39 +02:00
Guillermo Rauch
64f6b244b6
Merge pull request #1189 from kaosdynamics/patch-1
...
Fix socket.io-client repository name
2013-03-19 16:35:17 -07:00
Guillermo Rauch
55a089d01c
Merge pull request #141 from albertyfwu/bug136
...
add support for callbacks with socket.send()
2013-03-19 09:57:07 -07:00
albertyfwu
63f29dab50
readme minor fix
2013-03-19 12:14:47 -04:00
albertyfwu
6dd979cc13
remove from tests
2013-03-19 12:12:32 -04:00
albertyfwu
17d2dc275c
only flush if writeBuffer is length 0
...
in onClose, cleanup writeBuffer, callbackBuffer
2013-03-19 12:11:55 -04:00
albertyfwu
237499cdfb
added test for client-side buffer cleanup
2013-03-19 12:09:40 -04:00
Guillermo Rauch
683690253c
Merge pull request #142 from rykov/master
...
Adding Version Badge to README
2013-03-18 14:41:11 -07:00
TJ Holowaychuk
64244adbf6
mit
2013-03-18 14:39:44 -07:00
Michael Rykov
6d0e9c05e5
Adding Version Badge to README
2013-03-18 14:37:46 -07:00
Guillermo Rauch
c19ce153f3
Merge pull request #158 from rykov/master
...
Add Version Badge to README
2013-03-18 14:36:54 -07:00
Michael Rykov
b6c477a29b
Add Version Badge to README
2013-03-18 14:33:50 -07:00
albertyfwu
a14a0bf676
added drain event
2013-03-18 13:24:14 -04:00
albertyfwu
4998d01503
fix flush and flushComplete events
2013-03-17 22:18:33 -04:00
albertyfwu
15912c22c4
changed flushComplete to flush
2013-03-17 22:18:16 -04:00
albertyfwu
3a499d1bac
added documentation for send and flush, flushComplete events
2013-03-17 21:03:27 -04:00
albertyfwu
671d2fe6dd
changed test to listen to flushComplete
2013-03-17 21:02:54 -04:00
albertyfwu
0062f4ae03
added flush event to Socket.flush
2013-03-17 20:56:10 -04:00
albertyfwu
6d51d73d14
more extensive tests for executing callbacks in order
2013-03-17 20:55:30 -04:00
albertyfwu
8c6a03d9ad
changed test to test callbacks in order
2013-03-17 13:38:57 -04:00
albertyfwu
28af6bd777
added tests for callbacks and buffering
2013-03-17 12:49:30 -04:00
albertyfwu
c12c1e29fa
fixed drain bug splicing with upgrading
2013-03-17 11:50:39 -04:00
albertyfwu
25d092ca98
changes
2013-03-17 02:17:24 -04:00
albertyfwu
c650d9ad55
added in delayed flushing/callbacks
2013-03-17 02:07:20 -04:00
albertyfwu
b4c3eb8a23
empty callbackBuffer
2013-03-17 01:56:08 -04:00
albertyfwu
f15760d38b
Merge branch 'bug136' of https://github.com/albertyfwu/engine.io-client into bug136
2013-03-17 01:52:48 -04:00
albertyfwu
d081750310
changed int to var
2013-03-17 01:52:27 -04:00
albertyfwu
994b569e86
add support for callbacks with socket.send()
2013-03-17 01:52:26 -04:00
albertyfwu
da6aa66bbe
changed int to var
2013-03-17 01:52:08 -04:00
Guillermo Rauch
a31122576c
Merge pull request #140 from albertyfwu/ws_drain_fix
...
Ws drain fix
2013-03-16 21:57:23 -07:00
albertyfwu
fdb95d579c
changes
2013-03-17 00:52:27 -04:00
albertyfwu
1f6ee883cf
changes
2013-03-17 00:49:50 -04:00
albertyfwu
f3710ff859
fixed websocket flush/drain loop
2013-03-17 00:45:25 -04:00
albertyfwu
d6ba4f83c4
Merge branch 'ws_drain_fix' of https://github.com/albertyfwu/engine.io-client into ws_drain_fix
2013-03-16 23:45:22 -04:00
albertyfwu
71ed033698
removed irrelevant code
2013-03-16 23:43:43 -04:00
albertyfwu
74094e179e
wrapped drain call, changed back to encodePacket, moved intervalCleanup to WS, ...
2013-03-16 23:43:42 -04:00
albertyfwu
aa5dec5831
added fake drain
2013-03-16 23:43:40 -04:00
albertyfwu
08740208ea
fix featurecheck
2013-03-16 23:43:39 -04:00
albertyfwu
e652ead78f
feature-check for bufferedAmount
2013-03-16 23:43:38 -04:00
albertyfwu
7d941af39b
make sure to stop interval if transport closes
2013-03-16 23:43:37 -04:00
albertyfwu
05a0647e52
add 'drain' emit to WS
2013-03-16 23:43:35 -04:00
albertyfwu
dab01cf4fb
removed irrelevant code
2013-03-16 23:35:42 -04:00
albertyfwu
d5fa387a94
wrapped drain call, changed back to encodePacket, moved intervalCleanup to WS, ...
2013-03-16 23:23:39 -04:00
albertyfwu
c16137a7e5
added fake drain
2013-03-16 23:09:53 -04:00
Guillermo Rauch
88071eeffb
test: moved jsonp tests into own file
2013-03-16 20:07:51 -07:00
albertyfwu
28766dba9e
fix featurecheck
2013-03-16 18:33:32 -04:00
albertyfwu
8ea4bb9b6b
feature-check for bufferedAmount
2013-03-16 18:31:58 -04:00
albertyfwu
519d1ce2aa
add support for callbacks with socket.send()
2013-03-16 17:41:57 -04:00
albertyfwu
bf13803a9e
make sure to stop interval if transport closes
2013-03-16 17:23:52 -04:00
albertyfwu
e358f0d0c7
add 'drain' emit to WS
2013-03-16 16:53:26 -04:00
Guillermo Rauch
97ea40622d
travis: end support for 0.6
2013-03-16 12:38:01 -07:00
Guillermo Rauch
26718d4475
Release 0.5.0
2013-03-16 12:34:52 -07:00
Guillermo Rauch
cbe8a2ef05
polling: implemented new protocol
2013-03-16 12:34:05 -07:00
Guillermo Rauch
fb3dff6ab6
polling: consider the possibility of an event changing readyState
2013-03-16 12:24:34 -07:00
Guillermo Rauch
1f87063750
polling: abort payload loop if close packet is found
2013-03-16 12:15:08 -07:00
Guillermo Rauch
de3a3bd93d
*: bump emitter to 1.0.0
2013-03-16 11:56:15 -07:00
Guillermo Rauch
b89e7cf80f
component: fix dep
2013-03-16 11:46:46 -07:00
Guillermo Rauch
2c68707515
Release 0.5.0
2013-03-16 11:44:22 -07:00
Guillermo Rauch
ba82df2db5
test: clean up query string test
2013-03-16 09:20:34 -07:00
Guillermo Rauch
f9f0c1227e
util: implemented simple qsParse
2013-03-16 09:19:48 -07:00
Guillermo Rauch
5baecf5cc6
socket: implement qs support for string
2013-03-16 09:19:34 -07:00
Guillermo Rauch
4cbaacb8af
package: bumped engine.io-parser for flow control support
2013-03-16 09:10:45 -07:00
Guillermo Rauch
f5cf2243ec
transports: implemented new parser
2013-03-16 09:10:32 -07:00
Guillermo Rauch
d318978e44
package: bumped engine.io-parser
2013-03-16 09:09:45 -07:00
Guillermo Rauch
96249f5e8d
Release 0.3.0
2013-03-16 09:08:08 -07:00
Guillermo Rauch
88094e54d2
parser: if callback returns false ignore rest of payload
2013-03-16 09:07:14 -07:00
Guillermo Rauch
8f3be371cc
test: fixed all broken tests
2013-03-16 09:07:02 -07:00
Guillermo Rauch
bdaff4ef2b
package: bumepd engine.io-parser
2013-03-16 09:02:01 -07:00
Guillermo Rauch
36fe397cc2
package: bumped engine.io-parser
2013-03-16 09:01:46 -07:00
Guillermo Rauch
1c7031719a
Release 0.2.1
2013-03-16 09:01:26 -07:00
Guillermo Rauch
60cb7aa4f9
Merge pull request #10 from albertyfwu/export_version
...
added protocol version to index.js
2013-03-16 09:00:26 -07:00
TJ Holowaychuk
fd7c2fa4a0
pin indexof
2013-03-15 20:12:19 -07:00
Kaos Dynamics
9ad1c2f3ac
Fix socket.io-client repository name
2013-03-15 00:10:21 +01:00
Guillermo Rauch
242d02dee5
Merge pull request #1188 from MatthewMueller/master
...
fix install for 1.0
2013-03-13 17:57:50 -07:00
Matthew Mueller
3bd5455b1a
Update package.json
2013-03-13 17:14:47 -07:00
Guillermo Rauch
cc7780920c
Merge pull request #130 from shtylman/coverage
...
use istanbul for code coverage
2013-03-13 10:00:10 -07:00
Guillermo Rauch
c8bc1d4984
Merge pull request #131 from shtylman/emitter
...
require 'emitter' versus 'emitter-component'
2013-03-13 09:57:33 -07:00
Roman Shtylman
6514cd9732
require 'emitter' versus 'emitter-component'
...
Use the github style dependency to just grab the emitter package from
github. Use the long form because short form is all sorts of broken with
npm.
2013-03-13 12:00:10 -04:00
Guillermo Rauch
82537a90cc
Merge pull request #155 from albertyfwu/bug89
...
fixed bug89 and added tests: writeBuffer not flushed until nextTick'
2013-03-12 17:18:02 -07:00
albertyfwu
300b096000
test writeBuffer isn't cleared onError, removed 'closing' check in .flush()
2013-03-12 20:16:46 -04:00
TJ Holowaychuk
c0d1ad75e3
Merge pull request #22 from rschmukler/indexof_fix
...
Add indexof dependency of package.json
2013-03-12 14:50:57 -07:00
Ryan Schmukler
a338b9c170
Add indexof dependency of package.json
2013-03-12 10:05:33 -07:00
Guillermo Rauch
8913da9224
Merge pull request #21 from nulltask/fix/ie
...
add support for legacy ie
2013-03-12 08:04:20 -07:00
Guillermo Rauch
5a2ee6c56a
Merge pull request #151 from jphire/master
...
#112 Figure out optimal testing strategy for JSONP
2013-03-12 07:41:10 -07:00
Guillermo Rauch
c72ba95567
Merge pull request #133 from asdfryan/eioversion
...
Issue 65 fix: Added eio query string
2013-03-12 06:56:51 -07:00
albertyfwu
89de5f5975
fixed bug89 and added tests: writeBuffer not flushed until nextTick'
2013-03-12 02:59:47 -04:00
Guillermo Rauch
e027e28686
Merge pull request #154 from ysaw/issue119
...
Added tests for query string
2013-03-11 08:43:09 -07:00
Yihui Saw
edfec30b77
Added tests for query string
2013-03-10 22:31:39 -04:00
Ryan Liu
39d34ea53f
capitalized eio, added a comment saying that the protocol is an int, not a string
2013-03-05 19:00:26 -05:00
Ryan Liu
99a4601dcf
added query.eio to take protocol version from parser. Also changed Socket.protocol to take that same protocol version
2013-03-05 18:09:41 -05:00
albertyfwu
52a5aef1e9
changed version to 0.2.0 in component.json
2013-03-05 18:02:17 -05:00
albertyfwu
a539c73ff6
changed version to 2
2013-03-05 17:44:41 -05:00
albertyfwu
ad91561a03
added comment for protocol version
2013-03-05 17:36:53 -05:00
albertyfwu
c5fc5c8dfd
added protocol version to index.js
2013-03-05 17:21:24 -05:00
Guillermo Rauch
deaa6725c2
Merge pull request #132 from asdfryan/master
...
Issue 83 fix: IE9/10 error
2013-03-05 14:06:21 -08:00
Ryan Liu
0435d1cf2a
issue 83 IE9/10: returned if this.xhr was undefined
2013-03-05 14:39:44 -05:00
nulltask
8f55f63ff5
add support for legacy ie
2013-03-03 15:25:04 +09:00
Roman Shtylman
0389b0c0eb
use istanbul for code coverage
...
* Requires no instrumentation
* add `make test-cov` to generate coverage reports
2013-02-28 11:43:51 -05:00
TJ Holowaychuk
caf91cfc02
Merge pull request #20 from MatthewMueller/patch-2
...
change name back for now
2013-02-27 17:11:00 -08:00
Matthew Mueller
37269d96e5
change name back for now
...
based on what we discussed, you can just as easily use this in npm with:
{ "emitter" : "component/emitter" }
though it's slightly more obscure.
2013-02-27 14:06:38 -08:00
Janne Laukkanen
ee3f0cbeed
added style fix for #112
2013-02-27 10:58:35 +02:00
TJ Holowaychuk
2a787907b0
history
2013-02-26 14:39:57 -08:00
TJ Holowaychuk
45d757adca
typo
2013-02-26 14:39:23 -08:00
TJ Holowaychuk
9c5379b4d1
Release 1.0.0
2013-02-26 14:38:36 -08:00
TJ Holowaychuk
fac5f45e30
add .off() support. Closes #19
...
thought we had this already :D
2013-02-26 14:38:16 -08:00
Guillermo Rauch
5cdcb47863
Merge branch 'master' of github.com:/LearnBoost/engine.io-client
...
Conflicts:
component.json
2013-02-26 11:14:27 -08:00
Guillermo Rauch
bb9751f60c
*: bumped engine.io-parser
2013-02-26 11:14:02 -08:00
Guillermo Rauch
89580e9c93
component: bump version
2013-02-26 11:12:28 -08:00
Guillermo Rauch
0ea79c9e11
Release 0.2.0
2013-02-26 11:11:47 -08:00
Guillermo Rauch
df4fc2d7ff
Merge pull request #127 from albertyfwu/bug125
...
Bug125
2013-02-26 11:10:22 -08:00
Guillermo Rauch
be5d105d4b
Merge pull request #9 from albertyfwu/bug125
...
changed callback function to return packet, index, total; updated tests ...
2013-02-26 11:09:50 -08:00
albertyfwu
677d58bcf6
added one more test to parser.js
2013-02-26 14:07:11 -05:00
albertyfwu
ddb500a4b2
changed protocol to return on error but not terminate early on correct packets
2013-02-26 01:47:24 -05:00
albertyfwu
05870d993b
added tests for integration of new engine.io-protocol; reverted component.json and engine.io.js to previous builds
2013-02-26 01:46:26 -05:00
albertyfwu
6da1bee9e4
changed callback function to return packet, index, total; updated tests correspondingly
2013-02-24 22:18:41 -05:00
albertyfwu
1c54df627b
changed callback function to have arguments of packet, index, total instead of packet, isDone
2013-02-24 22:18:07 -05:00
albertyfwu
4801248297
updated engine.io-client to work with new payload structure
2013-02-24 21:16:39 -05:00
Janne Laukkanen
17e3e52582
added tests for JSONP transport and a --globals flag in Makefile
2013-02-25 01:48:58 +02:00
Guillermo Rauch
7f33b5d404
Merge pull request #124 from albertyfwu/parser_version_fix
...
changed engine.io-protocol version to 0.1.1
2013-02-22 15:11:40 -08:00
albertyfwu
ff2ad5a406
changed engine.io-protocol version to 0.1.1
2013-02-22 18:08:58 -05:00
Guillermo Rauch
7cc56a51a8
package: bumped engine.io
2013-02-22 10:55:26 -08:00
Guillermo Rauch
6afdd8ce14
Added travis badge
2013-02-22 09:02:39 -08:00
Guillermo Rauch
3482f08690
Merge pull request #8 from sweetieSong/add/decodePayload-Callback
...
Add/decode payload callback
2013-02-22 09:01:35 -08:00
Sweet Song
fc6a6b3f4d
parse.js: Added isLast statements to decPayload tests
2013-02-22 11:55:58 -05:00
Sweet Song
8f0b43d400
index.js: Added return so as to not continue after encountering an error
...
parser.js: Added test case and corrected types of
2013-02-22 11:29:34 -05:00
Guillermo Rauch
8655c6eff3
Merge pull request #122 from albertyfwu/bug86
...
actually fixed bug86 this time (modified sources instead of engine.io.js...
2013-02-22 08:15:31 -08:00
albertyfwu
c749d4361a
actually fixed bug86 this time (modified sources instead of engine.io.js)
2013-02-22 11:09:31 -05:00
Sweet Song
b21493325a
index.js: replaced return [err] with callback
...
parser.js: replaced error return expects
2013-02-22 10:58:07 -05:00
Sweet Song
dc063040d2
index.js: Only return on error
...
parser.js: removed assertions to arrays
remove NOTE
2013-02-18 23:08:52 -05:00
Guillermo Rauch
9315fd4716
Merge pull request #115 from shtylman/patch-2
...
remove browserbuild dependency
2013-02-18 15:35:49 -08:00
Guillermo Rauch
c09a42886f
Merge pull request #116 from shtylman/patch-3
...
Update to debug 0.7.2
2013-02-18 15:35:43 -08:00
Guillermo Rauch
7143eef4c7
Merge pull request #117 from shtylman/patch-4
...
Update to ws 0.4.25
2013-02-18 15:35:32 -08:00
Roman Shtylman
50a83ac306
Update to ws 0.4.25
...
This has a 'browser' field which makes it packageable using browserify
and similar tools which read require statements.
2013-02-18 17:16:28 -05:00
Roman Shtylman
47a66fc334
Update to debug 0.7.2
...
This has a browserify field which makes it packageable using similar tools.
2013-02-18 17:14:49 -05:00
Roman Shtylman
98d4b5729c
remove browserbuild dependency
...
No longer used.
2013-02-18 17:13:31 -05:00
Sweet Song
560e8cc0e6
index.js: Added initial version of callback
...
test.js: Added in callback function
NOTE: there might be a bug in the index decodePayload function, I will continue to look into it
2013-02-16 14:34:37 -05:00
Guillermo Rauch
5260fe37f2
Merge pull request #111 from ysaw/bug108
...
Added onerror handler for script tag in jsonp transport
2013-02-16 08:33:27 -08:00
Guillermo Rauch
d66c2bee18
Merge pull request #113 from pyhrus/readme_flash_files_location
...
Added the URL where the flash files can be found in README.md
2013-02-16 08:31:46 -08:00
Guillermo Rauch
118b161c6e
Merge pull request #112 from asdfryan/bug86
...
fix for issue 86: try catch for iframe removal
2013-02-16 08:31:17 -08:00
Shankar Karuppiah
fbb34de1c0
Added the URL where the flash files can be found in README.md
2013-02-16 14:31:57 +02:00
Ryan Liu
4bbeb4b091
double quotes to single quotes
2013-02-15 22:18:04 -05:00
Ryan Liu
a3f447377f
Merge branch 'master' of https://github.com/LearnBoost/engine.io-client into bug86
2013-02-15 22:16:04 -05:00
Ryan Liu
b68f80f966
ted made me get rid of white space
2013-02-15 22:09:08 -05:00
Ryan Liu
41aea326b1
fixed JSONPPolling iframe removal error, issue #86
2013-02-15 22:06:12 -05:00
Yihui Saw
4680c20859
changed error message to match xhr error message on jsonp transport script tag
2013-02-15 21:45:04 -05:00
Yihui Saw
3432e0aab3
Added onerror handler for script tag in jsonp transport
2013-02-15 20:51:37 -05:00
Guillermo Rauch
956705af1f
Merge pull request #110 from mjgil/bug-fix-#107
...
remove uid qs
2013-02-15 16:35:42 -08:00
Malcom Gilbert
04b3da0944
remove uid qs
2013-02-15 19:32:29 -05:00
Guillermo Rauch
cdca3b6a57
lib: removed editor file
...
cc @sweetieSong
2013-02-14 13:01:50 -08:00
Guillermo Rauch
702254fdf3
Added missing colon in payload. Thanks @lsm
2013-02-10 08:22:55 -08:00
Guillermo Rauch
0450cc42cd
Release 0.4.3
2013-02-08 12:11:07 -08:00
Guillermo Rauch
ce28c9300f
package: bumped engine.io-client to 0.4.3
2013-02-08 12:10:48 -08:00
Guillermo Rauch
119182eefd
Release 0.4.3
2013-02-08 12:10:18 -08:00
Guillermo Rauch
903f63d46d
package: removed unusued parser.js
2013-02-08 12:09:51 -08:00
Guillermo Rauch
81e599b344
Release 0.4.2
2013-02-08 11:12:15 -08:00
Guillermo Rauch
639276600b
Release 0.4.2
2013-02-08 10:53:05 -08:00
Guillermo Rauch
1059147fa3
Merge pull request #141 from pokermania/to_learnboost_20130130
...
close socket if upgrade is received and socket.readyState != open
2013-02-08 08:17:08 -08:00
Guillermo Rauch
59281c0e56
Merge pull request #145 from st3redstripe/spelling
...
Fix spelling errors
2013-02-08 07:53:37 -08:00
stephen-bradshaw
f2bc5190b4
fix spelling errors
2013-02-08 09:27:52 +00:00
Guillermo Rauch
8b655dd5f7
polling-jsonp: fix ie6 JSONP on SSL
2013-02-01 09:35:57 -08:00
Guillermo Rauch
1d7157622e
Merge pull request #144 from shtylman/fix-multiple-paths
...
Only end upgrade socket connections if unhandled
2013-01-31 19:44:14 -08:00
Roman Shtylman
fd36eeaf02
Only end upgrade socket connections if unhandled
...
This fixes an issue where multiple engine.io instances (on different
paths) would result in the closing of websocket connections for all of
the instances. This happened because each engine.io instance would
register an `upgrade` handler on the server. This handler would check
for a matching path and otherwise call `socket.end()` Since multiple
upgrade events would be triggered with different paths, the peer
handlers would close each other.
This patch resolves this behavior in the following way:
- When an instance upgrade handler encounters a path which it does not
recognize it creates a timeout for `destroyUpgradeTimeout`.
- At the end of the timeout, the socket is checked for writable state
and bytes written. If there has been not activity and the socket is
writable, then it will be ended.
This allows for peer socket handlers to keep the socket alive by sending
some data over it. This also mimics the core node behavior of closing
sockets on upgrade when no handler is specified. We consider not
handling an upgrade request similar to no handler. However, we cannot
immediately end the socket for the reasons noted above.
fixes #143
2013-01-31 22:42:11 -05:00
Guillermo Rauch
150d2bfb0c
Merge pull request #142 from shtylman/fix-package-deps
...
fix websocket dependency
2013-01-30 15:02:18 -08:00
Roman Shtylman
ee475f10f2
fix websocket dependency
...
listing the dependency in dev dependencies clobbers the actual
dependency
2013-01-30 17:25:56 -05:00
Guillermo Rauch
116a9346e2
Merge pull request #95 from pokermania/to_learnboost_20130130
...
close also if socket.readyState is on "opening"
2013-01-30 08:15:31 -08:00
Andor Goetzendorff
c4528ecbe7
close also if socket.readyState is on "opening"
2013-01-30 16:59:22 +01:00
Andor Goetzendorff
4ef40991be
close socket if upgrade is received and socket.readyState != open
2013-01-30 16:57:44 +01:00
Guillermo Rauch
e2036989b0
Merge pull request #94 from timmak/master
...
Updated component to 4.1
2013-01-29 14:26:13 -08:00
timmak
30a1554a14
Update component.json
2013-01-29 22:05:17 +00:00
timmak
2bf232faae
Update component.json
2013-01-29 22:01:53 +00:00
timmak
610184a3af
Update component.json
2013-01-29 21:53:47 +00:00
Guillermo Rauch
8715eb7e6e
Merge pull request #93 from sweetieSong/add/engine.io-parser
...
Integrated the enine.io-parser
2013-01-28 15:08:14 -08:00
Sweet Song
5929dcdea9
parser.js: removed the file
...
package.json: added the engine.io-parser dependency
everything else: switched to engine.io-parser
2013-01-28 11:40:15 -05:00
Guillermo Rauch
0d5200ed69
Readme: fix
2013-01-28 07:53:30 -08:00
Guillermo Rauch
abf798e2bb
Readme: note
2013-01-28 07:51:55 -08:00
Guillermo Rauch
2102eb4bb3
Readme: added listen to examples
2013-01-28 07:51:14 -08:00
Guillermo Rauch
0d718b4a9c
Release 0.4.1
2013-01-27 10:25:47 -08:00
Guillermo Rauch
86c0b9e186
package: buped engine.io-parser
2013-01-26 09:00:49 -08:00
Guillermo Rauch
9d3b235743
Release 0.1.1
2013-01-26 08:59:14 -08:00
Guillermo Rauch
03c8c353c4
Merge pull request #137 from sweetieSong/ExtractParser
...
Extract parser
2013-01-26 08:57:00 -08:00
Guillermo Rauch
27ca5b38fc
Merge pull request #91 from ramitos/patch-1
...
fix "TypeError: Object #<Object> has no method 'global'"
2013-01-21 09:32:10 -08:00
Sérgio Ramos
5f8356a567
fix "TypeError: Object #<Object> has no method 'global'"
2013-01-21 14:26:49 +00:00
Guillermo Rauch
4b3b526578
Merge pull request #6 from ss2249/SetUp
...
index.js: Added in
2013-01-19 14:54:41 -08:00
Sweet
6f890ab8a0
removed the lib-cov
2013-01-19 14:49:00 -08:00
Sweet
b69264dad9
Removed the lib/index in all the files
2013-01-19 14:27:17 -08:00
Sweet
fe36cae750
index.js: Added in
...
package.json: added the repo
2013-01-19 14:24:10 -08:00
Sweet
82ef6b416c
Adding .tracis.yml for first build
2013-01-19 13:25:18 -08:00
Sweet
90c0cd0e3f
parser.js: deleted
...
package.json: updated the version for the client
everything else: fixed paths/requirements to the new protocol/parser repo
2013-01-19 13:14:00 -08:00
Sweet
dd5a4cb939
Merge branch 'master' of github.com:LearnBoost/engine.io into ExstractParser
...
Conflicts:
package.json
2013-01-19 12:37:37 -08:00
Guillermo Rauch
57e29ef53b
Merge pull request #90 from ruxkor/to_learnboost_20130117
...
client now ignores unsupported upgrades
2013-01-19 12:32:58 -08:00
Sweet
face92f018
paerse.js: modified parser to be used with the parser repo
...
package.json: updated with the correct parser dependency
common.js: changed the parser path
server.js: also changed the parser path
2013-01-19 12:25:31 -08:00
Guillermo Rauch
bd0940ad8b
Release 0.1.0
2013-01-19 11:48:27 -08:00
Guillermo Rauch
851890c07c
Merge pull request #136 from xixixao/master
...
package:add git repo url
2013-01-19 11:20:58 -08:00
Michal Srb
782bf6505a
package:add git repo url
2013-01-19 18:57:25 +00:00
Michal Srb
ac120a16ed
Merge remote-tracking branch 'upstream/master'
2013-01-19 18:40:44 +00:00
Michal Srb
6c479b36e5
Merge remote-tracking branch 'origin/master'
2013-01-19 18:40:13 +00:00
Guillermo Rauch
1c68636575
Merge pull request #134 from xixixao/master
...
WebSocket setTimeout wrap when on iOS
2013-01-19 10:36:13 -08:00
Guillermo Rauch
9011a0e0d4
Merge pull request #135 from xixixao/fix/119
...
Fixed should trigger ping timeout test
2013-01-19 10:26:37 -08:00
Guillermo Rauch
9092b2419e
Merge pull request #5 from ss2249/SetUp
...
Set up
2013-01-19 10:25:24 -08:00
Sweet
fa8c737233
.gitignore: Added the node_module directory
...
component.json: Changed the version number, removed dependencies, and added the keys.js
package.json: Added the keys.js in script
2013-01-19 10:21:25 -08:00
Michal Srb
86366e86a5
Fixed should trigger ping timeout test
2013-01-19 18:20:25 +00:00
Michal Srb
60c61af68e
websocket:Improve send method
2013-01-19 18:15:32 +00:00
Sweet
bf63fe6224
changes to package.json for version
2013-01-19 09:57:07 -08:00
Michal Srb
ef6d89b3d5
Fixed should trigger ping timeout test
2013-01-19 17:45:13 +00:00
Michal Srb
bc5ba93296
WebSocket setTimeout wrap when on iOS
2013-01-19 04:26:03 +00:00
Sweet
03f32eaceb
adding travis
2013-01-18 18:37:37 -08:00
Sweet
8bb00c8edf
testing up basic parser
2013-01-18 17:35:40 -08:00
Guillermo Rauch
0b9d9c4efa
Merge pull request #133 from xixixao/master
...
Bump up version in package
2013-01-18 15:53:09 -08:00
Michal Srb
8f0f586934
package: bumped versions
2013-01-18 23:48:06 +00:00
Guillermo Rauch
0722fee9d1
Release 0.4.1
2013-01-18 15:41:43 -08:00
Guillermo Rauch
7ac254d6f3
Initial commit
2013-01-18 15:18:25 -08:00
Andor Goetzendorff
05c4bf02fe
client now ignores unsupported upgrades
2013-01-17 17:35:18 +01:00
Guillermo Rauch
a103bd5e19
Merge pull request #132 from roamm/send_packet_callback
...
Fixed bugs in the previous send callback fix and added new test cases
2013-01-16 10:38:33 -08:00
roam
148f654c92
Fixed bugs in previous send callback fix and updated test cases
2013-01-16 17:31:42 +08:00
roam
72861f3d49
Added a test case which makes the code before the send callback fix fail
2013-01-16 15:13:50 +08:00
roam
06b39687eb
Fixed send callback test failures
2013-01-16 14:35:56 +08:00
roam
41ee77e3c6
Revert "Revert "Fixed packet send callback design issue""
...
This reverts commit ead08d6e5b .
2013-01-15 17:17:47 +08:00
TJ Holowaychuk
57ccc30408
add node aliases
2013-01-08 13:11:15 -08:00
Guillermo Rauch
d2196bfbc8
Merge pull request #89 from Raynos/xhr
...
Do not shadow global XMLHttpRequest
2013-01-07 09:13:49 -08:00
Raynos
eb4d91bde9
Do not shadow global XMLHttpRequest
...
If you use the XMLHttpRequest variable name then the if
typeof XMLHttpRequest === 'undefined' check will always
return false and the XHR polling method is never used.
This is needed because JSONP polling is buggy and doesn't emit
close when server shutsdown. JSONP should be fixed / disabled.
2013-01-06 17:03:52 -08:00
Guillermo Rauch
ead08d6e5b
Revert "Fixed packet send callback design issue"
...
This reverts commit 0dfa68c710 .
2012-12-26 17:19:41 -03:00
Guillermo Rauch
3c968fcb55
Merge pull request #130 from roamm/packet_send_callback
...
Fixed packet send callback issues
2012-12-26 12:15:06 -08:00
Guillermo Rauch
cef1583a64
test: middleware tests
2012-12-24 19:50:49 -03:00
Guillermo Rauch
5f843feb90
namespace: make sure not to fire connection if underlying client closed after next is called from a middleware
2012-12-24 19:50:25 -03:00
Guillermo Rauch
01a06b2b62
Makefile: change slow param
2012-12-24 19:50:13 -03:00
Guillermo Rauch
46d069b3cc
test: added room tracking test
2012-12-24 15:07:23 -03:00
Guillermo Rauch
708af3f803
README: renamed joined to rooms
2012-12-24 15:07:13 -03:00
Guillermo Rauch
0881dfbdce
socket: rename joined to rooms
2012-12-24 15:07:04 -03:00
Guillermo Rauch
c54011b6a1
Readme: document Namespace#connected
2012-12-23 23:25:17 -03:00
Guillermo Rauch
f605b365b4
test: added broadcasting / namespace emit tests
2012-12-23 23:24:35 -03:00
Guillermo Rauch
1ec766799f
test: fix helper to take options
2012-12-23 23:24:19 -03:00
Guillermo Rauch
67f7d5749b
adapter: initial memory impl
2012-12-23 23:23:05 -03:00
Guillermo Rauch
95d8e7531c
socket: keep track of socket in connected hash
2012-12-23 23:21:50 -03:00
Guillermo Rauch
2e71357221
socket: added leaveAll
2012-12-23 23:21:37 -03:00
Guillermo Rauch
ef96e3b07f
socket: added leave
2012-12-23 23:21:18 -03:00
Guillermo Rauch
6046c385b9
socket: added join
2012-12-23 23:21:07 -03:00
Guillermo Rauch
e8d11924aa
socket: added in
2012-12-23 23:20:58 -03:00
Guillermo Rauch
eb0213882f
socket: fix emit
2012-12-23 23:20:46 -03:00
Guillermo Rauch
de8e746959
socket: rooms and flags are now hashes
2012-12-23 23:20:26 -03:00
Guillermo Rauch
dc173330e5
socket: fix flags
2012-12-23 23:20:13 -03:00
Guillermo Rauch
d65635d212
socket: rename rooms to joined
2012-12-23 23:20:03 -03:00
Guillermo Rauch
dd0fd539e6
namespace: fix emit
2012-12-23 23:19:05 -03:00
Guillermo Rauch
5d4f90de47
namespace: make in able to track multiple rooms
2012-12-23 23:18:48 -03:00
Guillermo Rauch
59c8c34ceb
namespace: fix flags
2012-12-23 23:18:38 -03:00
Guillermo Rauch
bcfec6df76
namespace: added connected hash
2012-12-23 23:18:26 -03:00
Guillermo Rauch
dbba592dfa
namespace: implement own flags
2012-12-23 23:18:14 -03:00
Guillermo Rauch
d411dec5a4
index: rename adaptor to adapter
2012-12-23 23:18:01 -03:00
Guillermo Rauch
ab5a226f3e
README: rename Adaptor to Adapter
2012-12-23 23:17:48 -03:00
roam
0dfa68c710
Fixed packet send callback design issue
...
There were two issues here.
1. When Socket.send called with or without callback alternately,
the trigger order is incorrect.
2. The 'drain' event from transport is one per packet for transports
supporting framing like websocket and is all in one for those without
framing like polling.
2012-12-20 00:49:32 +08:00
Guillermo Rauch
a92e8349f0
Release 1.0.3
2012-12-19 00:29:19 -03:00
Guillermo Rauch
fb857bd8b4
index: added Server#adaptor
2012-12-18 18:09:41 -03:00
Guillermo Rauch
2e5fdb65bd
README: improved getters/setters docs and added Adaptor section
2012-12-18 18:07:30 -03:00
Guillermo Rauch
b4f12ea2f9
README: document Socket#rooms
2012-12-18 18:02:28 -03:00
Guillermo Rauch
902373196e
socket: added broadcast flag
2012-12-18 17:28:14 -03:00
Guillermo Rauch
ae516a3f06
test: added args + callback events tests
2012-12-18 17:27:22 -03:00
Guillermo Rauch
ecf937c775
test: style
2012-12-18 17:27:09 -03:00
Guillermo Rauch
d1def44858
test: added event ack tests
2012-12-18 17:23:53 -03:00
Guillermo Rauch
381bc4260a
socket: forgot this js oddity that you can access objects with strings or numbers
2012-12-18 17:20:20 -03:00
Guillermo Rauch
8a5cb03fcb
socket: fix Socket#ack
2012-12-18 17:20:01 -03:00
Guillermo Rauch
22c91d8e49
socket: allow for falsy packet.id
2012-12-18 17:19:36 -03:00
Guillermo Rauch
344323a314
index: make sure decoded id is a Number
2012-12-18 17:16:05 -03:00
Guillermo Rauch
53dae5c6fc
index: added instrumentation through debug
2012-12-18 17:09:33 -03:00
Guillermo Rauch
bd37a9a34b
socket: protect against __proto__ deletion
2012-12-18 17:00:44 -03:00
Guillermo Rauch
f19131bfb0
Release 1.0.2
2012-12-18 16:31:38 -03:00
Guillermo Rauch
2fa98fb61a
package: bumped socket.io-parser
2012-12-18 15:50:14 -03:00
Guillermo Rauch
da048ee1bd
index: allow for falsy values in id and data
2012-12-18 15:44:23 -03:00
Guillermo Rauch
6b3cdd7c9c
test: added test for event emitting with send
2012-12-18 15:25:56 -03:00
Guillermo Rauch
3038ce5526
test: added event emitting test
2012-12-18 15:24:24 -03:00
Guillermo Rauch
a0020bcb2c
socket: fix event packet
2012-12-18 15:22:16 -03:00
Guillermo Rauch
c929f8c7fb
test: added socket event reception test
2012-12-18 15:18:26 -03:00
Guillermo Rauch
1d8a747773
test: added socket#send test
2012-12-18 15:15:42 -03:00
Guillermo Rauch
56ed3fbe75
socket: fixed packet handling
2012-12-18 15:15:12 -03:00
Guillermo Rauch
169046e026
test: added disconncet(true) test
2012-12-18 14:58:09 -03:00
Guillermo Rauch
56221bc093
socket: attempt to send disconnect packets prior to closing the transport
...
this will prevent reconnection from triggering
2012-12-18 14:57:37 -03:00
Guillermo Rauch
5da04cd1a9
socket: fixed EventEmitter inheritance
2012-12-18 14:57:23 -03:00
Guillermo Rauch
342845d5c2
socket: added missing acks initialization
2012-12-18 14:56:58 -03:00
Guillermo Rauch
97b63b0860
namespace: blacklist newListener event
2012-12-18 14:56:44 -03:00
Guillermo Rauch
12d1dca7ca
socket: added more blacklisted events
2012-12-18 14:56:24 -03:00
Guillermo Rauch
3a259d420c
namespace: improve middleware logic
2012-12-18 14:55:58 -03:00
Guillermo Rauch
19837a0f86
client: added disconnect method
2012-12-18 14:55:42 -03:00
Guillermo Rauch
3feb98a346
client: removed extra line
2012-12-17 15:26:04 -03:00
Guillermo Rauch
a8ea0f4fb0
socket: added Emitter mixin
2012-12-17 14:36:24 -03:00
Guillermo Rauch
1609eaa4e5
index: added second parameter to of optional
2012-12-17 14:25:55 -03:00
Guillermo Rauch
e724e7bdf6
test: added test for of second parameter
2012-12-17 14:25:40 -03:00
Guillermo Rauch
06e7df4eb2
test: added multiplexing tests
2012-12-17 12:45:26 -03:00
Guillermo Rauch
28a19bfb43
test: added second parameter to helper to aid w testing namespaces
2012-12-17 12:45:13 -03:00
Guillermo Rauch
deefa7bbb9
client: style
2012-12-17 09:58:34 -03:00
Guillermo Rauch
9d9fe9e2e2
socket: emit data event (synonym with message)
2012-12-17 09:57:54 -03:00
Guillermo Rauch
bfd019c2f3
Readme: described Socket and Client classes
2012-12-17 09:36:11 -03:00
Guillermo Rauch
755cead37c
Readme: document namespace events
2012-12-17 09:01:45 -03:00
Guillermo Rauch
01e73669f9
test: added connect namespace event test
2012-12-17 09:00:17 -03:00
Guillermo Rauch
5022b06242
Readme: added build status
2012-12-17 08:52:00 -03:00
Guillermo Rauch
95ded5d885
engine.io: style
2012-12-17 08:45:14 -03:00
Guillermo Rauch
3afe5e3032
test: added basic namespace tests
2012-12-17 08:43:03 -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
c67d2d5494
namespace: instrument add
2012-12-17 08:29:43 -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
3063241eba
test: fixed test for engine.io attachment
2012-12-17 01:09:50 -03:00
Guillermo Rauch
3b65a9f011
index: feel static server attachment order
2012-12-17 00:46:54 -03:00
Guillermo Rauch
f1e2af3d91
test: added client creation helper
2012-12-17 00:18:39 -03:00
Guillermo Rauch
2e07479ef0
socket: added data event (as synonym to message)
2012-12-17 00:10:24 -03:00
Guillermo Rauch
70ce641d85
namespace: fix run call
2012-12-16 23:50:46 -03:00
Guillermo Rauch
c87a530b08
index: remove client event
2012-12-16 23:50:39 -03:00
Guillermo Rauch
12f1821f1c
socket: added Socket#write
2012-12-16 23:35:42 -03:00
Guillermo Rauch
fc65ed630a
index: override path with /socket.io
2012-12-16 21:36:04 -03:00
Guillermo Rauch
e81902e4cc
README: deprecate options for uri
2012-12-16 21:18:09 -03:00
Guillermo Rauch
ab70697913
socket: remove resource and fix path
2012-12-16 20:52:01 -03:00
Guillermo Rauch
a7d4d192d6
socket: fixed access to opts
2012-12-16 20:51:53 -03:00
Guillermo Rauch
aea76ad045
test: fixed transports tests
2012-12-16 20:49:44 -03:00
Guillermo Rauch
01e06d7a4f
engine.io: cleanup
2012-12-16 20:35:54 -03:00
Guillermo Rauch
00a5640a12
socket: constructor can accept uri/opts simultaneously
2012-12-16 20:34:18 -03:00
Guillermo Rauch
c59bb42e85
engine.io: deprecated resource
2012-12-16 20:25:08 -03:00
Guillermo Rauch
0660b5ce27
SPEC: simplified: removed resource from SPEC
2012-12-16 20:24:39 -03:00
Guillermo Rauch
3b032f74ec
socket: proper host/hostname support
2012-12-16 20:03:23 -03:00
Guillermo Rauch
1ba966b865
socket: ensure onclose idempotency
2012-12-16 19:55:37 -03:00
Guillermo Rauch
0514526653
socket: added onerror instrumentation
2012-12-16 19:55:24 -03:00
Guillermo Rauch
55076c3f56
socket: fix style
2012-12-16 19:52:33 -03:00
Guillermo Rauch
98c4bb6955
test: fixed style
2012-12-16 19:13:02 -03:00
Guillermo Rauch
6d0b1a5117
test: basic namespaces tests
2012-12-16 19:12:03 -03:00
Guillermo Rauch
cb806c0d4e
test: attachment and client serving tests
2012-12-16 18:58:17 -03:00
Guillermo Rauch
eb029808f5
Readme: muuuch nice readme <3
2012-12-16 18:58:00 -03:00
Guillermo Rauch
2615aa45e7
index: add warning about passing a function to attach
2012-12-16 18:53:46 -03:00
Guillermo Rauch
f6370c1635
index: removed middleware attachment possibility
2012-12-16 18:50:42 -03:00
Guillermo Rauch
73c772d0b3
Revert "engine.io: added middleware attachment possibility (eg: for express)"
...
This reverts commit 7b3243dbea .
2012-12-16 18:49:06 -03:00
Guillermo Rauch
4ecbf2a46e
index: fix event listener override
2012-12-16 18:37:57 -03:00
Guillermo Rauch
c3d5024496
index: fix port binding
2012-12-16 18:37:46 -03:00
Guillermo Rauch
9c2224cca0
index: api cleanup
2012-12-14 10:07:07 -03:00
Guillermo Rauch
c695065c7a
dox
2012-12-14 10:06:52 -03:00
Guillermo Rauch
44da490467
index: renamed client to static for clarity
2012-12-14 09:27:55 -03:00
Guillermo Rauch
8901efd085
package: added supertest
2012-12-14 09:18:44 -03:00
Guillermo Rauch
1e68a83bd3
index: fix send implementation
2012-12-14 09:18:34 -03:00
Guillermo Rauch
4ea334899f
package: added client dep and superagent
2012-12-13 16:39:10 -03:00
Guillermo Rauch
5f397464a9
client: added static files
2012-12-13 16:38:58 -03:00
Guillermo Rauch
373c66f1ee
index: added client serving with send
2012-12-13 16:38:23 -03:00
Guillermo Rauch
be99036ebc
package: bumped versions
2012-12-13 12:30:41 -03:00
Guillermo Rauch
c10a9ae6a0
test: adapted version checking for 0.4
2012-12-13 12:30:26 -03:00
Guillermo Rauch
7b3243dbea
engine.io: added middleware attachment possibility (eg: for express)
2012-12-13 12:29:37 -03:00
Guillermo Rauch
bec38c2ce1
index: move this to engine.io
2012-12-13 12:20:56 -03:00
Guillermo Rauch
b6a4899689
initial 1.0 commit
2012-12-13 12:14:54 -03:00
Guillermo Rauch
3af1ad982c
Merge branch 'master' of github.com:LearnBoost/socket.io
2012-12-13 10:54:19 -03:00
Guillermo Rauch
8daa71302d
Merge tag '0.9.12'
...
Release 0.9.12
Conflicts:
package.json
2012-12-13 08:48:05 -03:00
Guillermo Rauch
b2a8ed1421
Release 0.9.12
2012-12-13 08:19:16 -03:00
Guillermo Rauch
0d3313f536
manager: fix for latest node which is returning a clone with listeners [viirya]
2012-12-13 08:18:42 -03:00
Guillermo Rauch
d8e47d0783
Merge pull request #82 from ramitos/master
...
use window to detect platform and fix global reference
2012-12-12 09:25:54 -08:00
TJ Holowaychuk
9ee234a190
Merge pull request #81 from oqulr/master
...
Code snippets in Readme have extra parens.
2012-12-12 08:49:41 -08:00
Sérgio Ramos
23315f46a9
use window to detect platform and fix global reference
2012-12-12 16:43:49 +00:00
Paolo Fragomeni
3edc409440
Update README.md
...
Fixed code snippets.
2012-12-12 11:29:58 -05:00
Guillermo Rauch
fcd4f6acfc
Merge pull request #1078 from stouset/master
...
Fix operator precedence bug
2012-12-11 09:42:23 -08:00
Guillermo Rauch
f324fca41d
Release 1.0.1
2012-12-10 17:37:18 -03:00
Guillermo Rauch
456b65a8ae
Release 1.0.1
2012-12-10 17:34:24 -03:00
Guillermo Rauch
1ccf2816da
Merge pull request #80 from ramitos/patch-1
...
*: fix references to `global` (fixes #79 )
2012-12-10 12:30:56 -08:00
Sérgio Ramos
942581c64f
*: fix references to global ( fixes #79 )
2012-12-10 20:27:18 +00:00
TJ Holowaychuk
7063b6f07d
screw npm
2012-12-10 08:47:20 -08:00
Guillermo Rauch
62e27c3032
Merge branch 'master' of github.com:/LearnBoost/engine.io-client
2012-12-10 12:16:12 -03:00
Guillermo Rauch
adadcdfbe8
*: fix references to global ( fixes #79 )
2012-12-10 12:10:20 -03:00
Guillermo Rauch
b081987de9
Merge pull request #78 from ramitos/patch-2
...
fixes "failed to require "engine.io" from (...)"
2012-12-10 06:58:27 -08:00
Sérgio Ramos
86a49d2151
fixes "failed to require "engine.io" from (...)"
...
From the [component/component](https://github.com/component/component ) [spec](https://github.com/component/component/wiki/Spec ):
> It is recommended that you use "index.js" for the main component file, however if you use another filename, you **MUST** define a "main" field for that. A component **MUST** have only one "main" file specified, and it **MUST** still be listed in the "scripts" array.
2012-12-10 13:32:46 +00:00
Guillermo Rauch
37ac529df7
emitter: added back WebSocket compat
2012-12-10 03:34:38 -03:00
Guillermo Rauch
74e5b62029
*: fix version
2012-12-09 21:05:29 -03:00
Guillermo Rauch
c44b059749
Readme: improve
2012-12-09 20:29:31 -03:00
Guillermo Rauch
8fae6bf6b6
*: travis
2012-12-09 20:28:40 -03:00
Guillermo Rauch
38cb105b62
*: initial component
2012-12-09 20:25:37 -03:00
Guillermo Rauch
4618389264
Release 0.4.0
2012-12-09 10:14:28 -03:00
Guillermo Rauch
8c638bae34
engine.io: standalone component build
2012-12-08 20:17:11 -03:00
Guillermo Rauch
157f0f94d4
socket: export constructors and utils
2012-12-08 20:13:45 -03:00
Guillermo Rauch
c8d7c2e4e7
test: added symlink to new build
2012-12-08 20:12:59 -03:00
Guillermo Rauch
e3f05dea68
test: fix browser test runner
2012-12-08 20:12:44 -03:00
Guillermo Rauch
bfbe9ef288
polling-xhr: fixed emitter require
2012-12-08 20:10:32 -03:00
Guillermo Rauch
d2884f2b6a
Makefile: build engine.io.js, remove dev build
2012-12-08 20:10:11 -03:00
Guillermo Rauch
6b69d95055
README: expand on tests section
2012-12-08 20:10:00 -03:00
Guillermo Rauch
2da017fde8
test: remove version
2012-12-08 20:09:24 -03:00
Guillermo Rauch
b59234e508
README: simplify standalone story
2012-12-08 20:07:46 -03:00
Guillermo Rauch
5685db3838
test: point to new build location
2012-12-08 20:07:37 -03:00
Guillermo Rauch
90389c63b7
test: remove dist symlink
2012-12-08 20:03:37 -03:00
Guillermo Rauch
3873488694
test: fix dependencies
2012-12-08 20:02:39 -03:00
Guillermo Rauch
1b217fd83c
package: adapted component namespace
2012-12-08 20:02:28 -03:00
Guillermo Rauch
4c7725c267
socket: export protocol
2012-12-08 19:56:21 -03:00
Guillermo Rauch
6d7272d79a
emitter: re-export Emitter
2012-12-08 19:55:01 -03:00
Guillermo Rauch
4d36062de5
README: adapted standalone example to new eio global
2012-12-08 19:54:44 -03:00
Guillermo Rauch
317a499a67
README: remove notion of top level namespace
2012-12-08 19:54:15 -03:00
Guillermo Rauch
70414ecaf4
componetn: added missing transports
2012-12-08 19:51:38 -03:00
Guillermo Rauch
ddd9ee491b
lib: removed engine.io-client aggregation
2012-12-08 19:50:09 -03:00
Guillermo Rauch
9e8a3bd0b3
socket: added compatibility with pre-1.0.0
2012-12-08 19:43:35 -03:00
Guillermo Rauch
65abecb780
*: use local emitter wrapper
2012-12-08 19:43:21 -03:00
Guillermo Rauch
05b0137ed1
emitter: added emitter to remove try/catch ugliness from modules and add node-compatible methods
2012-12-08 19:41:56 -03:00
Guillermo Rauch
3269a7f849
polling-xhr: implemented emitter component
2012-12-08 19:32:43 -03:00
Guillermo Rauch
16a853cfb5
*: fix comments
2012-12-08 19:32:31 -03:00
Guillermo Rauch
ba4a7ded9e
*: adde component.json
2012-12-08 19:30:41 -03:00
Guillermo Rauch
96c92c182b
Makefile: implemented new build system
2012-12-08 19:30:26 -03:00
Guillermo Rauch
11dd62c94c
README: improve documentation for component / node / standalone usage
2012-12-08 19:29:58 -03:00
Guillermo Rauch
a763f20560
engine.io-client: remove EventEmitter exposure
2012-12-08 19:21:39 -03:00
Guillermo Rauch
63fbdddbc3
index: make node engine behave like component engine
2012-12-08 19:21:23 -03:00
Guillermo Rauch
5b6f52e23b
socket: make Socket self-initializable for component require
2012-12-08 19:19:07 -03:00
Guillermo Rauch
dfd49f3a08
socket: use emitter component
2012-12-08 19:18:47 -03:00
Guillermo Rauch
00116f8aa1
transport: use emitter component
2012-12-08 19:18:25 -03:00
Guillermo Rauch
f8b85462c1
lib: added index for component
2012-12-08 19:11:43 -03:00
Guillermo Rauch
e3ac923ce1
package: added emitter-component dep for node
2012-12-08 18:56:23 -03:00
Guillermo Rauch
7a3a689d98
package: removed main, added index.js instead
2012-12-08 18:55:54 -03:00
Guillermo Rauch
6186b8ecce
emitter-component: you are a component, go away
2012-12-08 18:55:31 -03:00
Guillermo Rauch
fa18ffa00b
*: added index for test coverage analysis
2012-12-08 18:53:08 -03:00
Guillermo Rauch
67aec94203
gitignore: added components from component(1)
2012-12-08 18:50:20 -03:00
Guillermo Rauch
754a514245
gitignore: added component(1) build dir
2012-12-08 18:48:20 -03:00
Guillermo Rauch
442787991e
dist: removed
2012-12-08 18:48:03 -03:00
Guillermo Rauch
a58d6f32c6
flashsocket: fix typo
2012-12-08 18:45:17 -03:00
Guillermo Rauch
1d24b66d77
websocket: removed meta debug usage
2012-12-08 18:44:41 -03:00
Guillermo Rauch
03260845c4
polling: remove meta debug usage
2012-12-08 18:44:21 -03:00
Guillermo Rauch
35b8052411
polling-xhr: remove meta debug usage
2012-12-08 18:44:06 -03:00
Guillermo Rauch
d786653b5d
flashsocket: remove meta debug usage
2012-12-08 18:43:13 -03:00
Guillermo Rauch
50c05f9f50
util: remove if node
2012-12-08 18:42:59 -03:00
Guillermo Rauch
7e0cdcad42
Merge pull request #128 from Raynos/patch-1
...
`npm docs engine.io` works now
2012-12-07 02:15:49 -08:00
Guillermo Rauch
101275b0f1
Merge pull request #77 from Raynos/browserify
...
Support browserify
2012-12-07 02:15:17 -08:00
Raynos
5bfd8ee5a8
BROWSERIFY SUPPORT
2012-12-06 22:44:36 -08:00
Nathan Rajlich
70a1993ce5
Merge pull request #76 from Raynos/patch-1
...
npm docs works now
2012-12-06 22:17:20 -08:00
Raynos
b28b485b0a
npm docs works now
2012-12-06 21:51:00 -08:00
Raynos
aad92df830
Update package.json
2012-12-06 21:50:30 -08:00
Raynos
640b760f58
npm docs engine.io works now
2012-12-06 21:49:56 -08:00
Guillermo Rauch
ebc1bebefa
Merge pull request #126 from venportman/patch-1
...
Update README.md
2012-12-04 19:20:57 -08:00
ven
d336a12228
Update README.md
...
fixed spelling error 'chaning' > 'changing'
2012-12-04 22:04:06 -05:00
Guillermo Rauch
94f082be0c
Release 0.3.10
2012-12-03 09:09:33 -03:00
Guillermo Rauch
96902f54a5
package: bumped engine.io-client with close fixes
2012-12-03 09:07:24 -03:00
Guillermo Rauch
c48842d7ce
Release 0.3.10
2012-12-03 09:05:45 -03:00
Guillermo Rauch
0cb254539e
socket: fix closing the socket in an open listener [mmastrac]
2012-12-03 08:53:46 -03:00
Guillermo Rauch
31460d8407
socket: perform ping interval/timer cleanup [mmastrac]
2012-12-03 08:44:25 -03:00
Guillermo Rauch
58ff8991d0
Merge branch 'master' of github.com:/LearnBoost/engine.io
2012-12-03 08:34:55 -03:00
Guillermo Rauch
80036cc50f
Merge pull request #1082 from shapeshed/master
...
Fix leaking message:id, disconnect:id
2012-11-27 20:45:46 -08:00
Guillermo Rauch
373eadf7e1
Merge pull request #1086 from sampsasaarela/master
...
Fixed bug in symbian anna
2012-11-20 02:06:01 -08:00
Sampsa Saarela
ef54570313
Changed content-type in response header from text/plain to application/javascript because some browsers force file download (eg. symbian anna)
2012-11-20 11:53:01 +02:00
George Ornbo
6256f569b3
fix leaking message:id, disconnect:id #1081 #1064 #862
2012-11-12 13:11:23 +00:00
Guillermo Rauch
2404d213b1
Merge pull request #72 from Jxck/master
...
easy fixes
2012-11-11 15:10:54 -08:00
Jxck
97a4a5afd1
add transport.js to test
2012-11-12 07:44:12 +09:00
Jxck
6bc12dd102
fix SPEC (packages -> packets)
2012-11-12 07:43:50 +09:00
Guillermo Rauch
472b3f15b1
Merge pull request #121 from Jxck/master
...
add pakcet, packetCreate document to README
2012-11-10 10:16:57 -08:00
Jxck
fe59f275d8
Merge branch 'master' of github.com:Jxck/engine.io
2012-11-10 22:46:34 +09:00
Jxck
8b549b622f
add pakcet, packetCreate document to README
2012-11-10 22:45:26 +09:00
Jxck
d206381347
add pakcet, packetCreate document to README
2012-11-10 22:41:15 +09:00
Stephen Touset
cd4dee7257
Respect operator precedence
2012-11-09 17:49:40 -08:00
Guillermo Rauch
3bafecd882
Merge branch 'master' of github.com:/LearnBoost/engine.io
2012-11-06 08:25:07 -08:00
upbot
5ff0c1976a
Merge pull request #120 from Jxck/master
...
createPacket event
2012-11-06 08:21:12 -08:00
Jxck
b4d60687ac
add packetCreate event for #99
2012-11-06 20:34:10 +09:00
Guillermo Rauch
ec9334dc03
Merge pull request #114 from Jxck/master
...
refuctoring test which fales depends on timing
2012-11-05 08:09:00 -08:00
Jxck
dabc50b011
refuctoring test
...
this test dosen't pass in some timing in my machine.
so make it not to depends on timeout.
2012-11-06 00:50:34 +09:00
Guillermo Rauch
690d6df631
Merge pull request #68 from indutny/fix-probe-error-handling
...
socket: handle probe's transport errors
2012-11-05 07:26:49 -08:00
Guillermo Rauch
ee1eacf638
Merge pull request #109 from indutny/feature-visible-verification-failure
...
server: send validation failure reason to clients
2012-11-05 07:26:43 -08:00
Guillermo Rauch
95f0614626
Merge pull request #113 from Jxck/master
...
#99 `packet` event
2012-11-05 06:57:15 -08:00
Jxck
46f310462b
add packet event to socket
2012-11-05 21:33:02 +09:00
Guillermo Rauch
971199d19b
engine.io: some cleanup
2012-11-04 09:20:47 -08:00
Guillermo Rauch
92df7872f3
examples: updated client to 0.3.8 ( fixes #108 )
2012-11-04 09:16:17 -08:00
Guillermo Rauch
a3798f3f15
Merge branch 'master' of github.com:/LearnBoost/engine.io
2012-11-04 09:12:51 -08:00
Guillermo Rauch
13e06795ac
transports: remove Connection headers and let node handle it ( fixes #111 )
2012-11-04 09:11:39 -08:00
Guillermo Rauch
3b7224c7e0
Release 0.9.11
2012-11-02 08:03:15 -07:00
Guillermo Rauch
2030cf1432
package: move redis to optionalDependenices [3rd-Eden]
2012-11-02 08:01:24 -07:00
Guillermo Rauch
7537e2543f
transports: removed headers that are set by node from htmlfile [stbuehler]
2012-11-01 17:52:51 -07:00
Guillermo Rauch
e00913aae0
transports: fixed xhr-polling
2012-11-01 17:51:59 -07:00
Guillermo Rauch
dbabf20faa
transports: fix for Connection: close [stbuehler] ( fixes #406 )
2012-11-01 17:14:06 -07:00
Fedor Indutny
bb1f860239
server: send validation failure reason to clients
2012-11-01 00:35:49 +04:00
Fedor Indutny
fcbe68da1f
socket: handle probe's transport errors
2012-10-31 19:25:59 +04:00
Guillermo Rauch
72b32827f4
Merge pull request #107 from ruxkor/patch-1
...
invoking as a function causes attach, refs #104
2012-10-29 05:43:31 -07:00
Andor Goetzendorff
7f08ee3f50
invoking as a function causes attach, refs #104
2012-10-29 13:40:07 +01:00
Guillermo Rauch
82b16fa490
Merge pull request #105 from kapouer/patch-1
...
Socket.flush: reset writeBuffer before send
2012-10-29 05:18:43 -07:00
Guillermo Rauch
4de65523d9
Merge pull request #1061 from shripadk/master
...
Fix: Remove socket session from child processes on disconnect
2012-10-27 18:24:33 -07:00
Shripad K
7cca186bb1
fix: remove socket session from child processes in cluster on disconnect
2012-10-28 05:45:21 +05:30
Lal Jérémy
bbe3d95513
Socket.flush: reset writeBuffer before send
...
This prevents legacy node versions from calling Socket.flush before it
could reset writeBuffer, leading to double-flush.
2012-10-24 23:32:23 +03:00
Guillermo Rauch
5fc9785af0
package: fix whitespace
2012-10-23 14:00:00 -07:00
Guillermo Rauch
d2860a21c1
lib: corrected version
2012-10-23 13:58:48 -07:00
Guillermo Rauch
e4c1cb0727
Release 0.3.9
2012-10-23 13:30:27 -07:00
Guillermo Rauch
5e38123fdb
package: bumped engine.io-client
2012-10-23 13:30:11 -07:00
Guillermo Rauch
5d90ed07c9
Release 0.3.9
2012-10-23 13:15:12 -07:00
Guillermo Rauch
3ad1518bac
Release 0.3.9
2012-10-23 13:14:51 -07:00
Guillermo Rauch
f2103618f4
socket: fix hostname instead of host
2012-10-23 13:13:53 -07:00
Guillermo Rauch
ddafee2eb6
socket: avoid duplicate port defaults
2012-10-23 13:04:52 -07:00
Guillermo Rauch
81fc3018a6
Release 0.3.8
2012-10-23 11:20:31 -07:00
Guillermo Rauch
35d0f98bb5
package: bumped engine.io-client
2012-10-23 11:19:43 -07:00
Guillermo Rauch
e8fc999733
Release 0.3.8
2012-10-23 11:18:53 -07:00
Guillermo Rauch
1337467608
socket: introduce introspection hooks
2012-10-23 11:17:47 -07:00
Guillermo Rauch
c82f8888ec
examples: moar ie fixes
2012-10-21 11:43:37 -07:00
Guillermo Rauch
66f91efcfc
public: support IE8<=
2012-10-21 11:31:02 -07:00
Guillermo Rauch
fb1993c4df
public: fix disconnection message
2012-10-21 11:05:52 -07:00
Guillermo Rauch
62e7771ee2
public: testing out new engine.io-client
2012-10-21 11:03:14 -07:00
Guillermo Rauch
1b4d987ec1
socket: introduced host and port location defaults
2012-10-21 11:01:53 -07:00
Guillermo Rauch
338f547bbe
index: introduce process.env.PORT support
2012-10-21 10:55:34 -07:00
Guillermo Rauch
7db43e93c1
public: added copy of engine.io client
2012-10-21 10:55:16 -07:00
Guillermo Rauch
0a0c62c5a0
package: use fixed engine.io versions
2012-10-21 10:54:57 -07:00
Guillermo Rauch
d7332db2f1
examples: added first example
2012-10-21 10:46:40 -07:00
Guillermo Rauch
3447ae2cad
*: remove unused runner
2012-10-21 09:56:55 -07:00
Guillermo Rauch
8617f464cc
flashsocket: obfuscate activex ( fixes #31 )
2012-10-21 09:51:49 -07:00
Guillermo Rauch
c9445ce647
polling-xhr: obfuscate activex
2012-10-21 09:48:28 -07:00
Guillermo Rauch
e1052509da
README: documented reconnect ( closes #45 )
2012-10-21 09:42:05 -07:00
Guillermo Rauch
8354de9861
socket: unset id upon close
2012-10-21 09:40:26 -07:00
Guillermo Rauch
cdbcedcb57
socket: clear transport listeners upon force close
2012-10-21 09:40:11 -07:00
Guillermo Rauch
df7c8ed58d
Release 0.3.7
2012-10-21 09:35:43 -07:00
Guillermo Rauch
dea596f99d
package: bump version
2012-10-21 09:34:55 -07:00
Guillermo Rauch
44cc65c2f3
Release 0.3.7
2012-10-21 09:34:19 -07:00
Guillermo Rauch
9263034bd8
package: bumped engine.io-client
2012-10-21 09:33:39 -07:00
Guillermo Rauch
3a8e3a3cc2
test: added test to avoid out-of-date client version
2012-10-21 09:32:28 -07:00
Guillermo Rauch
fcea229158
Merge pull request #55 from LearnBoost/improve/location-handling
...
Improve/location handling
2012-10-21 09:28:30 -07:00
Guillermo Rauch
cafa05e067
Merge pull request #62 from c9/descriptor
...
added contributor
2012-10-21 09:25:32 -07:00
Guillermo Rauch
b5a28c42b0
Merge pull request #63 from quackingduck/patch-1
...
Make version number match what's in package.json
2012-10-21 09:25:20 -07:00
Guillermo Rauch
8bf23bc324
Merge pull request #64 from devinrhode2/patch-1
...
Missing backtick` in markdown
2012-10-21 09:25:05 -07:00
Guillermo Rauch
4f0f811001
test: make sure the many messages test has the right timeout config
2012-10-21 09:21:58 -07:00
Guillermo Rauch
1aa47406fd
test: improve ping timeout tests
2012-10-21 09:16:44 -07:00
Guillermo Rauch
33c5806864
test: make client ping timeout test more reliable
2012-10-21 09:10:23 -07:00
Guillermo Rauch
30ac9f7aa9
Merge pull request #101 from devinrhode2/patch-1
...
broken link
2012-10-18 18:16:15 -07:00
Devin Rhode
1c57fdc237
broken link
2012-10-18 09:36:44 -07:00
Devin Rhode
fe01ee5b84
Missing backtick` in markdown
...
Specfically, under Methods > Constructor > secure (`Boolean) has no closing backtick
2012-10-18 00:54:36 -07:00
Myles Byrne
cf03dd7c83
Make version number match what's in package.json
2012-10-18 02:54:02 -05:00
cadorn
aeaf46cd6d
added contributor
2012-10-16 14:53:05 -07:00
Guillermo Rauch
687acf6fa8
Merge pull request #100 from c9/descriptor
...
added contributor
2012-10-16 14:49:23 -07:00
cadorn
936436bc43
added contributor
2012-10-16 14:47:01 -07:00
Guillermo Rauch
44c721fd17
Merge pull request #61 from c9/pings
...
timeout fixes
2012-10-16 13:47:46 -07:00
cadorn
e2364f808b
don't need timer reset here
2012-10-16 13:20:23 -07:00
cadorn
6eeb21575b
timeout fixes
2012-10-16 13:07:34 -07:00
Guillermo Rauch
8abf0c9287
Release 0.3.6
2012-10-16 09:57:11 -07:00
Guillermo Rauch
4b408f6265
socket: style work
2012-10-16 09:56:56 -07:00
Guillermo Rauch
26c6790d31
socket: style work
2012-10-16 09:53:28 -07:00
Guillermo Rauch
1fb41d8662
Merge pull request #98 from indutny/feature-heartbeat-on-data
...
socket: reset ping timeout on incoming data
2012-10-16 09:47:24 -07:00
Guillermo Rauch
0bd68c6cab
Merge pull request #59 from indutny/feature-heartbeat-on-data
...
socket: reset timeout on any incoming data
2012-10-16 09:47:09 -07:00
Fedor Indutny
be7b4e7478
socket: reset ping timeout on incoming data
2012-10-16 23:39:57 +07:00
Fedor Indutny
f8cff26fc5
socket: reset timeout on any incoming data
2012-10-16 23:39:16 +07:00
Guillermo Rauch
f8bc8c81e8
Merge pull request #96 from c9/prio-flush
...
FAILING mass data test
2012-10-15 18:01:42 -07:00
cadorn
6a8a77a65e
remove console.log
2012-10-15 17:29:36 -07:00
cadorn
c4bf8edf43
mass data test
2012-10-15 17:11:27 -07:00
Guillermo Rauch
b924c6a4af
Release 0.3.5
2012-10-14 13:07:08 -07:00
Guillermo Rauch
e696f95f35
package: reverted last commit - we use the parser from the client
2012-10-14 13:06:40 -07:00
Guillermo Rauch
74c020c45a
Release 0.3.4
2012-10-14 12:54:43 -07:00
Guillermo Rauch
a7871359ef
package: engine.io-client moved to devDependencies
2012-10-14 12:54:02 -07:00
Guillermo Rauch
0047a02ba7
Release 0.3.5
2012-10-14 12:19:24 -07:00
Guillermo Rauch
b70653eab4
Release 0.3.4
2012-10-14 11:54:59 -07:00
Guillermo Rauch
e1cf23e87f
package: fix component exports
2012-10-14 11:54:33 -07:00
Guillermo Rauch
689644247c
socket: added missing jsdoc (gross)
2012-10-11 12:43:36 -07:00
Guillermo Rauch
5856c2c831
Release 0.3.3
2012-10-10 14:49:40 -07:00
Guillermo Rauch
28073144b7
Release 0.3.3
2012-10-10 14:48:56 -07:00
Guillermo Rauch
1f4ad01eae
Merge branch 'master' of github.com:/LearnBoost/engine.io-client
2012-10-10 14:47:28 -07:00
Guillermo Rauch
d9799dfeb9
Release 0.3.3
2012-10-10 14:47:14 -07:00
Guillermo Rauch
86f894c18f
Bump
2012-10-10 14:46:42 -07:00
Guillermo Rauch
47b908f20a
Merge pull request #93 from joewalnes/master
...
Slow upgrade should not take down server.
2012-10-10 14:45:18 -07:00
Joe Walnes
61d4c1a7b5
Slow upgrade should not take down server.
...
I noticed this on very heavily overloaded server - the typos raises an uncaught exception.
2012-10-10 16:44:37 -05:00
Guillermo Rauch
59c391fcf1
Merge pull request #57 from quackingduck/master
...
uri.scheme is undefined
2012-10-09 15:56:17 -07:00
Myles Byrne
7d4492dd49
uri.scheme -> uri.protocol
...
The scheme property is undefined
2012-10-09 17:53:38 -05:00
Guillermo Rauch
f0c7097738
transports: improved instrumentation
2012-10-08 17:22:33 -07:00
TJ Holowaychuk
3d5b12b113
Release 0.0.6
2012-10-08 17:03:16 -07:00
TJ Holowaychuk
183adc1ceb
docs
2012-10-08 17:02:54 -07:00
TJ Holowaychuk
c3fc7f5aa8
add this._callbacks initialization to prevent funky gotcha
2012-10-08 17:00:09 -07:00
Guillermo Rauch
2c7128f8b4
Release 0.3.2
2012-10-08 15:47:30 -07:00
Guillermo Rauch
27d0240db7
Release 0.3.2
2012-10-08 15:42:27 -07:00
Guillermo Rauch
0adf8d5b9e
Bumped version
2012-10-08 15:41:54 -07:00
Guillermo Rauch
1c96ca4fe8
socket: improve check interval for upgrade
2012-10-08 15:41:13 -07:00
Guillermo Rauch
9b3d8a6acd
Release 0.3.1
2012-10-08 13:49:18 -07:00
Guillermo Rauch
3da52c44ec
Release 0.3.1
2012-10-08 13:48:56 -07:00
Guillermo Rauch
17c657957e
socket: faster upgrades (we perform a check immediately)
2012-10-08 13:47:50 -07:00
Guillermo Rauch
1af5227fb8
socket: added write alias for send.
2012-10-07 18:35:31 -07:00
Guillermo Rauch
092576990a
test: fixed tests not passing with node-xmlhttprequest 1.5.0
2012-10-07 17:33:26 -07:00
Guillermo Rauch
537fc62d8f
server: don't assume sid is numeric
2012-10-06 19:56:36 -07:00
Guillermo Rauch
b4753e5e87
package: fixed component name
2012-10-04 16:44:38 -07:00
Guillermo Rauch
66ab3093a4
package: added component
2012-10-04 14:49:28 -07:00
Guillermo Rauch
d2ba68e9a1
socket: fix passing false as secure getting overridden
2012-10-04 14:21:16 -07:00
Guillermo Rauch
ffdee5f5f8
socket: fix default port for SSL when secure is not supplied
2012-10-04 14:20:11 -07:00
Guillermo Rauch
229428e310
transport: fix xdomain detection in absence of location.port ( fixes #38 )
2012-10-04 11:04:14 -07:00
Guillermo Rauch
a909a6494b
socket: default secure to true for SSL-served pages that have not specified a connection string
2012-10-04 10:57:58 -07:00
Guillermo Rauch
a5d590ddb9
Release 0.3.0
2012-10-04 10:29:53 -07:00
Guillermo Rauch
2fb4cabf09
Release 0.3.0
2012-10-04 10:29:17 -07:00
Guillermo Rauch
d32c9c1a80
test: fixed style
2012-10-04 09:21:09 -07:00
Guillermo Rauch
dc8ceca3d1
test: clean up common
2012-10-04 09:07:37 -07:00
Guillermo Rauch
2f806d35b4
Merge pull request #84 from c9/better-pings2
...
Better pings 2
2012-10-04 08:41:27 -07:00
Guillermo Rauch
26dc76229d
Merge pull request #51 from c9/better-pings
...
ack pong & variable timeout timer
2012-10-04 08:41:15 -07:00
Guillermo Rauch
655b789d5d
package: bumped xmlhttprequest
2012-09-26 21:44:11 -07:00
Guillermo Rauch
8ed571865a
Merge pull request #54 from mixu/IE10xhr
...
Prefer XMLHttpRequest over XDomainRequest in IE10
2012-09-26 09:19:07 -07:00
cadorn
62b77b9f7b
emit heartbeat
2012-09-25 12:36:55 -07:00
cadorn
a0830635f8
don't need to send pong any more
2012-09-25 12:36:36 -07:00
Mikito Takada
30f28f62dd
Prefer XMLHttpRequest over XDomainRequest if and only if XHR has withCredentials, which is the case for IE10 but not earlier IE versions.
2012-09-25 11:42:07 -07:00
Guillermo Rauch
00d40c3747
Merge pull request #90 from danzajdband/master
...
query instead of send get parameters in test/server.js tests.
2012-09-21 11:44:07 -07:00
Dan Zajdband
3344ac4ed9
query instead of send get parameters in test/server.js tests. It was breaking tests
2012-09-21 15:44:07 -03:00
Guillermo Rauch
272f136330
util: fixed parens
2012-09-21 10:59:47 -07:00
Guillermo Rauch
3d2baff19e
polling: added cache-busting for iOS6
2012-09-21 10:57:29 -07:00
Guillermo Rauch
ec07fa8308
Merge pull request #1031 from secobarbital/master
...
Fixed global variable leak
2012-09-15 13:46:03 -07:00
Seggy Umboh
f5c32c1490
Fixed global leak
2012-09-14 18:48:49 -07:00
Guillermo Rauch
2e4cfb5288
Merge pull request #86 from fjakobs/patch-1
...
directly load the parser module
2012-09-14 03:33:48 -07:00
Fabian Jakobs
f08c158c3e
directly load the parser module
...
I have to problems with `module.exports = require('engine.io-client').parser;`
1. It loads more than is needed
2. It loads the JSONP transport client, which creates a global
2012-09-14 10:57:32 +03:00
cadorn
16650233d9
ping from client
2012-09-12 16:12:46 -07:00
cadorn
ae6eb1f8d1
ping from client
2012-09-12 16:11:45 -07:00
cadorn
0b9f7809bc
changes for #78
2012-09-12 13:17:48 -07:00
Guillermo Rauch
ca9bbf930e
Merge pull request #83 from nicokaiser/base64id
...
Moved generateId into an external module
2012-09-11 03:19:39 -07:00
Nico Kaiser
587cb14972
Moved generateId into an external module
...
see f7d40d5f7b
2012-09-11 12:17:04 +02:00
TJ Holowaychuk
d4919f183f
add mixin warning
2012-09-10 20:15:42 -07:00
Guillermo Rauch
c3ba8a722b
Merge pull request #1008 from faeldt/master
...
Increase performance of generateId by avoiding sync calls to crypto.randomBytes
2012-09-10 15:06:40 -07:00
Guillermo Rauch
781d51926e
Merge pull request #75 from afshinm/master
...
remove unnecessary spacing, fix code styling in tests
2012-09-10 12:04:56 -07:00
Afshin Mehrabani
dd3440ced7
rebase with master
2012-09-10 21:01:20 +04:30
Guillermo Rauch
2ba9fa8a89
Merge pull request #80 from LearnBoost/fix/jsonp-escaping
...
polling-jsonp: prevent client breakage with utf8 whitespace
2012-09-09 17:55:11 -07:00
Guillermo Rauch
7eda4f0ec2
polling-jsonp: prevent client breakage with utf8 whitespace
2012-09-09 17:49:20 -07:00
Guillermo Rauch
88e24feb98
README: documented debug ( fixes #77 )
2012-09-09 17:36:17 -07:00
Guillermo Rauch
70b328f844
Merge pull request #1026 from jmatthewsr-ms/master
...
Websocket: Accept a PONG
2012-09-08 21:05:00 -07:00
Justin Matthews
32a44a3b5d
Websocket: accept a pong (IE10 sends them)
2012-09-08 20:08:37 -07:00
cadorn
2a47ca1af0
fixed timeout
2012-09-07 17:06:22 -07:00
cadorn
c9ce1fd339
fix initial timeout
2012-09-07 16:31:28 -07:00
cadorn
d72e42cc9e
ack pong & variable timeout timer
2012-09-07 16:00:24 -07:00
TJ Holowaychuk
bfb335c3c8
Release 0.0.5
2012-09-07 14:33:42 -07:00
TJ Holowaychuk
2c6aa090f4
fix Emitter.call(this) usage
2012-09-07 14:32:52 -07:00
Guillermo Rauch
c23ddb2bff
Merge pull request #1022 from 3rd-Eden/master
...
Move redis
2012-09-07 13:38:36 -07:00
3rd-Eden
f7f219d6dd
Move redis to the devDependencies, don't depend on redis as it's not a core component
...
to run Socket.IO.
2012-09-07 15:32:09 +02:00
Kristian Faeldt
f7d40d5f7b
Moved generateId into an external module
2012-09-07 19:48:21 +09:00
Guillermo Rauch
c906e5800e
Revert "test: tweaked timers that were making tests not pass on mountain lion"
...
This reverts commit fefb643c4a .
2012-09-06 11:55:58 -07:00
Guillermo Rauch
d624dea5b9
README: undocumented path
2012-09-06 11:55:37 -07:00
TJ Holowaychuk
c4df699d38
Release 0.0.4
2012-09-05 22:08:58 -07:00
TJ Holowaychuk
5d25dd6011
add mixin docs
2012-09-05 22:08:48 -07:00
TJ Holowaychuk
88fb716e4e
Merge branch 'master' of github.com:component/emitter
2012-09-05 22:07:33 -07:00
TJ Holowaychuk
b251af60b6
add mixin support via Emitter(obj). Closes #5
2012-09-05 22:07:23 -07:00
TJ Holowaychuk
03c7823144
fix install docs
2012-09-05 21:52:02 -07:00
Afshin Mehrabani
a318a30ced
fix code styling, bad indentation
2012-09-05 00:58:33 +04:30
Guillermo Rauch
fefb643c4a
test: tweaked timers that were making tests not pass on mountain lion
2012-09-04 12:08:19 -07:00
Guillermo Rauch
95303cb3f3
test: fixed test for clearing callback references
2012-09-04 12:06:57 -07:00
Guillermo Rauch
eeacea93ff
test: fix style, removed test that's not passing
2012-09-04 12:06:41 -07:00
Guillermo Rauch
a99251d38a
Merge pull request #74 from afshinm/patch-1
...
Adding Afshin Mehrabani to contributors
2012-09-04 11:23:12 -07:00
Afshin Mehrabani
029746a4c8
Adding Afshin Mehrabani to contributors
2012-09-04 22:52:24 +04:30
Guillermo Rauch
f493172331
README: documented send callback
2012-09-04 11:16:27 -07:00
Guillermo Rauch
414a24c1e6
Merge branch 'master' of github.com:/LearnBoost/engine.io
2012-09-04 11:14:07 -07:00
Guillermo Rauch
18da616730
README: simplified client constructor example
2012-09-04 11:13:47 -07:00
Guillermo Rauch
6b725eb349
Merge pull request #71 from afshinm/master
...
add `send` callback feature
2012-09-04 11:12:22 -07:00
Afshin Mehrabani
b7ac48941e
fix double \n
2012-09-04 22:40:46 +04:30
Afshin Mehrabani
8af0e2a253
two new test for send callback
...
in this new tests we assert that:
1- when socket get closed and one or more packet(s) are in writeBuffer,
callback references get cleaned to avoid memory leak.
2- callbacks still execute in polling mode
2012-09-04 21:32:25 +04:30
Guillermo Rauch
706f018403
Merge pull request #49 from mixu/mixu/old-ie-crossprotocol-fix
...
Fix cross-protocol-cross-domain requests on IE8, IE9
2012-08-31 16:13:06 -07:00
Mikito Takada
a0b799de3f
IE's XDomainRequest cannot do requests that go from HTTPS to HTTP or HTTP to HTTPS.
2012-08-31 14:41:04 -07:00
Kristian Faeldt
da91c89147
Only fall back when no bytes available, not when threshold is reached
2012-08-28 19:15:55 +09:00
Kristian Faeldt
a10e963858
Added getRandomBytes to improve generateId performance
2012-08-28 18:56:11 +09:00
Guillermo Rauch
5427d2056c
Release 0.2.2
2012-08-26 18:39:54 -07:00
Guillermo Rauch
b7e4ce5d3d
Release 0.2.2
2012-08-26 18:30:54 -07:00
Guillermo Rauch
e2816729fd
Merge pull request #47 from LearnBoost/fix/jsonp-callbacks
...
Fix/jsonp callbacks
2012-08-26 18:26:58 -07:00
Guillermo Rauch
03dc9b1bcd
polling-jsonp: allow unneeded global leak ( fixes #41 )
2012-08-26 18:25:56 -07:00
Guillermo Rauch
01c5319635
polling-jsonp: allow for multiple eio's in the same page
2012-08-26 18:20:40 -07:00
Guillermo Rauch
b70eb526fc
Merge pull request #72 from LearnBoost/remove/flash-policy-buffering
...
Remove/flash policy buffering
2012-08-26 18:18:20 -07:00
Guillermo Rauch
2c61e40537
test: removed flash policy buffering test
...
- it was a false positive (it was all being written in one packet despite
the callback).
- node will discard subsequent packets anyways as they're not a valid
request. we can only hope(?) that flash's request comes all in one packet
2012-08-26 18:14:01 -07:00
Guillermo Rauch
79af5e17cc
server: remove buffering from handleSocket
2012-08-26 18:13:49 -07:00
Guillermo Rauch
d1cbdfff77
server: applied new coding style
2012-08-26 18:13:39 -07:00
Afshin Mehrabani
37c91fc822
fix tests + code styling
2012-08-26 19:32:59 +04:30
Afshin Mehrabani
837ba76477
add new test
...
test the callback while polling
2012-08-26 00:42:21 +04:30
Afshin Mehrabani
7f483042d4
styling problem
2012-08-25 22:04:58 +04:30
Afshin Mehrabani
f9423c2143
unneeded change
2012-08-25 22:02:53 +04:30
Afshin Mehrabani
7959e0a05b
change in conditions
2012-08-25 21:58:14 +04:30
Afshin Mehrabani
175a3f003e
fix styling problem
2012-08-25 21:52:34 +04:30
Afshin Mehrabani
934d323c66
fix .gitignore problem
2012-08-25 21:51:08 +04:30
Afshin Mehrabani
1e3a0ef614
fix styling problem
2012-08-25 21:47:22 +04:30
Afshin Mehrabani
148a10209a
Revert "fix style problem"
...
This reverts commit 514e728433 .
2012-08-25 21:45:16 +04:30
Afshin Mehrabani
514e728433
fix style problem
2012-08-25 21:42:29 +04:30
Afshin Mehrabani
2125d0bfd9
rollback .gitignore
2012-08-25 21:38:38 +04:30
Afshin Mehrabani
893a9f3700
remove send callback
2012-08-25 21:33:23 +04:30
Afshin Mehrabani
51f110f64f
remove unneeded changes
2012-08-25 21:26:23 +04:30
Afshin Mehrabani
c81cf614e1
fix code style problems, remove unnecessary clearing
2012-08-25 21:09:21 +04:30
Afshin Mehrabani
8f4d6f9e13
remove unnecessary sequence id & drain emit parameter
2012-08-24 04:01:36 +04:30
Guillermo Rauch
21a3733dec
Merge pull request #1001 from crazyrobot/patch-1
...
Redis Store: removed unneeded module ('assert')
2012-08-22 16:28:28 -07:00
Itai
4a6890898a
Redis Store: removed unneeded module ('assert')
...
It's not used anywhere in the file and the test file (test/stores.redis.test.js) uses the 'should' module.
I'm assuming this is a leftover.
2012-08-23 02:27:03 +03:00
Guillermo Rauch
2e57cd0c44
Merge branch 'master' of github.com:/LearnBoost/engine.io
2012-08-22 10:25:24 -07:00
Guillermo Rauch
b48efb3f45
transport: avoid unhandled error events for stale transports ( fixes #69 )
2012-08-22 10:25:03 -07:00
Afshin Mehrabani
23004e8b6e
fix code styling issues
2012-08-21 00:23:14 +04:30
Afshin Mehrabani
ab4393fbd8
fix indentation
2012-08-20 23:21:35 +04:30
Afshin Mehrabani
9073a07323
change transports send & flush functions
2012-08-20 12:20:58 +04:30
Afshin Mehrabani
d5dff2dd62
change comment
2012-08-20 12:18:22 +04:30
Afshin Mehrabani
347639b117
add new send callback tests
2012-08-20 12:16:33 +04:30
Afshin Mehrabani
cb02a97d0c
add sequence id, change websocket send function
2012-08-18 12:14:17 +04:30
Afshin Mehrabani
1434eaf78f
add send callback tests + a little change in function
2012-08-15 22:27:03 +04:30
Guillermo Rauch
beefb8d64a
Merge pull request #66 from EugenDueck/patch-2
...
Adding myself to list of contributors
2012-08-13 18:00:20 -07:00
EugenDueck
337e4f23af
Adding myself to list of contributors
...
And added guille as the author - don't want it to look like I'm responsible for all the bugs ;)
2012-08-14 09:58:35 +09:00
Guillermo Rauch
ab2a0b6a8b
test: removed protocolVersion private api from tests
2012-08-13 16:14:28 -07:00
Guillermo Rauch
c797d2a9fb
*: added ws dependency
2012-08-13 16:14:15 -07:00
Guillermo Rauch
d558c97089
transport: rewrite websocket transport to use ws client
2012-08-13 16:14:03 -07:00
Guillermo Rauch
b483dfcce9
test: removed old transports tests
2012-08-13 16:13:51 -07:00
Guillermo Rauch
f59e8aceaa
manager: implemented ws
2012-08-13 16:13:38 -07:00
Guillermo Rauch
90bf61fe7b
Merge pull request #65 from EugenDueck/patch-1
...
Document that toString() is performed on the message argument
2012-08-13 14:53:20 -07:00
EugenDueck
d262459d39
Document that toString() is performed on the message argument
...
This is what engine.io in fact already (implicitly) does, so I can give it any object I want, and it will send what `message.toString()` returns.
This allows me to implement transparent caching of the JSONified string, speeding up broadcast and multicast messages.
2012-08-14 06:49:07 +09:00
Guillermo Rauch
1ea3681917
Release 0.2.1
2012-08-13 12:06:54 -07:00
Guillermo Rauch
ebaf5d39f7
Release 0.2.1
2012-08-13 12:06:26 -07:00
Guillermo Rauch
67117d94f5
Merge pull request #64 from LearnBoost/improve/http-framing
...
Improve/http framing
2012-08-13 11:57:27 -07:00
Guillermo Rauch
16449ec6ca
polling-xhr: skip Keep-Alive when it's implied
2012-08-13 11:51:12 -07:00
Guillermo Rauch
c165b6b465
polling-jsonp: skip Keep-Alive when it's implied [EugenDuck]
2012-08-13 11:49:18 -07:00
Afshin Mehrabani
5d846e1794
fix sample
2012-08-13 22:36:37 +04:30
Afshin Mehrabani
634b11af71
add send callback
...
issue #57
2012-08-13 22:34:50 +04:30
Guillermo Rauch
c7d391ec24
Merge pull request #61 from EugenDueck/patch-2
...
Added description for engine.io-conflation plugin
2012-08-12 14:48:10 -07:00
EugenDueck
658b5a6a93
Added description for engine.io-conflation plugin
2012-08-13 06:19:49 +09:00
Guillermo Rauch
d4cb313551
README: plugins list (cc @EugenDueck)
2012-08-12 11:20:03 -07:00
Guillermo Rauch
de9e8dffe1
Release 0.9.10
2012-08-10 13:34:50 -07:00
Guillermo Rauch
0af4e54e6f
Merge pull request #58 from LearnBoost/add/flush-drain
...
Add/flush drain
2012-08-10 10:46:29 -07:00
Guillermo Rauch
81a6e76426
test: added flush/drain events tests
2012-08-10 10:46:00 -07:00
Guillermo Rauch
b948f858fb
socket: fix flush event parameter
2012-08-10 10:45:48 -07:00
Guillermo Rauch
271585189f
socket: added flush/drain events ( fixes #56 )
2012-08-10 10:39:09 -07:00
Guillermo Rauch
834cbcf7a5
README: added flush/drain docs
2012-08-10 10:39:00 -07:00
Guillermo Rauch
3a3044ebba
Merge pull request #972 from Coreh/express-3.x-readme
...
Add express 3.0 instructions on Readme.md
2012-08-10 10:17:55 -07:00
Guillermo Rauch
d10b4dd1bd
Merge pull request #985 from GICodeWarrior/log-case-fix
...
Don't lowercase log messages
2012-08-08 18:03:57 -07:00
Rusty Burchfield
12beee2d63
Don't lowercase log messages
...
Lowercasing log messages is unnecessary. It makes some messages difficult to
read, and others difficult to search for.
2012-08-08 11:32:57 -07:00
Guillermo Rauch
8085e399bf
Update README.md
2012-08-07 17:45:33 -07:00
Guillermo Rauch
875f14d16b
Revert "Fix infinite recursion in Websocket parsers."
...
This reverts commit c218468f67 .
2012-08-07 13:18:41 -07:00
Guillermo Rauch
078fff8991
Merge pull request #51 from LearnBoost/fix/ws-connection-to-bad-transport
...
Fix/ws connection to bad transport
2012-08-06 16:33:17 -07:00
Guillermo Rauch
827875f481
sense: this makes more
...
This way all transports have a consistent constructor.
2012-08-06 16:28:12 -07:00
Guillermo Rauch
eb3822c825
websocket: expose handlesUpgrade flag
2012-08-06 16:27:17 -07:00
Guillermo Rauch
24e19fceee
server: avoid passing websocket to non-websocket transports ( fixes #24 )
2012-08-06 16:24:44 -07:00
Guillermo Rauch
79d76b6aa2
Merge pull request #50 from LearnBoost/add/connection-close-tests
...
test: added `Connection: close` test.
2012-08-06 15:09:47 -07:00
Guillermo Rauch
02573b0652
test: added Connection: close test.
2012-08-06 15:08:43 -07:00
Guillermo Rauch
8ca8990a0c
Merge pull request #983 from GICodeWarrior/parser-recursion
...
Fix infinite recursion in Websocket parsers.
2012-08-06 13:16:37 -07:00
Guillermo Rauch
23e6d751c9
Release 0.2.0
2012-08-06 13:11:18 -07:00
Guillermo Rauch
8d5296b148
Release 0.2.0
2012-08-06 13:08:52 -07:00
Guillermo Rauch
8bda491c72
Release 0.2.0
2012-08-06 13:07:26 -07:00
Rusty Burchfield
c218468f67
Fix infinite recursion in Websocket parsers.
...
If a client is feeding messages faster than server can handle them, infinite
recursion occurs. Basically, the "overflow" data gets added to the parser and
it immediately parses a new message.
The fix pushes the processing of the next message (in this edge case) onto the
event queue. This prevents the stack from recursing indefinitely. This also
prevents a fast client from starving other clients.
2012-08-06 13:03:51 -07:00
Guillermo Rauch
7676213d46
Merge pull request #49 from LearnBoost/add/connection-close-detection
...
test: added closing connection test
2012-08-06 11:54:23 -07:00
Guillermo Rauch
1d580fef07
test: added closing connection test
2012-08-06 11:51:35 -07:00
Guillermo Rauch
5a6f2ce805
polling: fixed event names
2012-08-06 11:13:25 -07:00
Guillermo Rauch
4472e20955
README: documented pollComplete event
2012-08-06 11:13:05 -07:00
Guillermo Rauch
6d9cfa59d4
README: started on Transport (private API) docs
2012-08-06 10:56:26 -07:00
Guillermo Rauch
93d8c8dc55
Merge pull request #48 from LearnBoost/improve/id-generation
...
Improve/id generation
2012-08-06 09:19:22 -07:00
Guillermo Rauch
fb522c46fa
test: updated tests
2012-08-06 09:18:39 -07:00
Guillermo Rauch
44fd1b97a1
server: implemented stronger id generator with collision detection
2012-08-06 09:17:11 -07:00
Guillermo Rauch
4164e3bd7e
Merge pull request #981 from doozr/honour-flash-settings
...
Honour flash settings
2012-08-06 08:59:17 -07:00
Guillermo Rauch
46227e7ac9
Merge pull request #980 from doozr/jsonp-error-crash
...
Always set the HTTP response in case an error should be returned to the client
2012-08-06 08:58:57 -07:00
Craig Andrews
d723d363b2
Always set the HTTP response in case an error should be returned to the client
2012-08-06 14:16:06 +01:00
Craig Andrews
fa1c1b2ada
Create or destroy the flash policy server on configuration change
2012-08-06 14:14:15 +01:00
Craig Andrews
d32a848c3f
Honour configuration to disable flash policy server
2012-08-06 14:14:14 +01:00
Guillermo Rauch
b0a1c34b49
Release 0.1.2
2012-08-02 17:07:23 -07:00
Guillermo Rauch
6c390c470f
Release 0.1.2
2012-08-02 17:07:14 -07:00
Guillermo Rauch
4ce21b0d14
Merge pull request #44 from LearnBoost/fix/jsonp-content-type
...
polling: changed text/plain to text/html (fixes #43 )
2012-08-02 17:01:45 -07:00
Guillermo Rauch
26ffa48f0d
polling: changed text/plain to text/html ( fixes #43 )
2012-08-02 17:00:06 -07:00
TJ Holowaychuk
01f83655a8
add component.json
2012-08-01 21:51:51 -07:00
Guillermo Rauch
a2663e8240
Release 0.1.1
2012-08-01 17:34:33 -07:00
Guillermo Rauch
e45f21375a
Release 0.1.1
2012-08-01 17:31:00 -07:00
Guillermo Rauch
cb6cefb4fa
Merge pull request #34 from LearnBoost/add/url-timestamping
...
Add/url timestamping
2012-08-01 17:29:15 -07:00
Guillermo Rauch
34a32bf211
test: fixed timestamp tests
2012-08-01 17:28:27 -07:00
Guillermo Rauch
56f9a1e0d4
util: added android UA sniffing
2012-08-01 17:23:28 -07:00
Guillermo Rauch
ad5c2ee021
transport: implemented timestamps
2012-08-01 17:23:12 -07:00
Guillermo Rauch
c81a5b0312
*: document timestamp options
2012-08-01 17:22:17 -07:00
Guillermo Rauch
4ff3419df0
Merge pull request #38 from LearnBoost/change/ws-impl
...
Change/ws impl
2012-08-01 16:32:43 -07:00
Guillermo Rauch
5a8cc19219
*: added ws dep
2012-08-01 16:10:40 -07:00
Guillermo Rauch
a86e1aeba1
server: added failing test courtesy of Contra
2012-08-01 16:10:28 -07:00
Guillermo Rauch
a80c76fa37
websocket: do error handling for each ws write
2012-08-01 16:09:45 -07:00
Guillermo Rauch
25b48dd152
server: replaced websocket.io with ws, now that it supports older drafts
2012-08-01 16:09:21 -07:00
Guillermo Rauch
48ad0d3d1d
Release 0.9.9
2012-08-01 15:14:02 -07:00
Guillermo Rauch
281a467960
manager: added response to sync disconnect xhrs
2012-08-01 15:08:06 -07:00
Guillermo Rauch
1fa74a46a3
Revert "Fix disconnectSync getting ignored"
...
This reverts commit f48b40e134 .
2012-08-01 11:58:28 -07:00
Guillermo Rauch
ca4e3f32a3
Merge pull request #975 from huancz/master
...
fix issue #961 - restore compatibility with earlier node releases (up to 0.4.x)
2012-07-31 08:34:22 -07:00
Guillermo Rauch
9dd8134e6a
Merge pull request #970 from renier/master
...
Codebase needs a license file (#965 )
2012-07-31 08:32:07 -07:00
Renier Morales
180f1c91b9
Put license text in its own file ( #965 )
2012-07-31 11:07:21 -04:00
Marco Aurélio
bddf652c25
Add express 3.0 instructions on Readme.md
2012-07-30 15:53:47 -03:00
Guillermo Rauch
c795e4cf1a
Merge pull request #971 from Coreh/express-3.x-warn
...
Add warning to .listen() to ease the migration to Express 3.x
2012-07-30 11:49:53 -07:00
Marco Aurélio
6afbb34581
Add warning to .listen() to ease the migration to Express 3.x
2012-07-30 15:43:00 -03:00
Guillermo Rauch
ac39dbc721
Merge pull request #964 from crickeys/xhr_polling_disconnectSync
...
Fix disconnectSync getting ignored
2012-07-27 10:06:03 -07:00
Petr Běhan
a5c5c20438
restore compatibility with node 0.4.x
2012-07-27 15:38:57 +02:00
Brian Gruber
f48b40e134
Fix disconnectSync getting ignored
...
If using xhr-polling and a browser closes a tab or window, the
disconnectSync in the socket.io-client method is called which sends an
XHR request to the server indicating a disconnect. This line would cause
that to be ignored and so the server would have to wait for a timeout to
mark them as disconnect. This was possibly because it was sent from a
different tcp socket than the current connection.
2012-07-26 21:19:00 -05:00
Guillermo Rauch
1679fd564c
Release 0.9.8
2012-07-24 17:36:30 -07:00
Guillermo Rauch
bb900d445a
Release 0.9.7
2012-07-24 11:16:20 -07:00
Guillermo Rauch
c6fed55f53
tests: fixed tests for 0.8
2012-07-24 10:39:23 -07:00
Guillermo Rauch
6adebc85fc
Merge pull request #958 from xaroth8088/master
...
Prevent crash when socket leaves a room twice.
2012-07-22 11:26:21 -07:00
xaroth8088
7a087bcc94
Prevent crash when socket leaves a room twice.
2012-07-22 11:09:06 -07:00
Guillermo Rauch
18422183c8
Merge pull request #957 from xaroth8088/master
...
Corrects unsafe usage of for..in, permitting socket.io to be used in environments that extend Object, etc.
2012-07-21 11:44:28 -07:00
xaroth8088
aeb904f58b
Corrects unsafe usage of for..in, permitting socket.io to be used in environments where Object, Function, etc. have been extended.
...
http://yuiblog.com/blog/2006/09/26/for-in-intrigue/
2012-07-21 11:30:15 -07:00
xaroth8088
9c0b9de7f0
Revert "Corrects unsafe usage of for..in, permitting socket.io to be used in environments that extend Object, etc."
...
This reverts commit 81552c11ca .
2012-07-21 11:21:11 -07:00
xaroth8088
81552c11ca
Corrects unsafe usage of for..in, permitting socket.io to be used in environments that extend Object, etc.
...
http://yuiblog.com/blog/2006/09/26/for-in-intrigue/
2012-07-21 10:29:20 -07:00
Guillermo Rauch
7eb043714c
Merge pull request #34 from bionicbrian/master
...
'ws' in Example C in README appears to be a typo? Should be 'engine'?
2012-07-16 11:26:36 -07:00
Brian Moore
a671072c06
change 'ws' to 'engine' in README C example
2012-07-16 11:23:47 -07:00
TJ Holowaychuk
19e192dd41
Release 0.0.3
2012-07-11 20:02:41 -07:00
TJ Holowaychuk
d23e2ad533
add docs for .listeners(event)
2012-07-11 20:02:02 -07:00
TJ Holowaychuk
bcb45a5817
change .has to .hasListeners
...
as per guillermo request, which makes sense! inheriting
from emitter and then overriding .has with your own thing
could potentially suck
2012-07-11 20:01:40 -07:00
Guillermo Rauch
e1fe76aebe
Fix for node 0.8 with gzip compression. Thanks @vadimi
2012-07-09 16:58:02 -07:00
Guillermo Rauch
a7f6efeb80
Merge pull request #32 from 3rd-Eden/patch-1
...
Added the correct location of the SPEC file
2012-07-06 11:45:11 -07:00
Arnout Kazemier
cbe261f009
Added the correct location of the SPEC file
2012-07-06 15:04:56 +03:00
Guillermo Rauch
bfbc49ae35
Release 0.1.0
2012-07-03 15:36:46 -07:00
Guillermo Rauch
f220104618
Release 0.1.0
2012-07-03 15:35:21 -07:00
Guillermo Rauch
21f3e7033a
Adapted test to new API
2012-07-03 14:20:16 -07:00
Guillermo Rauch
2edf01dd2c
Added thorough cookie tests.
2012-07-03 14:20:05 -07:00
Guillermo Rauch
1c0a3e69ad
Removed engine version test.
2012-07-03 14:19:49 -07:00
Guillermo Rauch
c754f549f7
Added transport headers Set-Cookie injection
2012-07-03 14:19:28 -07:00
Guillermo Rauch
2ce2138de4
Added handshake request to polling transports.
2012-07-03 14:18:46 -07:00
Guillermo Rauch
f3e867a2a8
Added headers event to transports.
2012-07-03 14:18:32 -07:00
Guillermo Rauch
45d07bc816
Introduced Transport#request
2012-07-03 14:18:09 -07:00
Guillermo Rauch
73cf06cc34
Added accessor to transport handshake request
2012-07-03 14:17:17 -07:00
Guillermo Rauch
f30f353a36
Renamed Socket#req to Socket#request
2012-07-03 14:16:35 -07:00
Guillermo Rauch
8387ffb801
Added missing docs for Server constructor
2012-07-03 14:16:25 -07:00
Guillermo Rauch
bcba7e567d
Updated websocket.io
2012-07-03 12:50:40 -07:00
Guillermo Rauch
671ce071ea
Removed version from api docs
2012-07-03 12:47:21 -07:00
Guillermo Rauch
aa6fe32b59
Removed version since we're not supporting 0.4 from the get-go. Use require('engine.io/package').version instead.
2012-07-03 12:46:40 -07:00
Guillermo Rauch
0cdc862eca
Sorry node 0.4
2012-07-03 12:31:50 -07:00
Guillermo Rauch
81a5797237
Improved docs
2012-07-03 12:29:35 -07:00
Guillermo Rauch
d87708f48f
Bumped engine.io-client
2012-07-02 11:08:39 -07:00
Guillermo Rauch
4fd56bf3f6
test: added io cookie handshake test
2012-07-02 11:03:24 -07:00
Guillermo Rauch
f0ece1b9ba
polling: send io cookie ( fixes #30 )
2012-07-02 11:03:09 -07:00
Guillermo Rauch
566acd1ffd
socket: transfer sid to transport upon opening
2012-07-02 11:02:39 -07:00
Guillermo Rauch
da071a1327
test: added node 0.8 to travis testing targets
2012-07-02 09:06:30 -07:00
Guillermo Rauch
f2ffc52777
test: added node 0.8 to testing targets
2012-07-02 09:06:04 -07:00
Guillermo Rauch
39e91a2a49
test: fixed ws version for travis CI
2012-07-02 09:05:17 -07:00
Guillermo Rauch
927134813b
polling-jsonp: added garbage jsonp querystring protection ( fixes #25 )
2012-07-02 08:20:52 -07:00
Guillermo Rauch
b1b650432d
meta: removed 0.4 testing from travis CI
2012-07-02 08:04:02 -07:00
Guillermo Rauch
eeb2b16058
flashsocket: fixed docs & style
2012-07-02 08:02:23 -07:00
Guillermo Rauch
a23387ef87
flashsocket: auto-populate SWF location based on flashPath
2012-07-02 08:01:58 -07:00
Guillermo Rauch
ece335ea17
socket: default policyPort to 843
2012-07-02 08:00:17 -07:00
Guillermo Rauch
7d514dabfc
docs: improved flash-related docs
2012-07-02 08:00:04 -07:00
Guillermo Rauch
82ec5a8bc9
socket: ignore transport errors from discarded transports ( fixes #26 )
2012-07-02 07:52:36 -07:00
Guillermo Rauch
89a1e010c7
socket: added toString to fake event sent to onmessage
2012-07-02 07:43:35 -07:00
Guillermo Rauch
3a2b592398
test: added onopen and onclose to test
2012-07-02 07:43:15 -07:00
Guillermo Rauch
082cda6bcf
Merge pull request #30 from mihs/master
...
Flashsocket protocol does not work.
2012-07-02 07:37:12 -07:00
Guillermo Rauch
00f9738292
socket: added polling cycle force for fast upgrade
2012-07-02 07:34:02 -07:00
Guillermo Rauch
2aed814cf7
parser: added noop packet
2012-07-01 19:06:34 -07:00
Guillermo Rauch
75a1304f8b
Bumped xmlhttprequest dependency version
2012-07-01 18:14:41 -07:00
TJ Holowaychuk
e62db4c98e
add history.md
2012-06-28 18:39:49 -07:00
Guillermo Rauch
050ad8ea19
Fixes failing test.
2012-06-28 18:39:10 -07:00
Guillermo Rauch
591f069f01
Added failing test
2012-06-28 18:39:10 -07:00
TJ Holowaychuk
13e19d5808
Release 0.0.2
2012-06-28 17:01:52 -07:00
Guillermo Rauch
85e86ba9c4
Bumped ws
2012-06-27 22:09:37 -07:00
Guillermo Rauch
8197a0c854
Merge pull request #929 from sjonnet19/patch-1
...
Update redis to support Node 0.8.x
2012-06-26 06:29:08 -07:00
Shawn Jonnet
2b91f1407f
Update redis to support Node 0.8.x
2012-06-25 23:30:24 -03:00
mihs
3c7e3a8b5a
Merge branch 'master' of git://github.com/LearnBoost/engine.io-client
2012-06-22 15:28:56 +03:00
Guillermo Rauch
fddcec0ea0
Fixed xhr polling in IE6.
2012-06-05 22:55:22 +02:00
Guillermo Rauch
ce99f057a2
Fixed engine.io for 0.7
2012-06-05 15:05:19 +02:00
TJ Holowaychuk
d0743a4a30
Fixed .off() with .once()-registered callbacks
2012-05-21 21:31:09 -03:00
TJ Holowaychuk
bf6f07abc9
added test for emitter.once() and .off()
2012-05-21 21:28:42 -03:00
dbc65f3b5a
added flashsocket transport logic
2012-05-18 13:20:53 +03:00
TJ Holowaychuk
441b438157
docs
2012-05-10 10:15:38 -07:00
TJ Holowaychuk
05d95f0470
Added Emitter#has(event)
2012-05-10 10:15:18 -07:00
TJ Holowaychuk
872de89f6c
Added tests
2012-05-03 10:41:42 -07:00
Guillermo Rauch
3b9715e8e7
Merge pull request #869 from MrSwitch/master
...
Small change to demo copy
2012-05-03 06:24:15 -07:00
Andrew Dodson
4e13cfb03e
Update copy
2012-05-03 12:16:01 +10:00
Guillermo Rauch
39671e81a5
Merge pull request #868 from bodash/patch-1
...
I continued to have websocket connection issues in Safari when using SSL...
2012-05-02 12:21:24 -07:00
bodash
ffa8994a23
I continued to have websocket connection issues in Safari when using SSL that terminated at a load balancer. The shorthand logic that was here was nice and compact but didn't seem to work. Took the "intent" of the short hand and made it a bit more verbose and now it works.
2012-05-02 13:18:46 -06:00
TJ Holowaychuk
6b2240a13b
changed name
2012-05-02 10:49:51 -07:00
TJ Holowaychuk
8f5c87082d
docs
2012-05-02 10:49:14 -07:00
TJ Holowaychuk
d69fcf20b8
readme
2012-05-02 10:48:56 -07:00
TJ Holowaychuk
709deff363
Initial commit
2012-05-02 10:44:33 -07:00
Guillermo Rauch
de1afe1317
Merge pull request #857 from martinthomson/bug/856
...
Fix for ID generation vulnerability #856
2012-04-26 15:49:24 -07:00
Martin Thomson
aaad106b90
Adding node 0.4 backward compat for id gen
2012-04-26 15:08:19 -07:00
Martin Thomson
f850ddccd0
Removing more fixes for other bug
2012-04-26 14:35:17 -07:00
Martin Thomson
8d269aae4c
Removing fixes for other bug
2012-04-26 14:33:37 -07:00
Martin Thomson
67b4eb9abd
Making ID generation securely random
2012-04-26 14:28:00 -07:00
Guillermo Rauch
fe6dd87443
Merge pull request #848 from mbrevoort/redisStoreRaceCondition
...
Fix Redis Store race condition in manager onOpen unsubscribe callback
2012-04-23 15:30:30 -07:00
Mike Brevoort
d9aeaa494f
Fix Redis Store race condition in manager onOpen unsubscribe callback
2012-04-23 16:06:31 -06:00
Guillermo Rauch
2024d45383
Merge pull request #841 from TooTallNate/master
...
fix for EventEmitters always reusing the same Array instance for listeners
2012-04-19 13:30:13 -07:00
Nathan Rajlich
e1884859bc
fix for EventEmitters always reusing the same Array instance for listeners
...
This fixes node v0.7.x.
The node commits that broke this old behavior is here:
78dc13fbf9 %5E...928ea564d16da47e615ddac627e0b4d4a40d8196
2012-04-19 13:18:22 -07:00
Guillermo Rauch
1254c2c291
Added note about clients and clientsCount
2012-04-18 11:12:32 -03:00
Guillermo Rauch
0242a2ddf3
Merge branch 'master' of github.com:LearnBoost/socket.io
2012-04-17 19:51:49 -03:00
Guillermo Rauch
dbe6d5f740
Release 0.9.6
2012-04-17 19:51:37 -03:00
Guillermo Rauch
e98fc7bc86
Fixed XSS in jsonp-polling.
2012-04-17 19:48:32 -03:00
Guillermo Rauch
995d5e0400
Added cache busting test.
2012-04-17 16:56:44 -03:00
Guillermo Rauch
8d98a3359e
Added cache busting to all polling transports
...
Also added forceBust option
2012-04-17 16:56:14 -03:00
Guillermo Rauch
3a152c7997
Removed XHR specific cache busting.
2012-04-17 16:56:00 -03:00
Guillermo Rauch
9bbf17f31e
Merge pull request #827 from crickeys/patch-4
...
Fixes when browser doesn't send origin header, defaults to empty string ...
2012-04-11 15:02:50 -07:00
crickeys
1a5a87af13
Fixes when browser doesn't send origin header, defaults to empty string instead of UNDEFINED (which would throw an error on the origin.match(/^https/) below
2012-04-11 14:41:07 -05:00
Guillermo Rauch
b5aba684df
Merge pull request #21 from mixu/mixu/firefox-post-response-fix
...
Fix POST content type for Firefox.
2012-04-09 15:08:34 -07:00
Mikito Takada
0ad8a247a2
Fix POST content type for Firefox. Same as https://github.com/LearnBoost/socket.io/pull/806 but for Engine.io
2012-04-06 21:51:58 -07:00
Guillermo Rauch
a4e53a642b
Release 0.9.5
2012-04-05 14:37:18 -03:00
Guillermo Rauch
6f36d8c2ff
Added test for polling with connection close.
2012-04-05 14:32:10 -03:00
Guillermo Rauch
09fb16b443
Ensure close upon request close.
2012-04-05 14:31:50 -03:00
Guillermo Rauch
330407cc9d
Fix disconnection reason being lost for polling transports.
2012-04-05 14:31:32 -03:00
Guillermo Rauch
2075307f23
Ensure that polling transports work with Connection: close
2012-04-05 14:31:13 -03:00
Guillermo Rauch
d7b06edaca
Log disconnection reason
2012-04-05 14:31:01 -03:00
Guillermo Rauch
e91cc5a474
Merge pull request #18 from nicokaiser/master
...
polling: Remove the right listener in onDataRequest
2012-04-05 04:23:38 -07:00
Nico Kaiser
b566accb09
Remove the right listener in onDataRequest
2012-04-05 08:53:13 +02:00
Guillermo Rauch
c5cea61510
Update engine.io-client commit id.
2012-04-03 08:34:21 -03:00
Guillermo Rauch
78f2471e29
Improved and updated URL section.
2012-04-03 08:25:57 -03:00
Guillermo Rauch
7b0699b10f
Added default resource to test URLs.
2012-04-03 08:18:11 -03:00
Guillermo Rauch
825a489e9e
Added default resource to URLs.
2012-04-03 08:16:14 -03:00
Guillermo Rauch
b8cca35434
Added instrumentation to core
2012-04-03 08:16:05 -03:00
Guillermo Rauch
c3b4462ffc
Merge branch 'master' of github.com:/LearnBoost/engine.io-client
2012-04-03 08:12:06 -03:00
Guillermo Rauch
2c8ed0d458
Added debug dependency.
2012-04-03 08:08:05 -03:00
Guillermo Rauch
a406ce6c3b
Merge pull request #27 from Gottox/patch-1
...
Updating documentation
2012-04-03 03:33:36 -07:00
Enno Boland
0c1e1ace70
Update SPEC.md, add documentation to 5 upgrade. May have some redundancy.
2012-04-03 11:49:19 +03:00
Enno Boland
e23fe81010
Update spec.
2012-04-03 11:31:14 +03:00
Guillermo Rauch
244dba26bd
Adapted code to leverage debug()
2012-04-02 12:55:53 -03:00
Guillermo Rauch
041662b140
Update docs.
2012-04-02 12:17:30 -03:00
Guillermo Rauch
4f689687e6
Implemented resource
2012-04-02 12:17:22 -03:00
Guillermo Rauch
6eeadf3b20
Updated docs.
2012-04-02 12:16:28 -03:00
Guillermo Rauch
93605fd3e9
Implemented resource alongside with path.
2012-04-02 12:16:18 -03:00
Guillermo Rauch
b059331f50
Bumped debug
2012-04-02 11:43:02 -03:00
Guillermo Rauch
46fdcf00b3
Release 0.9.4
2012-04-01 01:50:50 -03:00
Guillermo Rauch
147b9bb941
Release 0.9.4
2012-04-01 01:49:51 -03:00
Guillermo Rauch
02a3da487c
Merge branch 'master' of github.com:LearnBoost/socket.io
2012-04-01 01:48:25 -03:00
Guillermo Rauch
087c686ad0
Release 0.9.4
2012-04-01 01:48:13 -03:00
Guillermo Rauch
16205fc522
Merge pull request #809 from DanielBaulig/issue795-fix
...
Issue795 fix
2012-03-28 12:58:45 -07:00
Guillermo Rauch
2c0c4547d7
Added dist/README ( fixes #16 ).
2012-03-28 11:50:25 -03:00
Guillermo Rauch
aa3bfeabf9
Stop ignoring dist.
2012-03-28 11:50:13 -03:00
Guillermo Rauch
9227c0b4dd
Merge pull request #15 from nicokaiser/master
...
Wrong namespace in docs
2012-03-28 07:30:28 -07:00
Nico Kaiser
0a5304f534
update docs
2012-03-28 16:16:04 +02:00
Guillermo Rauch
a232159ce8
Release 0.9.3
2012-03-28 09:28:05 -03:00
Guillermo Rauch
b9c3255b7c
Merge pull request #806 from mixu/upstream/fix-ff-xhr-post-syntax
...
Fix "syntax error" message on FF, resulting from FF trying to parse the POST result as XML due to it not having a response content-type
2012-03-27 16:54:29 -07:00
Mikito Takada
d80010dcf0
Firefox will try to parse the response from POST requests, causing a syntax error message in the Web Console. Basically an addition to https://github.com/LearnBoost/socket.io/pull/501
2012-03-27 16:43:17 -07:00
Guillermo Rauch
41ea3b728c
Fixes double /
2012-03-25 11:20:22 -03:00
Guillermo Rauch
0162484b16
Added basedir to browserbuild commands ( fixes #26 )
2012-03-25 11:10:46 -03:00
Guillermo Rauch
d71d9117ec
Fixed Makefile for latest browserbuild.
2012-03-25 10:48:46 -03:00
Daniel Baulig
00694a8a98
Fix issue #795
2012-03-19 22:03:31 +01:00
Daniel Baulig
da95094998
Add disconnect from namespace test-case for issue #795
2012-03-19 21:54:20 +01:00
Guillermo Rauch
8b51474798
Removed growl
2012-03-14 12:56:32 -03:00
Guillermo Rauch
1e889b9a01
No growl.
2012-03-14 12:55:57 -03:00
Guillermo Rauch
e7d7582f84
Release 0.9.2
2012-03-13 11:00:50 -03:00
Guillermo Rauch
df5f23d309
More sensible close timeout default (fixes disconnect issue)
2012-03-13 10:49:06 -03:00
Guillermo Rauch
dd445fc1bb
Fixed timeouts section.
2012-03-10 11:57:26 -03:00
Guillermo Rauch
e018ba91eb
Merge branch 'master' of github.com:LearnBoost/socket.io
2012-03-09 08:47:01 -03:00
Guillermo Rauch
c59aa6ff2c
Getting ready for 1.0
2012-03-09 08:42:24 -03:00
Guillermo Rauch
9431709298
Merge pull request #787 from MatthewMueller/master
...
io.configure('development', function() {...}) will trigger if NODE_ENV is not defined.
2012-03-09 02:17:15 -08:00
Matt Mueller
a29525e043
NODE_ENV in configure now defaults to development, which is consistent with express
2012-03-09 02:10:58 -08:00
Guillermo Rauch
7d3b70aaa9
Added .md
2012-03-08 12:29:23 -03:00
Guillermo Rauch
2f7812ece5
Revision 1 of SPEC
2012-03-08 12:28:26 -03:00
Guillermo Rauch
046644bd37
Fix and simplify readystatechange
2012-03-08 12:07:50 -03:00
Guillermo Rauch
7b77bd613c
Replaced 204 with 200 and added a response text.
...
I remember old versions of Firefox having issues with 200 responses
with no text.
2012-03-08 11:46:12 -03:00
Guillermo Rauch
695daa9b7f
Merge branch 'master' of github.com:/LearnBoost/engine.io-client
2012-03-08 10:44:56 -03:00
Guillermo Rauch
722fe8ee0d
Fixed JSONP ( fixes #24 )
2012-03-08 10:44:06 -03:00
Guillermo Rauch
ef5a514c10
Fixed JSONP
2012-03-08 10:27:23 -03:00
Guillermo Rauch
e4ca71c84e
Fixed ambiguous requirement.
2012-03-03 19:05:05 -03:00
Guillermo Rauch
2aaee23930
Fixed coverage generation.
2012-03-03 19:04:46 -03:00
Guillermo Rauch
1a48492a27
Added lib-cov/ to gitignore.
2012-03-03 18:49:08 -03:00
Guillermo Rauch
722ee5b5e4
Fixed parser reference.
2012-03-03 18:48:43 -03:00
Guillermo Rauch
ec576d48c4
Corrected path.
2012-03-03 18:42:41 -03:00
Guillermo Rauch
557907603f
Added index.js to require the right engine-io
2012-03-03 18:42:32 -03:00
Guillermo Rauch
7784d48838
Fixed eio requirement to require lib-cov if needed.
2012-03-03 18:41:33 -03:00
Guillermo Rauch
bd19365452
Exposed parser.
2012-03-03 18:41:11 -03:00
Guillermo Rauch
67cb168b1d
Added test-cov, lib-cov Makefile tasks.
2012-03-03 18:40:31 -03:00
Guillermo Rauch
6ebac5214a
Added coverage.html to gitignore.
2012-03-03 18:40:12 -03:00
Guillermo Rauch
94813010c5
Unbroke make test
2012-03-02 15:49:28 -03:00
Guillermo Rauch
5efa9d8416
Merge branch 'master' of github.com:/LearnBoost/engine.io-client
2012-03-02 15:41:02 -03:00
Guillermo Rauch
5cf4006321
Defined npm test.
2012-03-02 15:40:47 -03:00
Guillermo Rauch
e8f710f2f0
Defined npm test.
2012-03-02 15:40:24 -03:00
Guillermo Rauch
afd9d58da1
Merge branch 'master' of github.com:/LearnBoost/engine.io
2012-03-02 15:38:35 -03:00
Guillermo Rauch
3bd00edacd
Point to client on git for travis.
2012-03-02 15:38:12 -03:00
Guillermo Rauch
dbac4cf1c1
Merge pull request #13 from ruxkor/to_learnboost
...
add on('error') handler for websocket transport
2012-03-02 10:05:54 -08:00
Andor Goetzendorff
556995470a
add on('error') handler for websocket transport
2012-03-02 17:59:37 +01:00
Guillermo Rauch
5312e154b3
Release 0.9.1-1
2012-03-02 08:41:17 -03:00
Guillermo Rauch
480b86f382
Bumped client with NPM dependency fix.
2012-03-02 08:40:41 -03:00
Guillermo Rauch
c0e2c3012f
Release 0.9.1
2012-03-02 08:20:38 -03:00
Guillermo Rauch
97b04c4152
Merge branch 'master' of github.com:LearnBoost/socket.io
2012-03-02 07:50:59 -03:00
Guillermo Rauch
822ff7ed4a
Merge pull request #23 from jakob-stoeck/master
...
small compatibility changes
2012-03-01 10:09:11 -08:00
Jakob Stoeck
bcc833275a
browser compatibility
...
ie7 does not support data[i] but data.charAt(i)
2012-03-01 18:50:01 +01:00
Jakob Stoeck
adc67e8da3
replaced control character with space
2012-03-01 18:45:10 +01:00
Guillermo Rauch
9cc043102d
Merge pull request #22 from ruxkor/to_learnboost_2
...
xhr polling does not call onError when xhr.status == 0
2012-02-29 10:28:06 -08:00
Andor Goetzendorff
99306d3fcf
xhr polling does not call onError when xhr.status == 0, refs #21
2012-02-29 16:44:00 +01:00
Guillermo Rauch
c8306e207d
Temporarily removing node 0.4 from travis-ci
2012-02-29 11:01:11 -03:00
Guillermo Rauch
de5c0b3554
Merge pull request #771 from felixge/heartbeat
...
Make heartbeat timeout > heartbeat interval
2012-02-29 05:43:24 -08:00
Felix Geisendörfer
57a0b24060
Make heartbeat timeout > heartbeat interval
...
Otherwise clients would detect timeouts before a heartbeat has a chance
of reaching them. The new values themselves were suggested by @rauchg. I
myself think that the heartbeat timeout should probably only be ~10s larger
than the interval.
2012-02-29 14:15:37 +01:00
Guillermo Rauch
ba456d99cc
Bumped websocket.io
2012-02-27 10:39:49 -03:00
Guillermo Rauch
0612d5a079
Shortened heading.
2012-02-27 09:01:13 -03:00
Guillermo Rauch
fd0102e4c2
Added build status image.
2012-02-27 08:59:36 -03:00
Guillermo Rauch
67992530bc
Added engine.io.
2012-02-27 08:58:57 -03:00
Guillermo Rauch
4f8212ebac
Added .travis.yml
2012-02-27 08:57:42 -03:00
Guillermo Rauch
f8c56b98f5
Added .travis.yml
2012-02-27 08:57:05 -03:00
Guillermo Rauch
4713aaab0b
Updated readme.
2012-02-27 08:54:17 -03:00
Guillermo Rauch
61c9c4cf03
Updated README
2012-02-27 08:54:04 -03:00
Guillermo Rauch
f651cb45f0
Added basePath option.
2012-02-27 08:53:11 -03:00
Guillermo Rauch
96ac0957f6
Fixed parser test.
2012-02-27 08:46:45 -03:00
Guillermo Rauch
204576c006
Make these 2 tests work both on 0.4 and 0.6
2012-02-26 21:51:22 -03:00
Guillermo Rauch
66ac425bf7
Release 0.9.0
2012-02-26 21:46:39 -03:00
Guillermo Rauch
a01e7e2256
Make tests pass on 0.4
2012-02-26 18:21:25 -03:00
Guillermo Rauch
47cfa5aadf
Fixed tests. All 250 passing.
2012-02-26 17:14:06 -03:00
Guillermo Rauch
ddd7f804af
Fixed cross-domain xhr tests.
2012-02-26 17:11:52 -03:00
Guillermo Rauch
5b76f2d36d
Merge branch 'master' of github.com:/LearnBoost/engine.io
2012-02-26 16:50:11 -03:00
Guillermo Rauch
5ed8ac95da
Documented attach options.
2012-02-26 16:47:37 -03:00
Guillermo Rauch
97c84e5e4a
Fixed indentation.
2012-02-26 16:47:25 -03:00
Guillermo Rauch
8c396925ac
Merge pull request #12 from kapouer/patch-2
...
Socket.ping() should be idempotent, if not race conditions can appear and connection closes.
2012-02-22 14:11:19 -08:00
Lal Jérémy
d1d35263b1
Socket.ping() should be idempotent, if not race conditions can appear and connection closes.
2012-02-22 15:13:01 +01:00
Guillermo Rauch
2d7d1debeb
Fixes #11 . Thanks @ruxkor
2012-02-22 09:59:52 -03:00
Guillermo Rauch
4763230327
Merge pull request #19 from kapouer/patch-1
...
Options should take opts.secure.
2012-02-22 04:44:15 -08:00
Lal Jérémy
d5df4c57dd
Options should take opts.secure.
2012-02-22 11:05:47 +01:00
Guillermo Rauch
81e278872f
Merge pull request #10 from kapouer/patch-1
...
Trivial fix in update lib/socket.js, fix wrong call of sendPacket
2012-02-21 15:26:05 -08:00
Lal Jérémy
b56354c84b
Update lib/socket.js
2012-02-22 00:20:16 +01:00
Guillermo Rauch
b6e33239d7
Fix for #9 corrected. [ruxkor, kapouer]
2012-02-21 12:13:54 -03:00
Guillermo Rauch
2e596e7876
Fixed Makefile
2012-02-15 14:07:49 -03:00
Guillermo Rauch
f4d0badf5d
Merge branch 'master' of github.com:/LearnBoost/engine.io
2012-02-15 14:04:34 -03:00
Guillermo Rauch
bbc988822b
Fixed CORS for withCredentials ( fixes #9 )
2012-02-15 14:03:48 -03:00
Guillermo Rauch
4e0db80e06
Merge pull request #17 from ruxkor/master
...
fix for #16
2012-02-15 07:37:25 -08:00
Andor Goetzendorff
9d8f75ff38
loop over navigator.plugins instead of using .indexOf, fixes #16
2012-02-15 16:27:35 +01:00
Guillermo Rauch
8c1c7a24ef
Merge pull request #744 from ajaxorg/regexp-as-resource
...
make it possible to use a regexp to match the socket.io resource URL
2012-02-09 09:38:03 -08:00
Fabian Jakobs
09b130f4cf
make it possible to use a regexp to match the
...
socket.io resource URL. We need this because we
have to prefix the socket.io URL with a variable
ID.
2012-02-09 17:17:55 +01:00
Guillermo Rauch
b662704b0b
Merge pull request #737 from mixu/mixu/authfix2
...
Supplemental fix to gavinuhma/authfix, it looks like the same Access-Control-Origin logic is needed in the http and xhr-polling transports
2012-02-03 14:24:57 -08:00
Mikito Takada
304a4285ff
Supplemental fix to gavinuhma/authfix, it looks like the same Access-Control-Origin logic is needed in the http and xhr-polling transports
2012-02-03 12:20:40 -08:00
Tj Holowaychuk
567663fb64
make build targets easier to read
2012-02-02 17:01:11 -08:00
Tj Holowaychuk
3290e8bbb4
suppress make test-browser cmd`
2012-02-02 16:59:48 -08:00
Guillermo Rauch
18e5ca12ce
Merge pull request #7 from einaros/master
...
Don't suggest more upgrades than are actually available
2012-01-26 10:45:52 -08:00
einaros
89a30ec268
avoid suggesting upgrades which arent enabled on the server
2012-01-26 09:28:35 -08:00
Guillermo Rauch
f47cdb06e8
Merge pull request #6 from einaros/master
...
Update tests to run with latest superagent
2012-01-25 13:25:10 -08:00
einaros
b983b1a063
fix tests for latest superagent
2012-01-25 13:14:32 -08:00
Guillermo Rauch
aee3fd6fa0
Fixed ws compliance in onmessage.
2012-01-19 09:46:28 -08:00
Guillermo Rauch
208011937d
Added missing qs decoding to jsonp transport.
2012-01-18 11:44:43 -08:00
Guillermo Rauch
9890c5eabb
Fixed style
2012-01-18 10:41:06 -08:00
Guillermo Rauch
865ad73ddd
No longer needed with new browserbuild.
2012-01-18 08:48:16 -08:00
Guillermo Rauch
94bd8effd2
Fixed callbacks data type.
2012-01-18 08:39:58 -08:00
Guillermo Rauch
337d709392
Updated polling callbacks variable.
2012-01-18 08:37:49 -08:00
Guillermo Rauch
c2f2b41e17
JSONP callback improvements.
2012-01-18 08:36:47 -08:00
Guillermo Rauch
2ec8cbad3f
Merge branch 'master' of github.com:/LearnBoost/engine.io-client
...
Conflicts:
lib/transports/polling.js
2012-01-18 08:32:50 -08:00
Guillermo Rauch
bbc1fc1b7b
Removed unneeded, cyclic requires.
2012-01-18 08:32:07 -08:00
Guillermo Rauch
a1720e470b
Fixed super call from JSONP
2012-01-18 08:31:57 -08:00
Guillermo Rauch
32b2d6f282
Merge pull request #14 from dvv/patch-4
...
stopper typo fixed
2012-01-18 08:05:45 -08:00
Guillermo Rauch
3a5d5cceff
Merge pull request #13 from dvv/patch-3
...
dangerous typo: JSON
2012-01-18 08:05:32 -08:00
Vladimir Dronnikov
5aeff8618d
stopper typo fixed
2012-01-18 10:28:12 -05:00
Vladimir Dronnikov
b8e76bcb51
dangerous typo: JSON
2012-01-18 10:26:45 -05:00
Guillermo Rauch
dfb3e1fa1d
Removed test for client ping interval awareness.
2012-01-17 09:57:21 -08:00
Guillermo Rauch
96aa932bea
Fixed ping tests.
2012-01-17 09:55:57 -08:00
Guillermo Rauch
e305e16ad7
Stopped sending interval to client.
2012-01-17 09:51:44 -08:00
Guillermo Rauch
014cf6e26d
Tweaked default timeout and interval values.
2012-01-17 09:51:31 -08:00
Guillermo Rauch
9800e29f72
Removed notion of pingInterval
2012-01-17 09:50:10 -08:00
Guillermo Rauch
f3375a86da
Revert "fixed wrong assumption on ping timeout"
...
This reverts commit 3012a7922b .
2012-01-17 09:32:42 -08:00
Guillermo Rauch
35d35e3980
Consistency with server
2012-01-17 09:32:34 -08:00
Guillermo Rauch
b972088e39
Merge branch 'master' of github.com:/LearnBoost/engine.io-client
2012-01-17 08:15:33 -08:00
Guillermo Rauch
3fc505d573
Leveraged util.keys for browser compliance.
2012-01-17 08:14:44 -08:00
Guillermo Rauch
ed59483bb9
Added util#keys
2012-01-17 08:14:06 -08:00
Guillermo Rauch
3877183268
Removed unneeded .bind
2012-01-17 08:12:08 -08:00
Guillermo Rauch
2ddceab15e
Merge pull request #9 from dvv/patch-2
...
fixed wrong assumption on ping timeout
2012-01-17 08:11:32 -08:00
Vladimir Dronnikov
3012a7922b
fixed wrong assumption on ping timeout
2012-01-17 09:31:12 +00:00
Guillermo Rauch
b8d126c2c2
Improved dependency loader.
2012-01-16 15:38:56 -08:00
Guillermo Rauch
2e52e6eb60
Transfer web-socket-js logging to instrumentation.
2012-01-16 14:56:47 -08:00
Guillermo Rauch
b7b9ee1b2e
Leveraged flashPath from flashsocket transport.
2012-01-16 14:55:43 -08:00
Guillermo Rauch
44eaeeaa60
Added flashPath option.
2012-01-16 14:55:29 -08:00
Guillermo Rauch
79d26badfb
Fixed docs.
2012-01-16 13:26:39 -08:00
Guillermo Rauch
6ec7668fd4
Merge pull request #6 from dvv/parser
...
coercion is done right
2012-01-16 10:04:09 -08:00
Guillermo Rauch
9d0cf675d4
Thanks Vladimir
2012-01-16 10:03:34 -08:00
Guillermo Rauch
38d6b75d0e
Fixed missing global reference.
2012-01-16 09:59:48 -08:00
Vladimir Dronnikov
4b7d7e9787
we coerce data to string
2012-01-16 12:52:23 -05:00
Vladimir Dronnikov
49c9f4f63f
Merge branch 'master' of github.com:LearnBoost/engine.io-client into parser
2012-01-16 12:50:27 -05:00
Guillermo Rauch
141eaef7d3
Failing test.
2012-01-16 09:49:45 -08:00
Guillermo Rauch
cc14deb5ab
Removed error packet type.
2012-01-16 09:41:51 -08:00
Guillermo Rauch
50a7e384c3
Merge pull request #5 from dvv/parser
...
parser simplified
2012-01-16 09:29:24 -08:00
Vladimir Dronnikov
fb41b18007
Merge branch 'master' of github.com:LearnBoost/engine.io-client into parser
2012-01-16 12:28:31 -05:00
Guillermo Rauch
cf57b9a01a
Empty packet data translates into empty message.
2012-01-16 09:25:34 -08:00
Guillermo Rauch
01b4802d11
Removed no longer relevant test.
2012-01-16 09:25:19 -08:00
Vladimir Dronnikov
01260064cf
fixed encoder
2012-01-16 12:21:41 -05:00
Vladimir Dronnikov
2f691d3a07
Merge branch 'master' of github.com:LearnBoost/engine.io-client into parser
2012-01-16 12:14:48 -05:00
Vladimir Dronnikov
85bf4c05be
drop excess : in packets
2012-01-16 12:14:15 -05:00
Guillermo Rauch
706f1504f4
Updated encoding format checks for new upcoming format.
2012-01-16 09:12:56 -08:00
Vladimir Dronnikov
516525afd4
parser simplified
2012-01-16 11:34:01 -05:00
Guillermo Rauch
37ad952168
Fixed 204 status on IE.
2012-01-16 08:14:00 -08:00
Guillermo Rauch
b6daf3212e
Fixed order of on and load in util.
2012-01-16 08:05:08 -08:00
Guillermo Rauch
b253c8fed5
Fixed title
2012-01-15 22:50:06 -08:00
Guillermo Rauch
5f0d2455d3
Ensured we emit the event _after_ we we call onPacket.
...
This prevents a race condition where upon `poll`, the transport
gets paused, then upon getting closed upgraded (therefore replaced)
and packets are lost!
2012-01-15 22:30:28 -08:00
Guillermo Rauch
ce02ec2aaa
Added polling data instrumentation.
2012-01-15 22:30:13 -08:00
Guillermo Rauch
2fe5b2682f
Restored correct pausing logic for polling.
2012-01-15 22:29:51 -08:00
Guillermo Rauch
53c3e90fd7
Added fix for considering 204 a success.
...
In addition, avoid recursion error with status errors.
2012-01-15 22:25:40 -08:00
Guillermo Rauch
18cbd9d3a3
Added guard for uninitialized flashsocket close attempt.
2012-01-15 22:25:23 -08:00
Guillermo Rauch
aff04b7f02
Fixed FlashWS reference
2012-01-15 22:25:14 -08:00
Guillermo Rauch
c55bde3651
Improved socket close instrumentation.
2012-01-15 22:24:21 -08:00
Guillermo Rauch
49b1fad736
Fixed Socket#probe
2012-01-15 22:24:04 -08:00
Guillermo Rauch
081e304d7d
Refactored (now passing) upgrade test.
2012-01-15 22:21:49 -08:00
Guillermo Rauch
4e8b650561
Removed test no longer valid in 0.6
2012-01-15 22:21:39 -08:00
Guillermo Rauch
2e4dcbdaba
Improve ws instrumentation
2012-01-15 22:21:26 -08:00
Guillermo Rauch
de514e6e62
Added WebSocket#onData to instrument it.
2012-01-15 22:21:03 -08:00
Guillermo Rauch
cf4691c494
Renamed ws instrumentation nsp.
2012-01-15 22:20:41 -08:00
Guillermo Rauch
44e8192ad2
Improved polling instr.
2012-01-15 22:20:27 -08:00
Guillermo Rauch
0d0ffef9d2
Improved polling instrumentation.
2012-01-15 22:19:57 -08:00
Guillermo Rauch
d6ee514fbb
Documentation and fix for .close without a fn.
2012-01-15 22:19:24 -08:00
Guillermo Rauch
86adb61f28
Ensured Socket#flush checks for buffer length.
2012-01-15 22:19:07 -08:00
Guillermo Rauch
04723dd50c
Re-implemented maybeUpgrade to consider upgrade packet.
2012-01-15 22:18:34 -08:00
Guillermo Rauch
18311196a2
Renamed Socket#upgrade to #maybeUpgrade
2012-01-15 22:17:54 -08:00
Guillermo Rauch
327aeee7bf
Introduced upgradeTimeout.
2012-01-15 22:10:33 -08:00
Guillermo Rauch
b834862454
Removed no-longer needed callback.
2012-01-14 15:07:06 -08:00
Guillermo Rauch
5bc9c7e132
Made client buffer/flush work more like server.
2012-01-14 13:52:24 -08:00
Guillermo Rauch
54791e61e2
Fixed closing of polling transport callback.
2012-01-14 13:46:20 -08:00
Guillermo Rauch
cb22f219d7
Renamed close readyState to closed.
2012-01-14 11:43:33 -08:00
Guillermo Rauch
b2c249e7ef
Slown down some tests since they were pretty extreme.
...
The blocking `console.error` behavior of debug was making the tests not
pass sometimes.
2012-01-14 11:36:16 -08:00
Guillermo Rauch
5f0d7fb7e9
Removed noop packet test.
2012-01-14 10:40:23 -08:00
Guillermo Rauch
a23405bfea
Fixed close packet sending.
2012-01-14 10:36:44 -08:00
Guillermo Rauch
a6da7ef0ba
Reset slow threshold
2012-01-14 10:22:41 -08:00
Guillermo Rauch
c0bb8c740d
Started leveraging mocha bail.
2012-01-14 09:42:39 -08:00
Guillermo Rauch
aab09b04bc
Refactored server tests with listen shortcut and sprintf.
2012-01-14 09:42:18 -08:00
Guillermo Rauch
fdd4faa180
Refactored tests with new listen, sprintf & fixed potential leaks of errors to different tests.
2012-01-14 09:41:44 -08:00
Guillermo Rauch
3f3da53491
Added listen utilit for ephemeral ports listening & sprintf.
2012-01-14 09:41:10 -08:00
Guillermo Rauch
9630a4fe69
Added sprintf util for testing.
2012-01-14 09:37:39 -08:00
Guillermo Rauch
3a0759fb89
Cleaned up WebSocket#send.
2012-01-14 09:37:14 -08:00
Guillermo Rauch
88cfa04de5
Implemented WebSocket#writable.
2012-01-14 09:36:32 -08:00
Guillermo Rauch
15d420d6b2
Added instrumentation to polling payloads.
2012-01-14 09:36:09 -08:00
Guillermo Rauch
2a93f06e27
Implemented draining and orderly close to polling.
2012-01-14 09:35:39 -08:00
Guillermo Rauch
5e9e167ed4
Fixed docs.
2012-01-14 09:35:07 -08:00
Guillermo Rauch
704312271b
Added instrumentation to upgrade.
2012-01-14 09:34:57 -08:00
Guillermo Rauch
83c2711009
Implemented Socket buffering/flushing:
...
- Fires upon upgrade
- Fires when the transport is drained.
2012-01-14 09:34:29 -08:00
Guillermo Rauch
fba2a89b79
Implemented sendPacket API homologous to client API.
2012-01-14 09:34:03 -08:00
Guillermo Rauch
a2f498ac65
Started adding buffering to Socket.
2012-01-14 09:33:01 -08:00
Guillermo Rauch
496ce56f5f
Fixed docs.
2012-01-14 09:32:52 -08:00
Guillermo Rauch
89d59598c8
Syntax cleanup.
2012-01-14 09:32:42 -08:00
Guillermo Rauch
45f5b2a113
Fixed debug namespace convention.
2012-01-13 15:32:28 -08:00
Guillermo Rauch
bd7d01a190
Avoid incorrect debug output order.
2012-01-13 15:30:15 -08:00
Guillermo Rauch
81a1428da2
Merge branch 'master' into upgrade
2012-01-11 11:23:11 -08:00
Guillermo Rauch
2a521830d1
Pre-emptively assign an UID for every request.
2012-01-11 11:22:57 -08:00
Guillermo Rauch
6074795b19
Updated express dep for windows compatibility.
2012-01-11 07:41:09 -08:00
Guillermo Rauch
a139809a97
Updated express dep for windows compatibility.
2012-01-11 07:40:44 -08:00
Guillermo Rauch
3b558630d9
Added upgrade packet.
...
This packet gets sent by the upgrading transport that completed the
probe (ping/pong), once the client confirms that it's now considered
the main transport.
2012-01-09 09:00:40 -08:00
Guillermo Rauch
5c3d3a5739
Improved #flush, #sendPacket.
2012-01-09 08:55:40 -08:00
Guillermo Rauch
b417e8df6e
Avoid collisions between upgrading transports
2012-01-09 08:55:13 -08:00
Guillermo Rauch
a2a8ec126f
Keep reference of flush bound to the instance around.
2012-01-09 08:54:50 -08:00
Guillermo Rauch
81eb2c37f7
Make sure Polling#write updates the Transport#writable property.
2012-01-09 08:53:58 -08:00
Guillermo Rauch
4c9960ae27
Claned up Transport concept of buffering.
2012-01-09 08:50:12 -08:00
Guillermo Rauch
63e711885f
Simplified Polling#pause.
2012-01-09 08:43:06 -08:00
Guillermo Rauch
0c79fcacbc
Added starts of upgrade tests.
2012-01-09 08:35:39 -08:00
Guillermo Rauch
ca56e61847
Fixed WS#write
2012-01-04 22:48:54 -08:00
Guillermo Rauch
475826e69a
Added messages ws tests
2012-01-04 17:56:03 -08:00
Guillermo Rauch
3cc7a69b4c
Bumped ws.io
2012-01-04 17:53:54 -08:00
Guillermo Rauch
f2459424c1
Added tricky xhr-polling test.
2012-01-04 17:48:11 -08:00
Guillermo Rauch
593db7192f
Added first message test
2012-01-04 17:47:52 -08:00
Guillermo Rauch
c2e5d6ff61
Gotta love websocket
2012-01-04 17:46:56 -08:00
Guillermo Rauch
70f8830b3c
Added doClose callback for Polling
2012-01-04 17:21:06 -08:00
Guillermo Rauch
f2043f9590
Added callback support to Polling#send, and drain event.
2012-01-04 17:20:48 -08:00
Guillermo Rauch
f51d36f584
Added closing readyState and callback to Transport#doClose
2012-01-04 17:18:12 -08:00
Guillermo Rauch
26e3d1c546
Added closing readyState.
2012-01-04 17:17:58 -08:00
Guillermo Rauch
9c70561e00
Refactored WS#write
2012-01-04 16:08:17 -08:00
Guillermo Rauch
d7b07367ed
writeMany is gone, write now handles arrays directly.
2012-01-04 16:07:55 -08:00
Guillermo Rauch
fed78d3607
Started finishing Polling#pause.
2012-01-04 16:07:30 -08:00
Guillermo Rauch
b4166271dd
Refactored this again, this time I like it.
2012-01-04 16:06:45 -08:00
Guillermo Rauch
364408d0ee
Implemented a public sendMany. I hate public props.
2012-01-04 16:06:21 -08:00
Guillermo Rauch
5587282215
Added more instrumentation to polling
2012-01-04 15:40:48 -08:00
Guillermo Rauch
615c555742
Improved instrumentation.
2012-01-04 15:40:36 -08:00
Guillermo Rauch
767d770e59
Added additional verification step: handshake is only over GET.
2012-01-04 15:40:21 -08:00
Guillermo Rauch
7a4e0c086a
Added client close test for websocket.
2012-01-04 14:03:50 -08:00
Guillermo Rauch
38d644ef76
Added client close test.
2012-01-04 13:57:55 -08:00
Guillermo Rauch
4c7e6a675e
Fixed data chunks aggregation.
2012-01-04 13:52:20 -08:00
Guillermo Rauch
001d80ac40
Fixed bind, I thought it took an array of arguments.
2012-01-04 13:52:05 -08:00
Guillermo Rauch
1a8b42debc
Added missing Transport#onPacket method.
2012-01-04 13:41:38 -08:00
Guillermo Rauch
e4ee394dd5
Fixed; close packet is specific to xhr-polling transport
2012-01-04 13:41:23 -08:00
Guillermo Rauch
4c7d127557
Fixed WS write and writeMany
2012-01-04 13:17:58 -08:00
Guillermo Rauch
421e152b6b
Fixed polling write and writeMany
2012-01-04 13:17:41 -08:00
Guillermo Rauch
bbf2819b0e
Added more instrumentation
2012-01-04 13:15:02 -08:00
Guillermo Rauch
a22006fc55
Made the parser tests a little more realistic.
2012-01-04 13:09:04 -08:00
Guillermo Rauch
70a663ae9f
Fixed Transport#doWrite implementations
2012-01-04 13:08:46 -08:00
Guillermo Rauch
187df309b8
Flush buffer upon open.
2012-01-04 13:08:24 -08:00
Guillermo Rauch
417b213576
Reworked flush logic.
2012-01-04 13:08:11 -08:00
Guillermo Rauch
6766dc09aa
Pass packet directly - give more flexibility to transport.
2012-01-04 13:07:59 -08:00
Guillermo Rauch
d212ab3336
Added instrumentation
2012-01-04 13:07:52 -08:00
Guillermo Rauch
2fc784a145
Fixed test titles.
2012-01-04 10:41:58 -08:00
Guillermo Rauch
b098ccf450
Added forced close test for websocket
2012-01-04 10:36:17 -08:00
Guillermo Rauch
ed7d43053d
Addded test for server forced close (xhr polling)
2012-01-04 10:29:58 -08:00
Guillermo Rauch
2d64c157c1
Make test faster.
2012-01-04 08:54:57 -08:00
Guillermo Rauch
249fb89c49
Added transport unit tests
2012-01-03 13:26:29 -08:00
Guillermo Rauch
ea69aee16a
Bumped ws
2012-01-03 13:26:12 -08:00
Guillermo Rauch
2ef709b284
Added back load/defer utils from socket.io
...
Added JSON parse from jquery
2012-01-03 13:25:56 -08:00
Guillermo Rauch
7641beecb5
Fixed websocket uri
2012-01-03 13:25:42 -08:00
Guillermo Rauch
32fdf49498
FIxed websocket constructor.
2012-01-03 13:25:29 -08:00
Guillermo Rauch
1884aa04bb
Fixed polling uri builder
2012-01-03 13:25:16 -08:00
Guillermo Rauch
7b49cdbedb
Fixed doClose
2012-01-03 13:25:07 -08:00
Guillermo Rauch
21a552e7b6
Fixed Polling data handler
2012-01-03 13:24:55 -08:00
Guillermo Rauch
857e58a953
Clean up polling transport
2012-01-03 13:23:36 -08:00
Guillermo Rauch
dab713aafe
Make sure to conserve the error on Request#onError
2012-01-03 13:23:15 -08:00
Guillermo Rauch
72236e944d
Added debugging to Request
2012-01-03 13:23:04 -08:00
Guillermo Rauch
fd6f99d9cc
Added withCredentials for CORS cookie support, improved error hadnling and ensured that we call onData outside of the try/catch
2012-01-03 13:22:26 -08:00
Guillermo Rauch
4b3d525e60
Fixed style
2012-01-03 13:22:15 -08:00
Guillermo Rauch
122d323634
Fixed style
2012-01-03 13:21:58 -08:00
Guillermo Rauch
c175b39d8d
Added separate error handling to #write and #doPoll
2012-01-03 13:21:18 -08:00
Guillermo Rauch
1c93b30de9
Removed error handling from XHR#request to personalize the error
2012-01-03 13:20:54 -08:00
Guillermo Rauch
0f47a813ad
Fixed XHR#doOpen
2012-01-03 13:20:40 -08:00
Guillermo Rauch
470a2e50cc
Added cache busting for XHR uri and fixed style
2012-01-03 13:20:20 -08:00
Guillermo Rauch
4d998e0f8b
Simplified JSONP: removed setIndex and leveraged uri()
2012-01-03 13:19:57 -08:00
Guillermo Rauch
845f71224e
Moved polling polimorphic constructor to transports index
2012-01-03 13:18:30 -08:00
Guillermo Rauch
cb05bc80f6
Refactored transports index deps
2012-01-03 13:18:13 -08:00
Guillermo Rauch
f1666cbd99
Fixed flashsocket check
2012-01-03 13:18:00 -08:00
Guillermo Rauch
f5e841cbdc
Fixed style and throw instead of silencing the error in Transport#send
2012-01-03 13:17:29 -08:00
Guillermo Rauch
73026b60e2
Improved Transport#onError
2012-01-03 13:17:14 -08:00
Guillermo Rauch
1c94ceec60
Expose transport options as properties.
2012-01-03 13:16:59 -08:00
Guillermo Rauch
642b965d7b
Added defense to Socket#onClose
2012-01-03 13:16:33 -08:00
Guillermo Rauch
d86a766104
Added Socket#onError
2012-01-03 13:16:25 -08:00
Guillermo Rauch
3fed6df2af
Fixed Socket#close and added close reason
2012-01-03 13:16:07 -08:00
Guillermo Rauch
82742c3cb3
Added method to set ping timeout
2012-01-03 13:15:51 -08:00
Guillermo Rauch
59d3310578
Added onHandshake
2012-01-03 13:15:39 -08:00
Guillermo Rauch
2ba029695f
Added defense to onPacket handler
2012-01-03 13:15:03 -08:00
Guillermo Rauch
e7520a6836
Moved upgrade probes start to onOpen handler
2012-01-03 13:14:43 -08:00
Guillermo Rauch
6fae597966
Make sure to flush upon upgrade completion
2012-01-03 13:14:29 -08:00
Guillermo Rauch
e442540a45
Added error handling and closing reason to current socket transport
2012-01-03 13:14:09 -08:00
Guillermo Rauch
1cb04d41ed
Removed probes upon open
2012-01-03 13:13:34 -08:00
Guillermo Rauch
6b19d655ee
Make sure query object is cloned upon transport creation
2012-01-03 13:13:16 -08:00
Guillermo Rauch
cfcebef5a0
Added support for both http/ws URIs in Socket constructor.
2012-01-03 13:12:48 -08:00
Guillermo Rauch
6222cba321
Fixed event-emitter from socket.io
2012-01-03 13:12:33 -08:00
Guillermo Rauch
3fb375d9bf
Added ws for tests
2012-01-03 13:12:12 -08:00
Guillermo Rauch
0da0626a7b
Added verificiation, handshake and open/close suits of tests
2012-01-03 13:11:41 -08:00
Guillermo Rauch
57c10d2265
Expose client globally to tests as eioc
2012-01-03 13:11:22 -08:00
Guillermo Rauch
28f7d4d715
Added instrumentation support for the client during tests.
2012-01-03 13:11:09 -08:00
Guillermo Rauch
c20bdadef4
Added default XML response for policy requests.
2012-01-03 13:10:42 -08:00
Guillermo Rauch
d640d3252d
Finished JSONP#doWrite
2012-01-03 13:10:13 -08:00
Guillermo Rauch
81877af79b
Added escaping to onData
2012-01-03 13:04:26 -08:00
Guillermo Rauch
fdc60ff476
Fixed style
2012-01-03 13:00:56 -08:00
Guillermo Rauch
adb373455b
Implemented WebSocket#send and WebSocket#doClose
2012-01-03 13:00:35 -08:00
Guillermo Rauch
88c6a5364b
Fixed WebSocket constructor.
2012-01-03 13:00:09 -08:00
Guillermo Rauch
1273fc4f10
Simplified XHR#doWrite
2012-01-03 12:59:40 -08:00
Guillermo Rauch
3aa755e9f9
Fixed style
2012-01-03 12:59:23 -08:00
Guillermo Rauch
e398000c0e
Implemented Polling#doClose
2012-01-03 12:59:07 -08:00
Guillermo Rauch
397ce64e80
Implemented Polling#write.
2012-01-03 12:58:46 -08:00
Guillermo Rauch
144ae3ef54
Fixed docs
2012-01-03 12:58:34 -08:00
Guillermo Rauch
c1316e0a52
Implemented Polling#send
2012-01-03 12:58:16 -08:00
Guillermo Rauch
3875089c3b
Fixed docs
2012-01-03 12:58:07 -08:00
Guillermo Rauch
d8194a5cf0
Implemented Polling#flush
2012-01-03 12:57:49 -08:00
Guillermo Rauch
8f837a5720
Refactored Polling#onData
2012-01-03 12:55:09 -08:00
Guillermo Rauch
00291ee50a
Fixed docs
2012-01-03 12:54:58 -08:00
Guillermo Rauch
4c02b31425
Implemented onDataRequest.
2012-01-03 12:52:30 -08:00
Guillermo Rauch
a9ecdcf771
Fixed docs
2012-01-03 12:52:17 -08:00
Guillermo Rauch
fc70102f79
Added poll request handler
2012-01-03 10:43:47 -08:00
Guillermo Rauch
93d32fa925
Fixed docs
2012-01-03 10:43:08 -08:00
Guillermo Rauch
d02023212d
Override onRequest to handle both GET and POST requests.
2012-01-03 10:42:48 -08:00
Guillermo Rauch
34d4892b1b
Fixed style
2012-01-03 10:42:40 -08:00
Guillermo Rauch
df82cbad1c
Regularized Polling constructor. Added debug scope
2012-01-03 10:41:58 -08:00
Guillermo Rauch
23e434f5b4
Refactored transports/index
...
- Transports now expose `upgradesTo`
- Moved polimorphic polling constructor here
2012-01-03 10:41:15 -08:00
Guillermo Rauch
b7a9919ec5
Fixed style
2012-01-03 10:41:01 -08:00
Guillermo Rauch
e266c4a718
Refactored Transport
2012-01-03 10:40:17 -08:00
Guillermo Rauch
cf0550ac67
Added defenses for onClose and close.
2012-01-03 10:39:48 -08:00
Guillermo Rauch
cce20d5e16
Refactored rasons for close
2012-01-03 10:39:29 -08:00
Guillermo Rauch
10cfe1bf86
Refactored clearTransport
2012-01-03 10:39:07 -08:00
Guillermo Rauch
8407a97aac
Refactored setTransport.
2012-01-03 10:38:40 -08:00
Guillermo Rauch
a9bcf6be09
Fixed ping logic
2012-01-03 10:38:01 -08:00
Guillermo Rauch
f25a69e363
Added debug line
2012-01-03 10:37:50 -08:00
Guillermo Rauch
fdcaf361aa
Added defense for packets after socket is closed
2012-01-03 10:37:23 -08:00
Guillermo Rauch
f66bd79eb4
Fixed handshake packet
2012-01-03 10:37:10 -08:00
Guillermo Rauch
61ec2d92dc
Keep track of request that originated socket.
2012-01-03 10:36:49 -08:00
Guillermo Rauch
817ddee41f
Initialized debug scope for Socket
2012-01-03 10:36:30 -08:00
Guillermo Rauch
8e9d163666
Refactored onWebSocket to consider the possibility of a websocket handshake.
2012-01-03 10:36:10 -08:00
Guillermo Rauch
b58a5e830b
Refactored handshake to allow ws and non-ws handshakes.
2012-01-03 10:35:33 -08:00
Guillermo Rauch
fa7bea93b5
Refactored handleRequest
2012-01-03 10:35:17 -08:00
Guillermo Rauch
35fa0f76db
Added debug to handleRequest
2012-01-03 10:34:52 -08:00
Guillermo Rauch
5fcac6e437
Added debug to Server#close
2012-01-03 10:34:30 -08:00
Guillermo Rauch
2d53e5fd85
Implemented Server#close
2012-01-03 10:34:08 -08:00
Guillermo Rauch
c801ff13d5
Make sure to not include non-digits in generated id.
2012-01-03 10:33:13 -08:00
Guillermo Rauch
12ccb6fcf1
Fixed Server#verify
2012-01-03 10:32:49 -08:00
Guillermo Rauch
ba3a85cd31
Simplified transport upgrade possibilities computation
2012-01-03 10:32:25 -08:00
Guillermo Rauch
2819a0c4cf
Make Server inherit from EventEmitter
2012-01-03 10:32:06 -08:00
Guillermo Rauch
9c5384f44b
Do not cache transport names to allow modification of object.
...
Added clientsCount property
2012-01-03 10:31:29 -08:00
Guillermo Rauch
fb121a9474
Added debug for debugging
2012-01-03 10:31:01 -08:00
Guillermo Rauch
5e0dd8bb35
Upon http server close, close all engine open clients (attach)
2012-01-03 10:30:23 -08:00
Guillermo Rauch
d7c1ff51c3
Documented client close event arguemnts.
2012-01-03 10:30:05 -08:00
Guillermo Rauch
3d97e1c45e
Documented Socket properties.
2012-01-03 10:29:41 -08:00
Guillermo Rauch
32f2d57f7d
Documented close event arguments
2012-01-03 10:29:27 -08:00
Guillermo Rauch
2d13524c6c
Documented public Server methods
2012-01-03 10:29:13 -08:00
Guillermo Rauch
ff50d1d19f
Added Server#clientsCount property
2012-01-03 10:28:49 -08:00
Guillermo Rauch
8a61a1c6b0
Added engine#Transport and engine#transports as public API
2012-01-03 10:28:28 -08:00
Guillermo Rauch
ebe3eb6052
Removed engine refernece passed to transport constructor.
2011-12-31 13:11:55 -05:00
Guillermo Rauch
d81aa11f8b
Removed duplicate Socket#open
2011-12-31 13:11:12 -05:00
Guillermo Rauch
3d3d4218e9
Fixed websocket client dependency.
2011-12-31 09:21:13 -05:00
Guillermo Rauch
74c64863aa
Added xmlhttprequest/ws dependencies.
2011-12-31 09:21:00 -05:00
Guillermo Rauch
efa41a245c
Fixed; make sure to send cookies in cross domain requests.
2011-12-30 16:10:37 -05:00
Guillermo Rauch
66eb07a90b
Fixed XDomainRequest type check.
2011-12-30 16:10:25 -05:00
Guillermo Rauch
7d28a1e362
Added socket interface.
2011-12-29 13:14:39 -05:00
Guillermo Rauch
3a980d9e67
Added Server (manager) interface.
2011-12-29 13:13:38 -05:00
Guillermo Rauch
150f848480
Fixed style
2011-12-29 13:13:22 -05:00
Guillermo Rauch
c0286cea4e
Expose eio and superagent to all tests.
2011-12-29 13:12:57 -05:00
Guillermo Rauch
9abbf2d175
Added basic server tests.
2011-12-29 13:12:40 -05:00
Guillermo Rauch
c6966b6351
Added main engine.io tests.
2011-12-29 12:59:07 -05:00
Guillermo Rauch
7f764a7c73
Added raw http socket handling for flashsocket
2011-12-29 12:58:42 -05:00
Guillermo Rauch
fc65b94d84
refactored websocket upgrade handler in attach.
2011-12-29 12:58:21 -05:00
Guillermo Rauch
f27e66604f
Fixed restoration of old listeners when attaching engine.io
2011-12-29 12:49:46 -05:00
Guillermo Rauch
7418142c0d
Fixed style
2011-12-29 12:48:49 -05:00
Guillermo Rauch
c581ccad54
Fixed type checking of arguments for engine#listen
2011-12-29 12:48:26 -05:00
Guillermo Rauch
49f9adc208
Revamped exports
2011-12-29 12:47:18 -05:00
Guillermo Rauch
fe9316e6e9
Export protocol revision from main file
2011-12-29 12:44:55 -05:00
Guillermo Rauch
55a462a72a
Added http dependency to engine.io
2011-12-29 12:44:23 -05:00
Guillermo Rauch
9274895848
Naming change: transports emit packets not messages.
2011-12-24 15:09:59 -05:00
Guillermo Rauch
7afe6a34e2
Added pointer to main file in package.json.
2011-12-23 22:15:09 -08:00
Guillermo Rauch
d4521a3ea4
Added pointer to main file in package.json.
2011-12-23 22:14:41 -08:00
Guillermo Rauch
8a677a9d87
Simply simplifying
2011-12-23 13:42:57 -08:00
Guillermo Rauch
6f115fa078
Fixed require in README
2011-12-23 13:38:35 -08:00
Guillermo Rauch
c9d6a15595
Fixed handleRequest usage
2011-12-23 13:28:38 -08:00
Guillermo Rauch
109ab1b91a
Added superagent - required for tests
2011-12-23 13:28:20 -08:00
Guillermo Rauch
fd2eee9849
Removed should mocha require
2011-12-23 13:28:05 -08:00
Guillermo Rauch
a46aa7c094
Added basic engine tests
2011-12-23 13:27:52 -08:00
Guillermo Rauch
f0590b1500
Added tests for qs#util
2011-12-23 12:03:10 -08:00
Guillermo Rauch
f3306ea1a1
Added util#qs
2011-12-23 12:03:01 -08:00
Guillermo Rauch
4d0d06f771
Cleaned up WS#uri
2011-12-23 12:02:31 -08:00
Guillermo Rauch
89f017579d
Added Polling#uri
2011-12-23 11:55:09 -08:00
Guillermo Rauch
f28b6c84aa
Fixed Polling#write
2011-12-23 11:54:52 -08:00
Guillermo Rauch
b1e46b0ce9
Fixed writeMany
2011-12-23 11:54:22 -08:00
Guillermo Rauch
238d10645a
Changing write signature
2011-12-23 11:53:29 -08:00
Guillermo Rauch
648cb5b6e3
Fixed comment
2011-12-23 11:53:13 -08:00
Guillermo Rauch
1727950a72
Changing write signature
2011-12-23 11:53:00 -08:00
Guillermo Rauch
884400e8d9
README Client API adjustment.
2011-12-23 11:26:15 -08:00
Guillermo Rauch
973ff5cba1
Added probe qs component to probes.
2011-12-23 11:21:53 -08:00
Guillermo Rauch
eebd224afe
Added extra query parameters support to createTransport
2011-12-23 11:21:31 -08:00
Guillermo Rauch
e9d8de6e89
Changed query option type.
2011-12-23 11:20:44 -08:00
Guillermo Rauch
aade919c85
Deleted logger.
2011-12-22 21:18:58 -08:00
Guillermo Rauch
3f81f1fc57
Leverage the client parser.
...
In the same fashion that websocket.io leverages @einaros excellent
`ws` client module.
2011-12-22 18:58:52 -08:00
Guillermo Rauch
152fdd9864
Fixed transport initialization.
2011-12-22 15:46:40 -08:00
Guillermo Rauch
242c4b0e84
Make tests depende on the engine.io-dev build.
2011-12-22 15:24:17 -08:00
Guillermo Rauch
5d862d846d
Implemented JSONP#write.
2011-12-22 15:23:56 -08:00
Guillermo Rauch
4b7e0457b2
Removed query util dependency.
2011-12-22 15:23:38 -08:00
Guillermo Rauch
013220a26c
Detach form (POST) upon close in JSONP
2011-12-22 15:22:59 -08:00
Guillermo Rauch
56fc7788e4
Corrected global.
2011-12-22 15:16:52 -08:00
Guillermo Rauch
6e335dab42
Reorganized locals in JSONp transport.
2011-12-22 15:16:24 -08:00
Guillermo Rauch
8a43545557
Keep reference to sendXHR. Removed unneeded self
2011-12-22 15:15:25 -08:00
Guillermo Rauch
009715bbcb
Instrumented all remaining Socket methods.
2011-12-22 15:15:06 -08:00
Guillermo Rauch
10e8f1be8b
Instrumented onMessage and removed unnecessary open handler.
2011-12-22 15:14:15 -08:00
Guillermo Rauch
67f6c4c917
Added missing flush call onOpen.
2011-12-22 15:14:04 -08:00
Guillermo Rauch
dc66e2cdce
Added instrumentation to Socket#probe
2011-12-22 15:13:50 -08:00
Guillermo Rauch
6b6f8486cb
Listen on open Transport event.
2011-12-22 15:13:26 -08:00
Guillermo Rauch
24c73a4892
Sanity check: clear all events from previous transport in setTransport.
2011-12-22 15:12:58 -08:00
Guillermo Rauch
d791115264
Added instrumentation to createTransport.
2011-12-22 15:12:41 -08:00
Guillermo Rauch
eaff499fc8
Expose jsonp callbacks.
2011-12-22 15:12:17 -08:00
Guillermo Rauch
a9b3b9638f
Fixed typo
2011-12-21 18:30:00 -08:00
Guillermo Rauch
40e7c626f0
Rename
2011-12-21 18:29:40 -08:00
Guillermo Rauch
70e64eafa7
Added expect.js
2011-12-21 18:02:23 -08:00
Guillermo Rauch
0d339536e3
Added common test files
2011-12-21 18:02:10 -08:00
Guillermo Rauch
3782162999
Changed target output ifle for build-dev
2011-12-21 17:52:58 -08:00
Guillermo Rauch
82dde3e855
Added build-dev task with instrumentation
2011-12-21 17:47:17 -08:00
Guillermo Rauch
7904c477ef
Changed test title
2011-12-21 17:40:56 -08:00
Guillermo Rauch
dd72cdacb0
Added parser tests.
2011-12-21 14:54:25 -08:00
Guillermo Rauch
464d25107f
Added browser test support files
2011-12-21 14:54:16 -08:00
Guillermo Rauch
b732b8b8ae
Added test-browser task
2011-12-21 14:48:36 -08:00
Guillermo Rauch
46008bd6ef
Added serve to package.json
2011-12-21 14:48:20 -08:00
Guillermo Rauch
95176a08be
Potential speedup?
2011-12-21 14:41:58 -08:00
Guillermo Rauch
103f851120
Refactored/reposition build make task.
2011-12-21 14:41:44 -08:00
Guillermo Rauch
9c0de9b43d
Renamed main test.
2011-12-21 14:34:28 -08:00
Guillermo Rauch
9fceb20d8e
Allow for no packet payloads and fixed packet decoding within payloads.
2011-12-21 14:13:21 -08:00
Guillermo Rauch
e6260afe2e
Disallow empty payload messages.
2011-12-21 14:12:53 -08:00
Guillermo Rauch
fc6273f8a0
Allow for empty payloads. Only for consistency, we never should send empty payloads.
2011-12-21 14:12:18 -08:00
Guillermo Rauch
736d509963
Allow for empty data (different from _no_ data).
2011-12-21 14:11:54 -08:00
Guillermo Rauch
94d305954c
Avoid potentially slow error lookups and make sure you can't use constructor
...
as a packet type.
2011-12-21 13:29:24 -08:00
Guillermo Rauch
0531a2c9fa
Improved packet decoding speed and reliability.
2011-12-21 13:28:05 -08:00
Guillermo Rauch
484ec34cc1
Cast single packet type indexes to string.
2011-12-21 13:24:36 -08:00
Guillermo Rauch
5e3a2b368f
Fixed; encodePacket accepts a packet object now.
2011-12-21 11:09:24 -08:00
Guillermo Rauch
25773618fa
Payload parser now operates strictly on packets.
2011-12-21 11:03:52 -08:00
Guillermo Rauch
7e635ebf49
Added comment
2011-12-21 10:59:41 -08:00
Guillermo Rauch
fb73162d25
Fixed decodePayload to assume decoded packets.
2011-12-21 10:59:11 -08:00
Guillermo Rauch
32aeda0dfa
Fixed doClose JSONP override.
2011-12-21 10:58:29 -08:00
Guillermo Rauch
24d69ebb00
Fixed xhr polling doClose override.
2011-12-21 10:55:06 -08:00
Guillermo Rauch
bdc44b33b9
Make Socket inherit from EventEmitter.
2011-12-21 10:54:42 -08:00
Guillermo Rauch
69f6edb67a
Cleared up exports.
2011-12-21 10:54:25 -08:00
Guillermo Rauch
44b95c30f5
Added missing dependencies to Socket and cleared exports.
2011-12-21 10:53:58 -08:00
Guillermo Rauch
d1c6fbdab6
Exposed EventEmitter, Transport and transports to eio.
2011-12-21 10:53:38 -08:00
Guillermo Rauch
ee7e362d68
Required parser in Transport.
2011-12-21 10:49:28 -08:00
Guillermo Rauch
976ecd4956
Renamed Socket#write > Socket#sendPacket
2011-12-21 10:48:45 -08:00
Guillermo Rauch
cb573c51e5
Moved packets to the transport abstraction.
2011-12-21 10:44:32 -08:00
Guillermo Rauch
31d0108ced
Switched probe to ping/pong.
2011-12-21 10:43:01 -08:00
Guillermo Rauch
c2eb0aa112
Initialized buffer for Transport in constructor.
2011-12-21 10:42:05 -08:00
Guillermo Rauch
3f78878d30
Initialized buffer for Socket in constructor.
...
Initialized buffer for Socket in constructor.
2011-12-21 10:41:01 -08:00
Guillermo Rauch
2113a27fca
Added common requirements for tests.
...
This also adds a layer of compatibility for browser tests.
2011-12-20 22:24:47 -08:00
Guillermo Rauch
1caabfcd9e
Fixed util tests.
2011-12-20 22:24:15 -08:00
Guillermo Rauch
b7c703998e
Some more tests
2011-12-20 22:24:05 -08:00
Guillermo Rauch
b18d686c0c
Added expect.js/mocha to devDependencies.
2011-12-20 22:23:45 -08:00
Guillermo Rauch
0c894cf0d2
Removed old should - using expect.js
2011-12-20 22:23:29 -08:00
Guillermo Rauch
60983c31d0
Finished decodePayload.
2011-12-20 22:23:06 -08:00
Guillermo Rauch
0a68dd160d
Drastically simplified payload encoding.
2011-12-20 21:42:11 -08:00
Guillermo Rauch
917aae23c8
Added documentation for payload encode SPEC.
2011-12-20 21:35:51 -08:00
Guillermo Rauch
064d1872a5
Added error handling to packet decoding.
2011-12-20 21:35:34 -08:00
Guillermo Rauch
cefb25f3a9
Improved packet decoding.
2011-12-20 21:26:19 -08:00
Guillermo Rauch
ab949be7ad
Added support for stringification of data objects.
2011-12-20 21:24:33 -08:00
Guillermo Rauch
89ea5370eb
Added description of packet encoding for SPEC
2011-12-20 21:24:16 -08:00
Guillermo Rauch
2f12810778
Added pre-fabricated packet for parser errors.
2011-12-20 21:21:44 -08:00
Guillermo Rauch
ffc530613b
Clean up packet types.
2011-12-20 21:21:12 -08:00
Guillermo Rauch
8adea259c3
Added test Makefile tasks.
2011-12-20 09:20:18 -08:00
Guillermo Rauch
d86ab65a88
REnamed engine-client > engine.io-client.
2011-12-20 09:15:16 -08:00
Guillermo Rauch
b033cf26b8
Exposed util and parser.
2011-12-20 09:14:46 -08:00
Guillermo Rauch
8ff2edd79c
Merge pull request #689 from bwillard/master
...
Improve performance of parser.decodePayload
2011-12-16 14:04:12 -08:00
Brian Willard
ebd25676ee
combine two substr calls into one in decodePayload to improve performance
2011-12-16 15:31:48 -06:00
Guillermo Rauch
5b4b368912
Indicate that there's 3 interfaces to implementing a Server.
2011-12-15 11:21:43 -08:00
Guillermo Rauch
18a735c53c
README improvements.
2011-12-15 11:08:39 -08:00
Guillermo Rauch
0234dbf94e
Adapted package.json name, bumped ws.io
2011-12-15 10:29:55 -08:00
Guillermo Rauch
499e288ed6
Fixed WS writeMany method.
2011-12-15 10:19:36 -08:00
Guillermo Rauch
c1a7f91dc4
Fixed JSON transport require.
2011-12-15 10:19:17 -08:00
Guillermo Rauch
c149684f7f
Fixed XHR references
2011-12-15 10:16:59 -08:00
Guillermo Rauch
1ed582b3e0
Fixed try/catch block
2011-12-15 10:14:39 -08:00
Guillermo Rauch
3705e60537
Fixed typo
2011-12-15 10:14:16 -08:00
Guillermo Rauch
56b6597e49
Adapted README to new global.
2011-12-15 10:11:44 -08:00
Guillermo Rauch
7c28a36ef4
Fixed undefined util.
2011-12-15 10:11:23 -08:00
Guillermo Rauch
d9d529cb17
Merge pull request #683 from jherdman/documentation-fix
...
Minor documentation fix
2011-12-12 11:02:24 -08:00
James Herdman
b37666a8e8
Minor documentation fix
2011-12-12 11:10:25 -05:00
Guillermo Rauch
cc2270bb90
Merge pull request #622 from mattrobenolt/master
...
Location mismatch in Safari behind proxy
2011-12-05 14:04:57 -08:00
Matt Robenolt
36fc7b07ea
Minor. Conform to style of other files.
2011-12-05 16:59:15 -05:00
Matt Robenolt
8eab3a87e7
Switching setting to 'match origin protocol'
2011-12-05 16:58:00 -05:00
Guillermo Rauch
4d45b70e37
Fixed package.json name
2011-12-04 19:23:56 -08:00
Guillermo Rauch
425366528f
Bumped mocha
2011-12-04 19:18:59 -08:00
Guillermo Rauch
c41baae1ac
Updated client side API in README
2011-12-03 20:40:18 -08:00
Guillermo Rauch
66312a56e8
Fixed engine.io-client dependency.
2011-12-03 20:19:17 -08:00
Guillermo Rauch
de45d8d8f6
Fixed README for new client global.
2011-12-03 20:13:34 -08:00
Guillermo Rauch
246ddbb0b0
Added build make task.
2011-12-03 18:11:24 -08:00
Guillermo Rauch
74ba86a686
Added browserbuild devDependency.
2011-12-03 18:11:11 -08:00
Guillermo Rauch
6c6630e3d3
Fixed README.
2011-12-03 14:08:07 -08:00
Guillermo Rauch
0ac8ac72ac
Fixed jsdoc block.
2011-12-03 14:06:53 -08:00
Guillermo Rauch
1fc5d132b6
Change constructor name from Engine to Socket.
2011-12-03 14:03:00 -08:00
Guillermo Rauch
26d80e2fe8
Renamed global from io to eio to avoid confusion.
...
Start renaming constructor `Engine` to `Socket`
2011-12-03 14:02:05 -08:00
Guillermo Rauch
c7ecd93295
Added util tests.
2011-11-27 11:31:00 -08:00
Guillermo Rauch
7489fa4378
Added parseUri to util, cleaned up.
2011-11-27 11:30:28 -08:00
Guillermo Rauch
edc76f322a
Added transport name to websocket
2011-11-27 11:30:12 -08:00
Guillermo Rauch
4c0e69e458
To close polling transports, we must write a message.
2011-11-27 11:29:43 -08:00
Guillermo Rauch
8dd5a6dbab
Also make sure close is triggered.
2011-11-27 11:29:16 -08:00
Guillermo Rauch
2bb5d0b00d
Do peaking of messages in polling transport:
...
- if the transport readyState is `opening`, expect a PONG packet
- if we get close, abort ongoing requests
2011-11-27 11:28:03 -08:00
Guillermo Rauch
bff32b2463
Write a ping packet after opening polling.
2011-11-27 11:27:51 -08:00
Guillermo Rauch
889797db90
Style cleanup
2011-11-27 11:27:41 -08:00
Guillermo Rauch
60e8782dac
Added name to polling XHR, cleaned up.
2011-11-27 11:27:20 -08:00
Guillermo Rauch
d1d691fdff
Added jsonp transport name
2011-11-27 11:27:07 -08:00
Guillermo Rauch
9ad1f7f158
Simplified script loader.
2011-11-27 11:26:52 -08:00
Guillermo Rauch
1286e41301
Fixed last commit
2011-11-27 11:26:27 -08:00
Guillermo Rauch
6360ebd3cc
Proxy web-socket-js debugging to our own
2011-11-27 11:25:33 -08:00
Guillermo Rauch
73263b98bc
Added transport name to proto.
2011-11-27 11:25:22 -08:00
Guillermo Rauch
5a2580ec7f
Added reusable noop
2011-11-27 11:25:15 -08:00
Guillermo Rauch
6c0a714641
Removed data event and do parsing in transport.
...
Unfortunately, it makes our API less clean to depend on specific
parsing done by the Transport when clearly it doesnt belong there.
The problem is that XHR polling *needs* specific messages to compensate
for lack of features such as the ability to signal a connection close.
Since we're already doing peaking of message types in the polling transport,
we want to avoid the performance penalty of double parsing at the polling
level and later at the Engine level, and we sacrifice a little bit of
API purity.
2011-11-27 11:23:47 -08:00
Guillermo Rauch
64f371477b
Improved error message
2011-11-27 10:38:17 -08:00
Guillermo Rauch
5435b043ff
Make sure Transport#error emits a transport error
2011-11-27 10:37:54 -08:00
Guillermo Rauch
f77420c317
Gave up, we need an Engine reference from transport.
2011-11-27 10:34:16 -08:00
Guillermo Rauch
bd0601a66e
Improved message types
...
- heartbeat is now a ping/pong
- probing is now a ping/pong
2011-11-27 10:29:46 -08:00
Guillermo Rauch
bd04f2771a
Added WebSocket API compatibility to EventEmitter.
2011-11-27 10:29:30 -08:00
Guillermo Rauch
ecb288598e
Added onclose handler.
2011-11-27 10:29:08 -08:00
Guillermo Rauch
d9f8fa494f
Improved close.
2011-11-27 10:28:59 -08:00
Guillermo Rauch
60a52e209d
Abstracted buffer flushing logic into its own fn.
2011-11-27 10:28:20 -08:00
Guillermo Rauch
c00744c78f
Added onMessage handlers.
2011-11-27 10:28:06 -08:00
Guillermo Rauch
fc9d9f25c5
Handle onopen property manually.
2011-11-27 10:23:47 -08:00
Guillermo Rauch
0b27f85758
Simplified setTransport.
2011-11-27 10:23:31 -08:00
Guillermo Rauch
153d59aa21
Simplified init mechanism.
2011-11-27 10:23:14 -08:00
Guillermo Rauch
0ae7803900
Added createTransport method.
2011-11-27 10:22:50 -08:00
Guillermo Rauch
e96e0252ff
Handle ws/ws URIs.
2011-11-27 10:22:19 -08:00
Guillermo Rauch
f5aacb7347
Expose utils locally.
2011-11-27 10:21:55 -08:00
Guillermo Rauch
94d513c85a
Revert "Fixes leaking Redis subscriptions for #663 . The local flag was not getting passed through onClientDisconnect()."
...
This reverts commit d5ab46d662 .
2011-11-26 15:14:26 -08:00
Guillermo Rauch
70abe7aada
Revert "Handle leaked dispatch:[id] subscription."
...
This reverts commit c110036f75 .
2011-11-26 15:14:13 -08:00
Guillermo Rauch
9a8c1c4ae7
Merge pull request #667 from dshaw/patch/redis-disconnect
...
Patch/redis disconnect
2011-11-26 14:03:01 -08:00
Daniel Shaw
c110036f75
Handle leaked dispatch:[id] subscription.
2011-11-26 12:14:39 -08:00
Daniel Shaw
d5ab46d662
Fixes leaking Redis subscriptions for #663 . The local flag was not getting passed through onClientDisconnect().
2011-11-26 11:22:43 -08:00
Guillermo Rauch
eeaca6d9ac
Merge pull request #662 from 3rd-Eden/leak
...
prevent memory leaking on uncompleted requests & add max post size limit...
2011-11-23 14:04:42 -08:00
Arnout Kazemier
a7f45fe6c0
prevent memory leaking on uncompleted requests & add max post size limitation
2011-11-23 22:28:38 +01:00
Guillermo Rauch
b59fd61d56
Merge pull request #661 from 3rd-Eden/travis
...
Fix for testcase
2011-11-22 14:52:36 -08:00
Arnout Kazemier
7948619609
Fix for testcase
2011-11-22 23:49:58 +01:00
Guillermo Rauch
6e8166d039
Merge pull request #660 from 3rd-Eden/travis
...
Assertvarnish
2011-11-22 14:43:21 -08:00
Arnout Kazemier
8fc3e37ca1
Merge branch 'master' of github.com:LearnBoost/socket.io into travis
2011-11-22 23:41:54 +01:00
Guillermo Rauch
17d0f4d489
Merge pull request #630 from gavinuhma/auth-fix
...
set Access-Control-Allow-Origin header to origin to enable withCredentials
2011-11-22 14:38:30 -08:00
Gavin Uhma
61e7e8955a
Merge branch 'master' of git://github.com/LearnBoost/socket.io into auth-fix
2011-11-22 18:03:48 -04:00
Gavin Uhma
4c17f7f83b
Set Access-Control-Allow-Credentials true, regardless of cookie
2011-11-22 18:03:25 -04:00
Arnout Kazemier
0f29d786b2
Remove assertvarnish from package as it breaks on 0.6
2011-11-22 21:18:15 +01:00
Guillermo Rauch
5ee6b43921
Merge pull request #659 from 3rd-Eden/travis
...
Added travis
2011-11-22 11:47:49 -08:00
Arnout Kazemier
f211f78019
Correct irc channel
2011-11-22 20:46:01 +01:00
Arnout Kazemier
eeb2a73f16
Added travis
2011-11-22 20:44:19 +01:00
Guillermo Rauch
21b75fa15e
Initial import
2011-11-18 10:08:39 -08:00
Guillermo Rauch
3bbf02b11b
Initial import
2011-11-18 10:08:08 -08:00
Guillermo Rauch
3887633e35
Merge pull request #440 from dylang/master
...
Updated package.json to reflect new repo location
2011-11-16 13:05:31 -08:00
Guillermo Rauch
db8cf7673b
Merge pull request #634 from christopherobin/master
...
Fixing issue #432
2011-11-16 13:05:18 -08:00
Guillermo Rauch
dfb852151b
Merge pull request #570 from 3rd-Eden/logger
...
Use tty to detect if we should add colors or not by default.
2011-11-16 13:04:51 -08:00
Guillermo Rauch
7b6c85030e
Merge pull request #643 from einaros/master
...
Bug fixes, and for some reason a heap of whitespace cleanups
2011-11-14 09:09:58 -08:00
einaros
2d5dcc1a8a
whitespace cleanup
2011-11-14 17:57:34 +01:00
einaros
2b28c46400
added proper return after reserved field error
2011-11-14 17:50:57 +01:00
einaros
27714d7286
fixes manager.js failure to close connection after transport error has happened
2011-11-14 17:40:16 +01:00
einaros
ffef944dd5
added implicit port 80 for origin checks. fixes #638
2011-11-14 09:45:44 +01:00
Christophe Robin
f4b434a6a5
Fixed bug #432 in 0.8.7
2011-11-11 11:06:56 +09:00
Gavin Uhma
e4a9342e8b
set Access-Control-Allow-Origin header to origin to enable withCredentials
2011-11-08 18:22:30 -04:00
Guillermo Rauch
3ed6b79781
Release 0.8.7
2011-11-05 13:50:53 -07:00
Matt Robenolt
6f2270add6
Adding configuration variable matchOriginProtocol
...
matchOriginProtocol is meant to be used when running socket.io behind a
proxy. matchOriginProtocol should be set to true when you want the
location handshake to match the protocol of the origin. This fixes
issues with terminating the SSL in front of Node and forcing location
to think it's wss instead of ws.
2011-11-03 15:34:24 -04:00
Matt Robenolt
220f8d5bf5
Fixes location mismatch error in Safari.
2011-11-03 01:35:18 -03:00
Guillermo Rauch
946418e70e
Merge pull request #621 from einaros/master
...
Deals with a memleak in namespaces, and silently drops malformed websocket connections
2011-11-02 15:11:21 -07:00
Guillermo Rauch
2bb60ac40b
Merge pull request #616 from thekiur/master
...
This patch will prevent some random memory leaking.
2011-11-02 11:25:19 -07:00
TJ Holowaychuk
e20777d21d
Merge pull request #617 from sutiam/patch-2
...
add semicolon
2011-11-01 17:33:08 -07:00
sutiam
311ef7e7e7
add semicolon
2011-11-01 17:26:33 -07:00
thekiur
9e92075cbb
Removed useless object: closedA, probably fixed a memory leak
2011-11-01 23:31:58 +02:00
einaros
63043b3d5d
fixes leak #608
2011-10-31 22:47:25 +01:00
einaros
92a3cce272
circumvents #602 .. although only a horribly malformed websocket connection could potentially cause this
2011-10-28 14:04:55 +02:00
Guillermo Rauch
8339c96e84
Merge pull request #596 from einaros/nodenext
...
Node v0.5+ compatibility
2011-10-28 01:30:18 -07:00
einaros
a125fcb1a4
further updates to chat example dependencies
2011-10-28 10:18:47 +02:00
einaros
97f634f18f
further updates to irc example dependencies
2011-10-28 10:18:08 +02:00
einaros
82266cf202
updated stylus dependency in examples to node 0.5+ compatible version
2011-10-28 10:14:26 +02:00
einaros
be94641651
fixed irc example for nodenext
2011-10-28 10:12:52 +02:00
einaros
703d1d778e
fixed chat example for nodenext
2011-10-28 10:10:45 +02:00
einaros
70c61fa84d
Merge remote branch 'upstream/master' into nodenext
2011-10-28 10:10:26 +02:00
Guillermo Rauch
abd0326b06
Release 0.8.6
2011-10-27 20:10:18 +09:00
Guillermo Rauch
3e0b4488f8
Merge pull request #599 from 3rd-Eden/jsonptests
...
The server expects JSON.stringify'd packages
2011-10-27 02:44:50 -07:00
Arnout Kazemier
86908c3b4d
The server expects JSON.stringify'd packages
2011-10-27 09:10:27 +02:00
Guillermo Rauch
5491c2798e
Merge branch 'master' of github.com:LearnBoost/socket.io
2011-10-27 12:54:03 +08:00
Guillermo Rauch
a9def6e209
Merge pull request #598 from 3rd-Eden/utf8
...
charset=UTF8
2011-10-26 21:53:46 -07:00
Guillermo Rauch
c7a2dc45c8
Merge pull request #591 from einaros/master
...
Resubmission of: Minor potential issues corrected in websocket transports
2011-10-26 21:51:52 -07:00
Guillermo Rauch
cf76b13145
Added JSON decoding on jsonp-polling transport.
...
This is due to browser's buggy handling of outgoing \n
2011-10-27 12:45:19 +08:00
Arnout Kazemier
db2a17f279
charset=UTF8
2011-10-26 11:48:41 +02:00
einaros
3a07cc29bd
added return for clarity
2011-10-26 08:21:22 +02:00
einaros
89a5134b66
corrected whitespace
2011-10-25 23:46:36 +02:00
einaros
6ca42fdc8f
well thats five minutes of my life ill never get back. thanks.
2011-10-25 22:53:37 +02:00
einaros
a9f81a59c2
ensure backwards compatibility
2011-10-25 22:12:55 +02:00
einaros
8a90bf5234
re-enabled flashsocket tests, after bugfixes in flashsocket transport
2011-10-25 21:26:57 +02:00
einaros
357a9cb870
fixed race condition and scoping bug
2011-10-25 21:25:44 +02:00
einaros
8253ed573a
ignore exception on port change
2011-10-25 19:47:39 +02:00
einaros
3f55d82bf7
added node v4 client closing compatibility
2011-10-25 13:30:06 +02:00
einaros
08467d4e12
temporarily disabled flash policy server tests
2011-10-25 13:19:39 +02:00
einaros
cb70f7873f
moved default error handler
2011-10-25 13:18:40 +02:00
einaros
57b0ce73c7
resolve race condition
2011-10-25 13:09:04 +02:00
einaros
25f97431d4
set nodelay
2011-10-25 13:08:49 +02:00
einaros
f931af5758
fixed xhr-polling tests, in a way similar to jsonp
2011-10-25 10:45:20 +02:00
einaros
c88ea9ed61
fixed websocket testing, removed seemingly irrelevant tests
2011-10-25 10:42:18 +02:00
einaros
2bdee1b28f
use new agent
2011-10-25 10:41:58 +02:00
einaros
a1f0b6c361
manager tests now pass properly
2011-10-24 21:26:15 +02:00
einaros
c1e64b90a4
added warning message from default error event handler
2011-10-23 23:03:23 +02:00
einaros
79c3d84a98
circumvent race condition due to changed http bits in 0.5
2011-10-23 14:21:22 +02:00
einaros
f6c376d087
another stab at proper 0.5 agent socket closing
2011-10-23 14:20:21 +02:00
einaros
bc15077ecc
further checks to not close sockets that aren't there
2011-10-23 14:14:48 +02:00
einaros
28bf55e572
patched a few compatibility issues in node-websocket-server
2011-10-23 00:43:07 +02:00
einaros
f213d69e17
check that there's actually a socket to close
2011-10-22 14:39:59 +02:00
einaros
aa6f228ccf
updated to use NODE_PATH rather than old expresso include argument
2011-10-22 14:39:33 +02:00
einaros
553b9e9d68
updated test to work with 0.5
2011-10-22 13:30:30 +02:00
einaros
ec6e43d7ee
updated expresso dep
2011-10-22 13:30:12 +02:00
einaros
48140cf8a0
node 0.5 way of closing agent sockets
2011-10-22 13:29:57 +02:00
einaros
796bc9e95b
capture error emitted by the server, which happens a lot with node 0.5+
2011-10-22 13:28:54 +02:00
einaros
67495ad8a9
case-insensitive match for websocket upgrade, in all websocket transports
2011-10-22 10:21:10 +02:00
einaros
bee1efb11c
fixes #555
2011-10-22 10:16:48 +02:00
Guillermo Rauch
120924f626
Merge pull request #582 from chees/patch-1
...
Changed sockets.emit to io.sockets.emit to get the example working.
2011-10-16 10:00:20 -07:00
Christiaan
acdbacb25e
Changed sockets.emit to io.sockets.emit to get the example working.
2011-10-16 14:59:14 +03:00
TJ Holowaychuk
cde6a38218
Merge pull request #580 from 3rd-Eden/performance
...
Added a benchmark runner + profile option
2011-10-15 12:12:14 -07:00
Guillermo Rauch
e69c185e17
Merge pull request #581 from dshaw/patch/520
...
Fixes #520 . Updates to latest node_redis.
2011-10-15 11:47:41 -07:00
Daniel Shaw
8cab86af1c
Fixes #520 . Updates to latest node_redis.
2011-10-15 11:43:48 -07:00
Arnout Kazemier
00557f663a
Added error and heartbeat decoding
2011-10-15 15:30:23 +02:00
Arnout Kazemier
54c22aea96
Added a benchmark runner + profile option
2011-10-15 15:10:35 +02:00
Guillermo Rauch
a9929c916f
Merge pull request #578 from 3rd-Eden/performance
...
Use benchmark.js instead, so we can benchmark 0.5.9
2011-10-13 13:42:19 -07:00
Arnout Kazemier
1d66b6b5da
Some tiny optimizations
2011-10-13 22:31:52 +02:00
Arnout Kazemier
a75670c1c2
Use benchmark.js instead, so we can benchmark 0.5.9
2011-10-13 21:00:59 +02:00
Guillermo Rauch
373c729e66
Merge pull request #573 from 3rd-Eden/performance
...
Parser performance boost
2011-10-12 15:10:19 -07:00
Arnout Kazemier
7800003c5e
Returned the switch for the decoder, optimized the switch for the encoder
2011-10-12 22:03:46 +02:00
Arnout Kazemier
b662f2e14e
Optimized the loop, so the most commen packets are checked first
2011-10-12 21:53:38 +02:00
Arnout Kazemier
709c172444
http://cl.ly/402t2C133B2a1P0g1K0h <--- before http://cl.ly/363W080c2j261l3A1m3y <--- after ;o
2011-10-12 21:44:09 +02:00
Tj Holowaychuk
6d5ffa0d33
remove vbench dev dep
...
so people dont need node-canvas
2011-10-11 21:38:31 -07:00
Tj Holowaychuk
f8c7ff2782
Added decode/encode benchmarks
2011-10-11 16:00:15 -07:00
Arnout Kazemier
d9049f69c1
Merge branch 'master' of github.com:LearnBoost/socket.io into logger
2011-10-11 20:01:05 +02:00
Arnout Kazemier
10ffbd59e9
Use tty to detect if we should add colors or not by default.
2011-10-11 20:00:30 +02:00
Guillermo Rauch
175fe8573b
Merge pull request #563 from 3rd-Eden/logger
...
Logger
2011-10-11 08:18:16 -07:00
Guillermo Rauch
0224e4ac5f
Merge pull request #569 from 3rd-Eden/blacklist
...
Blacklist events
2011-10-11 08:13:55 -07:00
Arnout Kazemier
ecd20b0e1f
Added support for blacklisting events that are emitted from the client side.
...
Currently it's possible for a client do .emit('disconnect') and this will trigger
the disconnect event on the server.. Which can lead to major issues.
We should black list that by default. You can override or add more events by adding
them to the `blacklist` setting
2011-10-11 10:40:22 +02:00
Arnout Kazemier
b8f6dc7810
Inital stab at blacklisting client side events
2011-10-11 09:53:26 +02:00
Guillermo Rauch
0339e745fd
Merge pull request #564 from 3rd-Eden/bug/538
...
fixes #538
2011-10-10 13:23:51 -07:00
Arnout Kazemier
b3740e9ab6
fixes #538
2011-10-10 21:52:16 +02:00
Arnout Kazemier
0b7ed64082
Fixed logging options, closes #540
2011-10-10 21:32:54 +02:00
Arnout Kazemier
07b84f4400
Added a test to ensure that etags do no mess up far future headers
2011-10-10 21:06:58 +02:00
Guillermo Rauch
59e4c3b46c
Merge pull request #562 from 3rd-Eden/static
...
Hardcore caching for pro's
2011-10-10 11:20:38 -07:00
Arnout Kazemier
0e3bbd0e16
Whoops
2011-10-10 20:02:37 +02:00
Arnout Kazemier
763fdd1c4e
Added more hardcore caching fixes #558
...
Added tests against it
Added vary header for gzip
2011-10-10 20:01:28 +02:00
Guillermo Rauch
61bd23f0f9
Merge pull request #561 from einaros/master
...
Proper websocket test fixes, after patching node-websocket-client
2011-10-09 01:33:13 -07:00
Arnout Kazemier
8107c1a1e2
Added support for HEAD requests, closes #557
2011-10-08 15:46:23 +02:00
Arnout Kazemier
fa5b518110
Merge branch 'master' of github.com:LearnBoost/socket.io into static
2011-10-08 15:42:21 +02:00
einaros
b3df2836e9
properly cleaned up async websocket / flashsocket tests, after patching node-websocket-client
2011-10-08 12:02:31 +02:00
einaros
08568ee49e
patched to properly shut down when a finishClose call is made during connection establishment
2011-10-08 12:01:46 +02:00
einaros
aba2d5e0ef
removed empty console.log
2011-10-08 12:00:55 +02:00
Guillermo Rauch
dfebed38ab
Release 0.8.5
2011-10-07 11:25:39 -07:00
Guillermo Rauch
51782fc5d7
Fixed websocket tests.
2011-10-07 11:07:33 -07:00
Guillermo Rauch
11f1a7c491
Merge pull request #347 from 3rd-Eden/socket.transport
...
Expose socket.transport
2011-10-07 10:07:05 -07:00
Arnout Kazemier
5573f7fcdf
First stab of adding Expires + cache control headers for #558
2011-10-05 20:16:20 +02:00
Guillermo Rauch
1d743cfc84
Merge branch 'master' of github.com:LearnBoost/socket.io
2011-10-04 21:21:31 -07:00
Guillermo Rauch
21c01558fd
Added tip [getify]
2011-10-04 21:21:20 -07:00
Guillermo Rauch
6d57445167
Fixed readme [getify]
2011-10-04 21:18:02 -07:00
Guillermo Rauch
52f6a5b124
Merge pull request #554 from einaros/master
...
Fixes issue #553 : Origin verification brought into the client
2011-10-02 10:59:41 -07:00
einaros
2c3c73f045
corrected origin header name in test
2011-10-02 16:37:14 +02:00
einaros
54fc513fc9
fixes #553 - (re)verify origin in websocket transport implementations
2011-10-02 16:34:09 +02:00
einaros
0b1e43cb87
added binary support to the hybi 07-12 parsers as well
2011-10-02 15:31:36 +02:00
einaros
c8dabb225c
added binary support to hybi-16 parser, refactored hybi tests somewhat
2011-10-02 15:19:17 +02:00
einaros
245dc12ade
added fixes from hybi-07-12 which also apply to 16
2011-10-02 00:09:21 +02:00
Guillermo Rauch
7a405232a5
Merge pull request #550 from einaros/master
...
HyBi-16 support, and a few bugfixes
2011-10-01 12:15:16 -07:00
einaros
00f7ca1d02
fixed incorrect space chars
2011-10-01 14:45:20 +02:00
einaros
f1cea7e788
Merge branch 'master' of github.com:einaros/socket.io
2011-10-01 14:42:07 +02:00
einaros
050fcf7a83
websocket draft HyBi-16 support
2011-10-01 14:39:27 +02:00
Guillermo Rauch
dfa350bea7
Revert "Expanded 'How to Use' in readme"
...
This reverts commit ed7cedd78f .
2011-09-26 13:27:52 -07:00
Guillermo Rauch
e5d5b99f0e
Merge pull request #539 from AlexChesser/alex.chesser
...
Expanded 'How to Use' in readme
2011-09-26 13:26:42 -07:00
Alex Chesser
ed7cedd78f
Expanded 'How to Use' in readme
2011-09-26 15:35:37 -04:00
einaros
a22eb70cfb
Merge remote branch 'upstream/master'
2011-09-26 10:21:09 +02:00
einaros
2a81b25a5b
fixed websocket continuation bugs
2011-09-26 10:14:19 +02:00
Guillermo Rauch
7db146df47
Merge pull request #457 from 3rd-Eden/ACAO
...
access-control-allow-origin
2011-09-20 15:04:59 -07:00
Guillermo Rauch
6182dfff39
Merge pull request #532 from einaros/master
...
Fixes issue 523, and (unreported?) issue where flashsocket identifies as websocket
2011-09-20 10:03:42 -07:00
einaros
1ccd8cea6b
Merge remote branch 'upstream/master'
2011-09-20 18:56:08 +02:00
einaros
f9ea04eb6b
redirect actual transport name (such as flashsocket), if present, to the websocket version being loaded
2011-09-20 18:53:04 +02:00
einaros
ab9a5a1578
added test to ensure that websocket still identifies as .. websocket
2011-09-20 18:51:36 +02:00
einaros
3364a73a97
added done() call to end test
2011-09-20 18:45:01 +02:00
einaros
d02a7f415b
added test for flashsocket name, to catch issues with various websocket versions
2011-09-20 18:41:06 +02:00
einaros
1874fd7c30
added transport option to websocket test client (for flashsocket testing)
2011-09-20 18:40:43 +02:00
einaros
3c4a04ea02
fixes #523 . private 'payload' method in transport used from manager.js, wasn't present in hybi parser
2011-09-20 17:56:32 +02:00
Guillermo Rauch
1468917743
Merge pull request #529 from dshaw/patch/redisstore
...
Fix RedisStore
2011-09-19 10:06:52 -07:00
Arnout Kazemier
6df152cc5d
Merge branch 'master' of github.com:LearnBoost/socket.io into ACAO
...
Conflicts:
lib/manager.js
2011-09-13 21:45:51 +02:00
Daniel Shaw
c6b3549b61
Minimal RedisClient configs.
2011-09-12 00:20:40 -07:00
Daniel Shaw
f80ab2aae8
Merge branch 'master' of https://github.com/LearnBoost/socket.io
2011-09-11 23:06:23 -07:00
Guillermo Rauch
b2f9f19d99
Merge pull request #391 from 3rd-Eden/static
...
Static
2011-09-07 09:39:30 -07:00
Guillermo Rauch
cb7304837c
Ensured parser#decodePayload doesn't choke.
...
This addresses the situation where malformed data is supplied to the parser.
Fixes #510
2011-09-07 08:31:46 -07:00
Guillermo Rauch
9e6f58fe27
Release 0.8.4
2011-09-06 07:48:14 -07:00
Guillermo Rauch
e3fb39da3d
Corrected comment; ( fixes #433 )
2011-09-03 14:33:00 -07:00
Guillermo Rauch
cc275813b5
Updated changelog
2011-09-03 14:06:05 -07:00
Guillermo Rauch
9d57245d65
Release 0.8.3
2011-09-03 12:42:45 -07:00
Guillermo Rauch
9a05b3597e
Fixed test for default flash port.
2011-09-03 12:34:36 -07:00
Guillermo Rauch
41f38b60e8
Added parser test for decoding newline.
2011-09-03 12:23:44 -07:00
Guillermo Rauch
a9bbc38919
Fixed \n parsing for non-JSON packets ( fixes #479 ).
2011-09-03 12:14:07 -07:00
Guillermo Rauch
e282ab0e63
Fixed transport message packet logging.
...
Fixed style.
2011-09-03 12:13:50 -07:00
Guillermo Rauch
546d5203d4
Added test case for #476 to prevent regressions.
2011-09-03 10:49:08 -07:00
Guillermo Rauch
69941e602b
Fixed emission of error event resulting in an uncaught exception if unhandled ( fixes #476 ).
2011-09-03 10:48:31 -07:00
Guillermo Rauch
7ac9c2e888
Fixed style
2011-09-03 10:48:23 -07:00
Guillermo Rauch
fa1f50d173
Fixed; allow for falsy values as the configuration value of log level ( fixes #491 ).
2011-09-03 10:29:51 -07:00
Guillermo Rauch
20ddd5f11a
Merge branch 'master' of github.com:LearnBoost/socket.io
2011-09-03 10:19:17 -07:00
Guillermo Rauch
e1891fd615
Fixed repository URI in package.json. Fixes #504 .
2011-09-03 10:18:52 -07:00
Daniel Shaw
cc0a96a8d9
Wow, really.
2011-09-01 14:22:53 -07:00
Daniel Shaw
7b2b302022
merge learnboost/master
2011-09-01 14:00:17 -07:00
Guillermo Rauch
4d66f78ca2
Merge pull request #502 from einaros/master
...
Correction on previous pull req, which left out status code
2011-09-01 12:12:32 -07:00
einaros
6db6db41a2
corrected passing of status code for handshake error
2011-08-31 19:55:28 +02:00
Guillermo Rauch
713baa40e1
Merge pull request #455 from 3rd-Eden/update/package
...
Added socket.io-flashsocket default port
2011-08-31 09:32:16 -07:00
Guillermo Rauch
7c196f5b32
Merge pull request #501 from einaros/master
...
Fixes issue commented on in #377
2011-08-31 08:50:44 -07:00
einaros
bd360a15ef
added text/plain content-type to handshake responses
2011-08-31 14:48:43 +02:00
einaros
ae7f25332a
switched \u**** to \x** for single byte writes, as the former doesn't really make any sense
2011-08-30 11:17:32 +02:00
einaros
63fc15d276
style changes
2011-08-30 11:03:50 +02:00
Guillermo Rauch
d88575dadf
Release 0.8.2
2011-08-29 17:07:29 -07:00
Guillermo Rauch
93c963e30f
Release 0.8.1
2011-08-29 17:07:29 -07:00
einaros
72a79e5cec
fixed utf8 bug in send framing
2011-08-29 17:07:29 -07:00
Markus Hedlund
140ed41907
Fixed typo.
2011-08-29 17:07:29 -07:00
einaros
12fc168516
fixed bug in send framing for over 64kB of data
2011-08-29 17:07:29 -07:00
einaros
2c3dc42ae8
corrected ping handling from websocket transport, and added warning output on parser error
2011-08-29 17:07:29 -07:00
einaros
48dadd8e10
joined compatible hybi protocol handlers and updated test reference
2011-08-29 17:07:29 -07:00
einaros
ce4c46b37d
fixed Parser library path and did some code cleanup
2011-08-29 17:07:29 -07:00
Guillermo Rauch
c8938a99b2
Release 0.8.0
2011-08-29 17:07:29 -07:00
Guillermo Rauch
b7998e815a
Renamed wsver/ -> websocket/
2011-08-29 17:07:29 -07:00
Guillermo Rauch
444229a9dc
Changed protocols require path.
2011-08-29 17:07:28 -07:00
einaros
b69dac6f4d
added hybi07 tests
2011-08-29 17:07:28 -07:00
einaros
94fdbadaec
added initial hybi07 protocol parser
2011-08-29 17:07:28 -07:00
Guillermo Rauch
c4b23246b4
Release 0.7.11
2011-08-29 17:07:28 -07:00
einaros
5186788969
cleanups and comments
2011-08-29 17:07:28 -07:00
Guillermo Rauch
169ad8245f
Release 0.7.10
2011-08-29 17:07:28 -07:00
einaros
71e013a197
added test and support for really long messages, but capped by 32 bit
2011-08-29 17:07:28 -07:00
einaros
7e60d37171
minor cleanups
2011-08-29 17:07:28 -07:00
einaros
a9e9e64eab
updated to work with two-level websocket versioning
2011-08-29 17:07:28 -07:00
einaros
39ae8d4629
added hybi10 close operation
2011-08-29 17:07:28 -07:00
einaros
a075870308
added hybi10 parser tests
2011-08-29 17:07:28 -07:00
einaros
186649102d
added hybi10 support
2011-08-29 17:07:28 -07:00
einaros
bb2e100e7f
Added http referrer verification to manager.js verifyOrigin + tests for origins setting
2011-08-29 17:07:28 -07:00
Guillermo Rauch
2c5fa40c0d
Release 0.8.2
2011-08-29 10:36:23 -07:00
Guillermo Rauch
0b61eda84c
Release 0.8.1
2011-08-29 09:42:16 -07:00
Guillermo Rauch
23ba929f3f
Merge branch 'master' of github.com:LearnBoost/socket.io
2011-08-29 09:37:54 -07:00
einaros
13647075f2
fixed utf8 bug in send framing
2011-08-29 09:43:12 +02:00
Guillermo Rauch
4c9414c4c1
Merge pull request #486 from Znarkus/patch-1
...
Fixed typo.
2011-08-28 23:57:28 -07:00
Markus Hedlund
ec88f95722
Fixed typo.
2011-08-29 20:23:38 +03:00
einaros
f377cd631e
fixed bug in send framing for over 64kB of data
2011-08-29 08:33:30 +02:00
einaros
e41aab84f8
corrected ping handling from websocket transport, and added warning output on parser error
2011-08-29 08:00:03 +02:00
einaros
0a6c78cbb8
joined compatible hybi protocol handlers and updated test reference
2011-08-29 07:56:40 +02:00
einaros
004130cb11
fixed Parser library path and did some code cleanup
2011-08-29 07:30:29 +02:00
Guillermo Rauch
a300223122
Release 0.8.0
2011-08-28 15:42:19 -07:00
Guillermo Rauch
0769c40368
Renamed wsver/ -> websocket/
2011-08-28 15:41:55 -07:00
Guillermo Rauch
355203afdb
Changed protocols require path.
2011-08-28 15:41:13 -07:00
einaros
46bfcd0d83
Merge remote branch 'upstream/master'
2011-08-28 11:20:01 +02:00
einaros
46b2f86372
added hybi07 tests
2011-08-28 11:19:22 +02:00
einaros
e5c86178f5
added initial hybi07 protocol parser
2011-08-28 10:44:07 +02:00
Guillermo Rauch
0c31d6eabf
Release 0.7.11
2011-08-27 15:29:33 -07:00
einaros
0e08d67e48
cleanups and comments
2011-08-27 23:43:16 +02:00
Guillermo Rauch
42904cb3d7
Release 0.7.10
2011-08-27 11:42:55 -07:00
einaros
8efb1bc6e2
added test and support for really long messages, but capped by 32 bit
2011-08-27 19:21:01 +02:00
einaros
8bdf221935
minor cleanups
2011-08-27 18:42:17 +02:00
einaros
899fb7faa1
updated to work with two-level websocket versioning
2011-08-27 18:27:52 +02:00
einaros
34622b74ef
added hybi10 close operation
2011-08-27 17:54:13 +02:00
einaros
d327976064
added hybi10 parser tests
2011-08-27 17:45:39 +02:00
einaros
07b9c4696d
added hybi10 support
2011-08-27 17:41:49 +02:00
Daniel Shaw
dd30de3c5a
Merge remote-tracking branch 'learnboost/master'
2011-08-16 15:26:30 -07:00
einaros
7a5913b8a6
Added http referrer verification to manager.js verifyOrigin + tests for origins setting
2011-08-16 07:46:57 +02:00
Guillermo Rauch
fbb268fbce
Release 0.7.9
2011-08-12 10:19:18 -07:00
Guillermo Rauch
a31c267e83
Bumped version.
2011-08-12 06:56:26 -07:00
Guillermo Rauch
b82fd79f57
Updated package.json socket.io-client and bumped version.
2011-08-12 06:55:37 -07:00
Arnout Kazemier
e269fcaf0d
Fixed semicolon
2011-08-10 22:58:13 +02:00
Arnout Kazemier
a8c61b0001
undo
2011-08-10 22:57:25 +02:00
Arnout Kazemier
4708480e7d
Added access control for cross domain xhr handshakes
2011-08-10 22:35:30 +02:00
Arnout Kazemier
00b75759f1
Added socket.io-flashsocket default port
2011-08-09 19:33:27 +02:00
Guillermo Rauch
f85ce74a1f
Merge pull request #446 from 3rd-Eden/testsuite
...
Testsuite fixes
2011-08-08 12:07:07 -07:00
Daniel Shaw
30284944b1
Merge remote-tracking branch 'learnboost/master'
2011-08-08 11:08:28 -07:00
Guillermo Rauch
65f1399a44
Release 0.7.8
2011-08-08 08:06:30 -07:00
Daniel Shaw
559d36601d
Merge remote-tracking branch 'learnboost/master'
2011-08-06 19:07:27 -07:00
Arnout Kazemier
894ec9f84e
Make sure we only do garbage collection when the server we receive
...
is actually ran.
2011-08-04 22:03:55 +02:00
Guillermo Rauch
d86ffcf06d
Merge pull request #408 from 3rd-Eden/gc
...
Garbage collection
2011-08-04 11:50:39 -07:00
Arnout Kazemier
ab5beaff63
Fix
2011-08-04 20:32:49 +02:00
Arnout Kazemier
f0ef33b45f
Merge branch 'master' of github.com:LearnBoost/socket.io into gc
...
Conflicts:
lib/manager.js
2011-08-04 20:32:43 +02:00
Daniel Shaw
1fa158c663
Merge with learnboost/master
2011-08-03 13:22:36 -07:00
Dylan Greene
a51fe07420
Updated the package location.
2011-08-01 14:44:11 -03:00
Arnout Kazemier
a631f86b3b
Merged with upstream master
2011-07-31 10:22:54 +02:00
Guillermo Rauch
a4ec5aafa6
Merge pull request #363 from dvv/489bc860d2f050a7925e602a6d16c428f2784b40
...
small cleanup
2011-07-30 20:32:39 -07:00
Guillermo Rauch
984639ba67
Merge pull request #381 from 3rd-Eden/alias
...
Added alias for to to in and in to to
2011-07-30 20:27:30 -07:00
Guillermo Rauch
9923c1dee9
Merge branch 'master' of github.com:LearnBoost/socket.io
2011-07-30 20:23:35 -07:00
Guillermo Rauch
1b0a4849df
Added test ( fixes #380 ).
2011-07-30 20:21:13 -07:00
Guillermo Rauch
4fc43f322f
Changed; make sure sio#listen passes options to both HTTP server and socket.io manager.
...
Added docs for sio#listen.
2011-07-30 20:20:31 -07:00
Guillermo Rauch
5c0f78ab02
Added options parameter support for Manager constructor.
2011-07-30 20:19:38 -07:00
Guillermo Rauch
d8c7060cc8
Merge pull request #396 from 3rd-Eden/xxs
...
Potential fix for #372
2011-07-30 18:49:47 -07:00
Guillermo Rauch
b0335b0a61
Merge pull request #339 from 3rd-Eden/333
...
Don't require redis by default
2011-07-30 18:47:41 -07:00
Guillermo Rauch
a1797ccd4b
Merge pull request #337 from 3rd-Eden/handshakeData
...
Expose path and querystring in handshakeData
2011-07-30 18:47:12 -07:00
Guillermo Rauch
a1c997bc58
Merge pull request #401 from Pita/master
...
Send response once we got all POST data, not immediately
2011-07-30 18:36:08 -07:00
Guillermo Rauch
0b9b28d251
Merge pull request #409 from 3rd-Eden/bug/407
...
Fix for #407
2011-07-30 17:59:06 -07:00
Guillermo Rauch
a79b2fa761
Added memory leaks tests.
2011-07-30 17:53:35 -07:00
Guillermo Rauch
195eba74de
Added assertvanish dev dependency.
2011-07-30 17:53:22 -07:00
Guillermo Rauch
3edebe5d61
Added test-leaks Makefile task.
2011-07-30 17:53:14 -07:00
Guillermo Rauch
b56389fbc8
Removed auto npm-linking from make test.
2011-07-30 14:46:54 -07:00
Guillermo Rauch
203293db0b
Merge pull request #413 from 3rd-Eden/update/package
...
updated package.json with new build of policyfile and redis
2011-07-30 14:33:09 -07:00
Guillermo Rauch
2b7ea448c4
Merge pull request #416 from 3rd-Eden/test/374
...
Added testcase to prevent #374 from happening again
2011-07-30 14:32:51 -07:00
Guillermo Rauch
c627f1b7d0
Merge pull request #421 from 3rd-Eden/bug/heartbeat
...
Make sure that you can disable heart beats
2011-07-30 14:32:34 -07:00
Daniel Shaw
831f1baa4a
Merge remote-tracking branch 'learnboost/master'
2011-07-28 16:38:48 -07:00
Guillermo Rauch
4c20afd4b7
Merge pull request #346 from ericz/patch-1
...
Change `;` typo to `,` in first example
2011-07-26 01:48:22 -07:00
Arnout Kazemier
f689434f61
Make sure that you can disable heart beats
2011-07-25 22:12:48 +02:00
Arnout Kazemier
b694ee68c9
Added testcase to prevent #374 from happening again
2011-07-24 13:21:30 +02:00
Guillermo Rauch
8b22ca2ffd
Merge pull request #415 from 3rd-Eden/bug/rooms
...
Bug/rooms
2011-07-24 02:30:36 -07:00
Arnout Kazemier
5c50c4844f
fixed missing done() that cuased the suite to timeout
2011-07-24 11:27:43 +02:00
Arnout Kazemier
4fcad6e4bc
updated package.json with new build of policyfile and redis
2011-07-23 22:59:32 +02:00
Arnout Kazemier
3b2316e0d8
Fixed rooms memory leak
2011-07-23 22:55:29 +02:00
Arnout Kazemier
a821cce390
Fix for #407
2011-07-22 22:52:20 +02:00
Arnout Kazemier
abe142ac66
Merge branch 'master' of github.com:LearnBoost/socket.io into gc
2011-07-22 21:42:09 +02:00
Arnout Kazemier
5eff0e5ca7
Small clean up, so the the code makes a bit more sense
2011-07-22 21:37:13 +02:00
Guillermo Rauch
c06242efd3
Merge pull request #383 from AD7six/feature/no-duplicate-clients-in-rooms
...
prevent duplicate references in rooms - probable fix for #379
2011-07-22 07:51:54 -07:00
Peter 'Pita' Martischka
f69f387e1d
Send response once we got all POST data, not immediately
2011-07-20 17:29:26 +01:00
Guillermo Rauch
f5c10aec7f
Merge pull request #395 from 3rd-Eden/bug/376
...
Fix for bug #376
2011-07-18 14:12:15 -07:00
Arnout Kazemier
34bd9d9092
Fix for bug #376
...
Also added unit test to prevent it from happening in the future
2011-07-18 23:06:48 +02:00
Andy Dawson
c30151d03a
Remove unused Cl (client) variable.
...
This test doesn't use any real clients.
2011-07-18 13:22:08 -07:00
Arnout Kazemier
f784c477f0
Potential fix for #372
2011-07-18 22:02:03 +02:00
Arnout Kazemier
0d3441d8b3
Added gzip to the options list and fixed a typo
2011-07-18 00:20:05 +02:00
Arnout Kazemier
23e14223bd
Added more test cases and allow a more flexible constructor for adding content
2011-07-17 23:50:06 +02:00
Arnout Kazemier
4b94f2b8bf
Passes all 14 tests
2011-07-17 20:21:08 +02:00
Arnout Kazemier
f88eedc3c8
More tests
2011-07-17 11:13:12 +02:00
Arnout Kazemier
5c24bf8c1d
Removed old testcases from manager and tiny fix for Static
2011-07-17 01:24:21 +02:00
Arnout Kazemier
9cd51b1f6b
Passes test suite
2011-07-17 00:10:43 +02:00
Arnout Kazemier
2f8eb63557
Added support for automatic generation of socket.io files
...
Added support for custom socket.io files based on path structure
For example socket.io+websocket+xhr-polling.js will create a dedicated build with
only support for websockets and xhr-polling.
2011-07-16 21:55:06 +02:00
Arnout Kazemier
4bdc30734c
Fixed small typos
2011-07-15 23:59:10 +02:00
Arnout Kazemier
4743744efc
Expose the constructor in socket.io and have the Manager use the new API
2011-07-15 22:31:03 +02:00
Arnout Kazemier
c2d98bde72
Add now stores the request details and has returns the details for static content
2011-07-15 22:10:51 +02:00
AD7six
c899c98f31
prevent duplicate references in rooms
2011-07-15 01:13:41 +02:00
Arnout Kazemier
9e97e6c691
Added more comments
2011-07-15 00:30:25 +02:00
Arnout Kazemier
afdfdb815e
Finished the write function setup
2011-07-15 00:24:57 +02:00
Arnout Kazemier
d043c33351
Added the write and answer fn
2011-07-15 00:13:54 +02:00
Arnout Kazemier
53f0f4d66d
Added alias for to to in and in to to
2011-07-14 21:31:55 +02:00
Arnout Kazemier
168b207c6d
Inital draft of gzip support
2011-07-14 21:24:26 +02:00
Arnout Kazemier
f6ebb7b8d6
API structure
2011-07-14 20:54:40 +02:00
Guillermo Rauch
c826fadb9f
Fixed roomClients definition ( #378 ).
2011-07-13 18:30:24 -03:00
Daniel Shaw
dfebed6c2f
Fix typo. Also mentioned in @dluxemburg's #341 .
2011-07-12 02:56:48 -07:00
Daniel Shaw
3a2545b497
merge
2011-07-12 01:22:54 -07:00
Guillermo Rauch
097094cd7a
Updated dep [thanks @3rd-Eden]
2011-07-12 05:11:03 -03:00
Guillermo Rauch
c3fa1bf5af
Release 0.7.7
2011-07-12 05:05:49 -03:00
Guillermo Rauch
8798cfbced
Merge pull request #340 from 3rd-Eden/291
...
It was emitting uknown room, so the messages where never send
2011-07-12 00:55:49 -07:00
Arnout Kazemier
81d71ebb08
Fixed port number
2011-07-12 09:52:53 +02:00
Guillermo Rauch
074e74c6c5
Added test for emitting to closed clients to prevent regression.
2011-07-12 04:35:07 -03:00
Guillermo Rauch
65b8272724
Merge branch 'master' of github.com:LearnBoost/socket.io
2011-07-12 04:29:56 -03:00
Guillermo Rauch
ca3f3379cb
Fixed race condition in redis test.
2011-07-12 04:29:30 -03:00
Guillermo Rauch
faad10baee
Changed Transport#end instrumentation.
2011-07-12 04:29:11 -03:00
Guillermo Rauch
d3eac92eaa
Leveraged $emit instead of emit internally.
2011-07-12 04:28:55 -03:00
Guillermo Rauch
fb5b9bc0b1
Made tests faster.
2011-07-12 03:42:05 -03:00
Guillermo Rauch
34505071f4
Fixed double disconnect events.
2011-07-12 03:41:43 -03:00
Guillermo Rauch
0a2d0b9d0b
Fixed disconnect logic
2011-07-12 03:41:15 -03:00
Guillermo Rauch
4495f5987a
Simplified remote events handling in Socket.
2011-07-11 23:51:42 -03:00
Guillermo Rauch
aad29d5d92
Fixed double dispatch handling.
2011-07-11 23:51:24 -03:00
Guillermo Rauch
ad8452035d
Fixed; increased timeout.
2011-07-11 23:51:08 -03:00
Daniel Shaw
ffa17e1205
Merge remote-tracking branch 'learnboost/master'
2011-07-11 00:16:07 -07:00
Daniel Shaw
59e250b186
Run initStore on store setting change. Fixes #367 .
2011-07-11 00:14:37 -07:00
Arnout Kazemier
b2ffed891b
Fixed typo
2011-07-11 00:12:27 -07:00
Daniel Shaw
9bf10ed051
Updated to the latest redis release. Lots of important patches.
2011-07-10 17:11:08 -07:00
Arnout Kazemier
9cfdb8ed97
Expose socket.transport
2011-07-06 00:10:25 +02:00
ericz
27ab98dca4
Fixed typo
2011-07-05 14:26:46 -07:00
Eric Zhang
a8ca11cb47
Change ; typo to , in first example
2011-07-05 14:22:55 -07:00
Arnout Kazemier
d39d1401c4
Fixed broken test suite
2011-07-05 00:59:31 +02:00
Arnout Kazemier
159c75096d
Removed console statement
2011-07-05 00:38:24 +02:00
Arnout Kazemier
a70347b15f
Fixed #285
2011-07-05 00:37:19 +02:00
Arnout Kazemier
1a2c8aa31f
It was emitting uknown room, so the messages where never send fixes #291
2011-07-05 00:17:02 +02:00
Arnout Kazemier
15e1e68cfd
Merge branch 'master' of github.com:LearnBoost/socket.io into 333
2011-07-04 22:53:20 +02:00
Arnout Kazemier
167da44211
Fixes #333
2011-07-04 22:51:00 +02:00
Arnout Kazemier
1372838092
Expose path and querystring in handshakeData
2011-07-04 19:26:22 +02:00
Guillermo Rauch
7257e1ec36
Merge pull request #329 from 3rd-Eden/remoteAddress
...
.address() returned server ip >_<, solved with this patch and adjusted th
2011-07-03 05:43:48 -07:00
Arnout Kazemier
af5960bc28
address.remoteAddress -> address.address just like node's
2011-07-02 19:50:18 +02:00
Arnout Kazemier
206cfdf9c6
Merge branch 'master' of github.com:LearnBoost/socket.io into remoteAddress
...
Conflicts:
lib/manager.js
2011-07-02 17:52:09 +02:00
Arnout Kazemier
65d7229079
.address() returned server ip >_<, solved with this patch and adjusted the test
...
suite
2011-07-02 17:49:32 +02:00
Guillermo Rauch
c18aa40ba6
Merge pull request #328 from coolbloke1324/master
...
Client IP instead of server IP for connectionAddress.
2011-07-02 08:41:33 -07:00
coolbloke1324
249f33da16
Updated Manager.prototype.handshakeData to provide connection.remoteAddress instead of .address() because .address() was returning server IP and .remoteAddress returns client IP.
2011-07-02 08:30:18 -07:00
Guillermo Rauch
b9a7c8be90
Merge pull request #325 from 3rd-Eden/ssl
...
See https://github.com/joyent/node/issues/1055
2011-07-01 12:41:02 -07:00
Arnout Kazemier
e4ac72a316
Unfucked space
2011-07-01 21:26:43 +02:00
Arnout Kazemier
dff9cbfe1b
See https://github.com/joyent/node/issues/1055
2011-07-01 21:24:51 +02:00
Vladimir Dronnikov
489bc860d2
cleanup
2011-07-01 09:50:37 -07:00
Guillermo Rauch
29a8fff576
Removed transports definition in chat example.
2011-06-30 18:59:52 -03:00
Guillermo Rauch
e66a68f0fa
Fixed room cleanup
2011-06-30 18:59:35 -03:00
Guillermo Rauch
4058eacbd4
Fixed; make sure the client is cleaned up after booting.
2011-06-30 18:58:55 -03:00
Guillermo Rauch
8cbd1544b9
Make sure to mark the client as non-open if the connection is closed.
2011-06-30 18:58:29 -03:00
Guillermo Rauch
f302744fec
Removed unneeded buffer declarations.
2011-06-30 18:58:06 -03:00
Guillermo Rauch
a3ba4e2c10
Fixed; make sure to clear socket handlers and subscriptions upon transport close.
2011-06-30 18:19:41 -03:00
Guillermo Rauch
a483f9cafd
Release 0.7.6
2011-06-30 15:32:22 -03:00
Guillermo Rauch
b43c82f3db
Fixed general dispatching when a client has closed.
2011-06-30 14:03:43 -03:00
Guillermo Rauch
84f0099c1d
Release 0.7.5
2011-06-30 12:57:44 -03:00
Guillermo Rauch
c6a883c8a9
Fixed dispatching to clients that are disconnected.
2011-06-30 12:56:42 -03:00
Guillermo Rauch
af2d9f285b
Release 0.7.4
2011-06-30 12:48:00 -03:00
Guillermo Rauch
40c1f8da2b
Fixed; only clear handlers if they were set. [level09]
2011-06-30 12:47:02 -03:00
Guillermo Rauch
9b40977616
Release 0.7.3
2011-06-30 10:38:03 -03:00
Guillermo Rauch
964f040b58
Merge pull request #318 from dvv/patch-1
...
normalize SocketNamespace local eventing
2011-06-30 06:22:26 -07:00
Vladimir Dronnikov
44919189ec
normalize SocketNamespace local eventing
2011-06-30 03:12:55 -07:00
Guillermo Rauch
6c4cc5113f
Merge pull request #315 from 3rd-Eden/intentional
...
disconnect
2011-06-29 13:23:45 -07:00
Arnout Kazemier
06e29fef67
Use packet.reason or default to 'packet'
2011-06-29 21:58:13 +02:00
Arnout Kazemier
16518c0715
Added a small indicator + test suite so you can see how a user is disconnected
2011-06-29 21:45:14 +02:00
Guillermo Rauch
09a713da18
Merge pull request #314 from nyxtom/master
...
Issue #313 TypeError: Object #<CleartextStream> has no method 'address'
2011-06-29 10:52:56 -07:00
Thomas Holloway
3e0239ed07
Quick fix to issues #313 to check if an address exists on a connection
2011-06-29 12:29:00 -05:00
Guillermo Rauch
d3d2a70944
Added MemoryStore expiration tests.
2011-06-29 11:38:28 -03:00
Guillermo Rauch
1bcf87eb14
Added RedisStore expiration tests.
2011-06-29 11:38:18 -03:00
Guillermo Rauch
f9c210c11c
Added expiration support to RedisStore.Client#destroy through EXPIRE command.
2011-06-29 11:37:58 -03:00
Guillermo Rauch
06421dd008
Added expiration support to MemoryStore.Client#destroy.
2011-06-29 11:37:26 -03:00
Guillermo Rauch
af7c7141f0
Changed; for consistency across stores, undefined becomes null.
2011-06-29 11:36:14 -03:00
Guillermo Rauch
def5498f61
Added expiration parameters to Store#destroyClient and Store#destroy
2011-06-29 11:35:44 -03:00
Guillermo Rauch
494b2d4487
Added Socket#has
...
Added `Socket#del`
2011-06-29 11:35:13 -03:00
Guillermo Rauch
ba3b854190
Changed; make sure to cache a reference to the client object so that it can be
...
referenced after its destroying and before the data expires.
2011-06-29 11:33:54 -03:00
Guillermo Rauch
abc3723b54
Changed; make sure to pass client store expiration to Store#destroyClient.
2011-06-29 11:33:24 -03:00
Guillermo Rauch
ba10280071
Added a client store expiration option with a 15 seconds default.
2011-06-29 11:32:47 -03:00
Guillermo Rauch
fc95d340ef
Merge pull request #306 from 3rd-Eden/namespace.auth
...
Namespace.auth
2011-06-29 04:14:29 -07:00
Arnout Kazemier
d47bcd51ba
Merge branch 'master' of github.com:LearnBoost/socket.io into namespace.auth
2011-06-29 13:10:23 +02:00
Guillermo Rauch
be7f56b819
Merge branch 'master' of github.com:LearnBoost/socket.io
2011-06-29 07:55:21 -03:00
Guillermo Rauch
6a83d6879c
Added redis store tests
2011-06-29 07:54:26 -03:00
Guillermo Rauch
56f5911b60
Added memory store tests
2011-06-29 07:54:13 -03:00
Guillermo Rauch
2fd38866d2
Finished redis store
2011-06-29 07:53:51 -03:00
Guillermo Rauch
4398271ff5
Added MemoryClient#has, MemoryClient#del
...
Refactored MemoryClient#destroy
2011-06-29 07:51:54 -03:00
Guillermo Rauch
6ce89b80ef
Added Store#destroyClient
...
Refactored Store#destroy
2011-06-29 07:51:21 -03:00
Guillermo Rauch
1449b18681
Added docs
2011-06-29 07:50:23 -03:00
Guillermo Rauch
f921164bf8
Removed Store instrumentation
2011-06-29 07:50:04 -03:00
Guillermo Rauch
ea1f5822ae
Removed Store#log since they're manager-independent.
2011-06-29 07:49:47 -03:00
Guillermo Rauch
2fd406f7b2
Fixed; make sure to clean up store upon client disconnect.
2011-06-29 07:49:22 -03:00
Guillermo Rauch
34d0cbdbf0
Merge pull request #310 from 3rd-Eden/websocket.write
...
Having a stab at issue #295
2011-06-29 03:20:49 -07:00
Arnout Kazemier
2110bac72d
Having a stab at issue #295
2011-06-29 12:17:20 +02:00
Arnout Kazemier
299e097fa7
Added storage for socket.handshake & updated test suite to check for it
2011-06-28 23:50:33 +02:00
Arnout Kazemier
a1963fcf7d
Added missing test suite
2011-06-28 21:49:45 +02:00
Arnout Kazemier
8abe712294
Passes test suite
2011-06-28 21:41:46 +02:00
Guillermo Rauch
df21bea4df
Fixed store references
2011-06-28 16:32:40 -03:00
Arnout Kazemier
45f2718954
Cleaned up the websocket test
2011-06-28 21:05:53 +02:00
Guillermo Rauch
24aef9e40b
Merge branch 'master' of github.com:LearnBoost/Socket.IO-node
2011-06-28 15:50:19 -03:00
Guillermo Rauch
a00ce7eee6
Fix for client side namespaces.
2011-06-28 15:49:48 -03:00
Guillermo Rauch
17dd94e3c9
Merge pull request #300 from 3rd-Eden/static.write
...
Create a new branch for fixing #287
2011-06-28 11:45:40 -07:00
Guillermo Rauch
81fe9e0117
Merge pull request #302 from 3rd-Eden/readme
...
Readme fixes
2011-06-28 11:45:05 -07:00
Arnout Kazemier
c9bf814580
Readme fixes
2011-06-28 20:43:24 +02:00
Arnout Kazemier
78b546e185
Incorporated feedback from @guille
2011-06-28 20:37:58 +02:00
Arnout Kazemier
e7deb32a6f
Create a new branch for fixing #287
2011-06-28 20:23:13 +02:00
Guillermo Rauch
4e4199c15e
Added test for SocketNamespace#clients
2011-06-28 13:33:09 -03:00
Guillermo Rauch
fb79657476
Added SocketNamespace#clients
2011-06-28 13:33:01 -03:00
Guillermo Rauch
f2212f6962
Make handshake data extensible
2011-06-28 09:27:07 -03:00
Guillermo Rauch
c9d21c5ff5
Fixed tests
2011-06-28 08:29:42 -03:00
Guillermo Rauch
6b6f17b098
Added handshakeData#address
...
Added handshakeData#secure
2011-06-28 08:29:00 -03:00
Guillermo Rauch
9740b42866
Added test for Socket#handshake.
2011-06-28 07:37:25 -03:00
Guillermo Rauch
2a1b2bd37e
Added Socket#handshake data getter.
2011-06-28 07:37:15 -03:00
Guillermo Rauch
b58c2e4afe
Added handshake data normalizer function.
...
Changed; Make sure we store the `handshake data` in the hash of connected clients.
2011-06-28 07:36:35 -03:00
Guillermo Rauch
a2f8fb4970
Implemented RedisStore.Client#get and RedisStore.Client#set
2011-06-27 16:21:32 -03:00
Guillermo Rauch
a4ef10d6a2
Added missing redis require.
2011-06-27 16:14:47 -03:00
Guillermo Rauch
91e43064f3
Added Redis store.
...
- Simply leverages pub/sub for nodes communication
- Makes sure own node doesn't consume its own messages
- Optionally uses msgpack to encode data for higher speed than JSON
- Opens two connections per node (one in pub/sub mode, one for normal redis)
2011-06-27 15:55:33 -03:00
Guillermo Rauch
76e6b9ea6f
Removed comments in xhr-polling test.
2011-06-27 15:53:15 -03:00
Guillermo Rauch
a517efcaca
Fixed signature of Socket#join in tests
...
Fixed style
2011-06-27 15:52:35 -03:00
Guillermo Rauch
8f6860b155
Make sure to close websocket clients on session tests
2011-06-27 15:52:17 -03:00
Guillermo Rauch
72283a9078
Removed comments from tests
2011-06-27 15:51:59 -03:00
Guillermo Rauch
c9d87ebb98
Fixed xhr polling transport name
2011-06-27 15:51:44 -03:00
Guillermo Rauch
4a591f191f
Fixed xhr polling constructor to take request as parameter
2011-06-27 15:51:26 -03:00
Guillermo Rauch
779816ded7
Added req to websocket transport constructor.
2011-06-27 15:50:46 -03:00
Guillermo Rauch
2b90edb3a2
Added req parameter to jsonp-polling constructor.
2011-06-27 15:50:24 -03:00
Guillermo Rauch
a99016df79
Make sure to take request as parameter in the http constructor
2011-06-27 15:50:08 -03:00
Guillermo Rauch
78c7a55ce4
Make sure to take request as parameter in the polling constructor
2011-06-27 15:49:37 -03:00
Guillermo Rauch
3fbce85315
Make sure to take request as parameter in the htmlfile constructor
2011-06-27 15:49:13 -03:00
Guillermo Rauch
9aa5320730
Fixed Flashsocket constructor
2011-06-27 15:48:20 -03:00
Guillermo Rauch
2fb28c8843
Removed Transport#subscribe and Transport#unsubscribe
2011-06-27 15:47:55 -03:00
Guillermo Rauch
767ca4f100
Fixed .end signature
2011-06-27 15:47:43 -03:00
Guillermo Rauch
733569ae68
Added Transport#discard. Mostly useful for when request/response cycles are load
...
balanced into different nodes.
2011-06-27 15:47:14 -03:00
Guillermo Rauch
f736302b97
Refactored Transport#end
...
Removed concept of transport pausing as we no longer have async buffers.
2011-06-27 15:46:43 -03:00
Guillermo Rauch
7bfcf54f90
Publish transport close event.
2011-06-27 15:45:58 -03:00
Guillermo Rauch
fa5ef9ff2d
Removed forced parameter from .end call from disconnect
2011-06-27 15:45:37 -03:00
Guillermo Rauch
df457440fd
Refactored onMessage to leverage subscriptions
2011-06-27 15:45:18 -03:00
Guillermo Rauch
375cbf49de
Important fix for hearbeats
2011-06-27 15:45:09 -03:00
Guillermo Rauch
2c66814b82
Applied new .end signature
2011-06-27 15:44:50 -03:00
Guillermo Rauch
2a4e4e1300
Added handler for dispatch subscription
2011-06-27 15:44:38 -03:00
Guillermo Rauch
6f12de98fc
Added handler for heartbeat clear subscription
2011-06-27 15:44:28 -03:00
Guillermo Rauch
73ea4dd13f
Removed the .end method to disregard whether it was forced or not
2011-06-27 15:43:46 -03:00
Guillermo Rauch
772afe897d
Refactored Transport to leverage subscriptions.
2011-06-27 15:43:24 -03:00
Guillermo Rauch
0b75d09090
Refactored Memory.Client
2011-06-27 15:42:49 -03:00
Guillermo Rauch
95e787dcc5
Removed all transport-specific methods from Memory store
...
Added publish/subscribe placeholders that basically do nothing.
2011-06-27 15:40:32 -03:00
Guillermo Rauch
5342dd6d76
Refactored Socket
...
- initialize options in constructor
- inherit from EventEmitter always
- added generic Socket#client
2011-06-27 15:37:30 -03:00
Guillermo Rauch
195e227393
Refactored Socket#disconnect to intelligently decide whether the disconnection has
...
to be forced or just destroy the storage, so that a re-opening of the transport is
not possible.
2011-06-27 15:36:20 -03:00
Guillermo Rauch
c28a85e520
Refacotred Socket#set and Socket#get
2011-06-27 15:36:08 -03:00
Guillermo Rauch
bf8b1e6879
Added Socket#dispatch, in charge of intelligently determining whether the packet
...
has to be relied to other nodes to handle, handle it internally, or discarding it
if it's volatile from the local buffer provided the transport is not open.
2011-06-27 15:35:09 -03:00
Guillermo Rauch
240cf3fde6
Leverage Socket#dispatch to dispatch a message.
2011-06-27 15:34:46 -03:00
Guillermo Rauch
d40cde8503
Refactored Socket#leave
2011-06-27 15:34:31 -03:00
Guillermo Rauch
db9d81971d
Refactored Socket#join
2011-06-27 15:34:20 -03:00
Guillermo Rauch
54d2c0111d
Changed; Socket#store now returns the client store.
2011-06-27 15:32:44 -03:00
Guillermo Rauch
cfd5315b1e
Removed disconnect subscription per-socket (added unnecessary overhead with multiple
...
namespaces).
2011-06-27 15:32:19 -03:00
Guillermo Rauch
cbc12ecdcf
Make sure to leave rooms upon disconnection of a namespace (fixes some bug).
2011-06-27 15:31:44 -03:00
Guillermo Rauch
9aa650e430
Removed the join callback, since it's not necessary (TCP based pub/sub guarantees
...
proper total ordering).
2011-06-27 15:30:47 -03:00
Guillermo Rauch
f06fefab14
Added handleDisconnect method to emit the disconnect event when the socket is
...
disconnected due to network reasons, making sure we don't emit it on non-connected
namespaces.
2011-06-27 15:30:02 -03:00
Guillermo Rauch
5b6efb784f
Simplified global message dispatching by leveraging subscriptions.
2011-06-27 15:28:24 -03:00
Guillermo Rauch
c210241379
Refactored handshake
2011-06-27 15:27:58 -03:00
Guillermo Rauch
8594d684ef
Fixed style
2011-06-27 15:27:44 -03:00
Guillermo Rauch
970621d5ee
Refactored client request handling:
...
- removed the concept of async handshake, since we now keep track of open/closed
clients and handshakes across all nodes (replication)
- when a client closes temporarily, before the disconnection is triggered and before
the transport is reopened in any node, we buffer messages in all nodes. We therefore
remove the need for a complex message queue with a memory tradeoff (buffer redundancy).
2011-06-27 15:21:50 -03:00
Guillermo Rauch
c9d9c2e8b3
Added initStore and subscription handlers.
2011-06-27 15:21:01 -03:00
Guillermo Rauch
8f44f026ee
Removed usage of Store#disconnect, replaced with a simple subscription.
2011-06-27 15:20:35 -03:00
Guillermo Rauch
c369073a72
Moved id generation method into the manager.
2011-06-27 15:18:37 -03:00
Guillermo Rauch
b700f0546d
Added call to initStore to initialize subscriptions.
2011-06-27 15:16:54 -03:00
Guillermo Rauch
0701408061
Added redis client dependency.
...
Removed >= from policy.
2011-06-27 15:14:53 -03:00
Guillermo Rauch
bafb347e4a
Changed console.error to console.log.
2011-06-22 23:56:14 -03:00
Guillermo Rauch
802da70bf7
Fixed; bind both servers at the same time do that the test never times out.
2011-06-22 22:18:51 -03:00
Guillermo Rauch
f2711daa37
Merge pull request #282 from 3rd-Eden/master
...
304
2011-06-22 15:49:56 -07:00
Arnout Kazemier
7200dfed84
Output the correct name
2011-06-23 00:48:06 +02:00
Arnout Kazemier
b348f4de99
Style
2011-06-23 00:23:18 +02:00
Arnout Kazemier
6452602603
Merge branch 'master' of https://github.com/LearnBoost/Socket.IO-node
2011-06-23 00:20:55 +02:00
Arnout Kazemier
6f93bb2ec7
Added 304 support
2011-06-23 00:20:28 +02:00
Guillermo Rauch
ffd3e8bc96
Removed Transport#name for abstract interface.
2011-06-22 18:40:26 -03:00
Guillermo Rauch
bdea4b11a7
Merge pull request #281 from 3rd-Eden/master
...
Lazy load http / https modules & fix for crash in memory store
2011-06-22 13:49:54 -07:00
Arnout Kazemier
041b5655f9
Delete they client instead of setting it to null. And make sure the client exists
...
before we do .disconnect
2011-06-22 22:43:39 +02:00
Arnout Kazemier
080676bf6e
Lazy require http and https module only when needed
2011-06-22 21:40:02 +02:00
Guillermo Rauch
2e7076abcc
Merge pull request #273 from 3rd-Eden/master
...
merge fail
2011-06-22 01:27:43 -07:00
Arnout Kazemier
b87e51bae3
Refixed merge fail
2011-06-22 10:26:39 +02:00
Guillermo Rauch
cc5bc44ef0
Merge pull request #265 from 3rd-Eden/master
...
Better naming in the logging
2011-06-22 01:25:30 -07:00
Arnout Kazemier
4672ab65d7
Merge branch 'master' of https://github.com/LearnBoost/Socket.IO-node
...
Conflicts:
lib/transports/http-polling.js
2011-06-22 10:24:35 +02:00
Guillermo Rauch
331e6e85b9
Release 0.7.2
2011-06-22 04:15:01 -03:00
Guillermo Rauch
f2df40aa02
Bumped client version.
...
Bumped version
2011-06-22 04:12:26 -03:00
Guillermo Rauch
36ecd49ad2
Updated tests.
2011-06-22 04:09:19 -03:00
Guillermo Rauch
aef5027640
Make sure to write a packet (of type noop) when closing a poll. This solves a problem
...
with cross-domain requests being flagged as aborted and reconnection being triggered.
2011-06-22 04:08:28 -03:00
Guillermo Rauch
4933cf1a9e
Added noop message type.
2011-06-22 04:08:11 -03:00
Arnout Kazemier
28b396c3fc
Merge branch 'master' of https://github.com/LearnBoost/Socket.IO-node
2011-06-22 08:58:33 +02:00
Guillermo Rauch
c425724bd2
Release 0.7.1
2011-06-21 21:05:11 -03:00
Guillermo Rauch
0b9bc61ff1
Added CORS test to xhr-polling suite.
2011-06-21 21:02:22 -03:00
Guillermo Rauch
3bab44506b
Added header override support in test client.
2011-06-21 21:02:11 -03:00
Guillermo Rauch
aeac79faa9
Fixed; restored headers in POST responses.
2011-06-21 20:34:20 -03:00
Guillermo Rauch
903f7ec9ff
Fixed cross-domain POST XHR requests for Firefox.
2011-06-21 20:17:24 -03:00
Arnout Kazemier
808e794ec5
Merge branch 'master' of github.com:3rd-Eden/Socket.IO-node
2011-06-21 21:35:42 +02:00
Arnout Kazemier
cb7aa0a79c
Merge branch 'master' of https://github.com/LearnBoost/Socket.IO-node
2011-06-21 21:35:26 +02:00
Arnout Kazemier
1bddfc45dd
Added client handler to the options, just for the sake of consistency
2011-06-21 21:09:41 +02:00
Arnout Kazemier
836eb1d1c2
Merge branch 'master' of https://github.com/LearnBoost/Socket.IO-node
2011-06-21 11:55:24 +02:00
Guillermo Rauch
159ad73ba3
Fixed readme
2011-06-21 06:30:11 -03:00
Guillermo Rauch
2838f252cf
Some readme fixes. Broadcast clarification, added rooms.
2011-06-21 06:22:11 -03:00
Guillermo Rauch
e5266b54dc
Added new contributor extraordinaire.
2011-06-21 06:13:52 -03:00
Arnout Kazemier
4c5dfd53f0
Merge branch 'master' of https://github.com/LearnBoost/Socket.IO-node
2011-06-21 10:03:20 +02:00
Arnout Kazemier
a62bced081
this.name > prototype.name
2011-06-21 10:00:13 +02:00
Guillermo Rauch
962736a47a
Reverting to more lightweight htmlfile framing.
2011-06-21 04:59:29 -03:00
Arnout Kazemier
397dfbc51d
Naming
2011-06-21 09:44:26 +02:00
Guillermo Rauch
57d33a4a97
Remove graceful close, as web implementations don't need it.
2011-06-21 01:09:11 -03:00
Guillermo Rauch
5518f8cb2c
Added support for CORS of POST requests.
2011-06-21 01:08:25 -03:00
Guillermo Rauch
e55c5e91fb
Fix for htmlfile
2011-06-20 17:50:26 -03:00
Guillermo Rauch
ae5ace723e
Merge branch 'master' of github.com:LearnBoost/Socket.IO-node
2011-06-20 17:34:40 -03:00
Guillermo Rauch
191d68d85f
Workaround for race condition
2011-06-20 17:34:16 -03:00
Guillermo Rauch
35610dfd8c
Merge pull request #260 from 3rd-Eden/master
...
chat example
2011-06-20 01:26:46 -07:00
Arnout Kazemier
043b5e8063
Only require flashpolicy when the we create a function
...
Fixes for handshakes
2011-06-20 10:04:01 +02:00
Arnout Kazemier
8115cbacee
Added reconnect advice from broken handshakes + deadcode removal
2011-06-20 00:14:36 +02:00
Arnout Kazemier
32bf6fecd4
Return instead of wrapping code in a big if statement
2011-06-19 22:33:15 +02:00
Arnout Kazemier
dea523465a
Removed my peanuts
2011-06-19 22:29:53 +02:00
Arnout Kazemier
5032cb25d0
clean up
2011-06-19 22:28:13 +02:00
Arnout Kazemier
aeb8832c1d
Only emit discconect if the user actually has a nickname
2011-06-19 21:42:53 +02:00
Arnout Kazemier
e9bb2e732c
Merge branch 'master' of https://github.com/LearnBoost/Socket.IO-node
2011-06-19 11:12:34 +02:00
Arnout Kazemier
f79c625657
Added error handling, and output details to console
2011-06-18 22:17:58 +02:00
Guillermo Rauch
75f54a56e1
Merge pull request #259 from 3rd-Eden/master
...
Update unit test + send buffers instead of strings
2011-06-18 12:45:06 -07:00
Arnout Kazemier
78285af72f
Fix for encoding of the static serve and we should send buffers instead of strings
2011-06-18 21:37:54 +02:00
Guillermo Rauch
d90014f4ee
Merge pull request #258 from 3rd-Eden/master
...
Improved static serving
2011-06-18 12:20:38 -07:00
Arnout Kazemier
32db05d178
Passes test suite + 2 new tests
2011-06-18 21:12:11 +02:00
Arnout Kazemier
dba93a1bb3
lib/
2011-06-18 20:28:13 +02:00
Arnout Kazemier
567140e183
-- console.dir
2011-06-18 20:15:55 +02:00
Arnout Kazemier
b1837f348e
Improved static serving of content
2011-06-18 20:14:58 +02:00
Guillermo Rauch
b0147f3af8
Merge branch 'master' of github.com:LearnBoost/Socket.IO-node
2011-06-18 10:14:05 -03:00
Guillermo Rauch
13e7f4087a
Exports WSClient
2011-06-18 10:13:38 -03:00
Guillermo Rauch
de1b62c75c
Merge pull request #257 from 3rd-Eden/master
...
Call the init for the correct transport
2011-06-18 06:06:32 -07:00
Arnout Kazemier
0400a51b91
Should init the transport with the init function
...
not the flashsocket each time
2011-06-18 11:17:16 +02:00
Guillermo Rauch
4079da41f3
Changed; simplified flash socket client by inheriting from websocket test client.
...
Removed usage of assert
Improved usage of should.js
- leveraged should.include.string for strings `indexOf`
- leveraged should.contain for arrays `indexOf`
- removed usage of `ok` and `!!`
- added better error checks
Fixed style.
2011-06-18 04:45:14 -03:00
Guillermo Rauch
2be18c8324
Fixed style.
...
Changed; make sure logging is lowercase.
2011-06-18 04:43:23 -03:00
Guillermo Rauch
b928e77fd1
Changed non-socket.io scope requests logging since it was confusing users.
2011-06-18 04:43:01 -03:00
Guillermo Rauch
c2e48f36b2
Changed; attempt to initialize all transports.
2011-06-18 04:42:33 -03:00
Guillermo Rauch
54e78277c0
Changed nickname in irc example.
2011-06-18 04:42:04 -03:00
Guillermo Rauch
3116b8b091
Merge pull request #256 from 3rd-Eden/master
...
flashsocket
2011-06-17 18:49:45 -07:00
Arnout Kazemier
ab0c0d110c
Added tests for the policy file server
...
Changed `update:` back to `set:` because it's more pretty
2011-06-18 01:13:44 +02:00
Arnout Kazemier
26a30c5863
Added WIP flashsocket
2011-06-17 23:10:23 +02:00
Guillermo Rauch
e16f1832ac
Merge branch 'master' of github.com:LearnBoost/Socket.IO-node
2011-06-17 16:14:40 -03:00
Guillermo Rauch
2a3e10f95d
Updated jsonp-polling testing client POST.
2011-06-17 15:51:12 -03:00
Guillermo Rauch
72936ef1c5
Changed; JSONP flagged for POST url decoding.
2011-06-17 15:50:53 -03:00
Guillermo Rauch
ad8f7866cb
Added support for urlencoded POST.
2011-06-17 15:50:40 -03:00
Guillermo Rauch
0c324e0030
Fixed json-p polling comment header.
2011-06-17 14:47:21 -03:00
Guillermo Rauch
5e2ab3926f
Merge pull request #253 from 3rd-Eden/master
...
Updated notifications
2011-06-16 14:45:33 -07:00
Arnout Kazemier
070d76d1d5
Added test suite, updated set to update and enabled it in enable and disable commands
2011-06-16 22:51:25 +02:00
Arnout Kazemier
7646e09a1d
receive updates of config changes
2011-06-16 22:31:53 +02:00
Guillermo Rauch
cddae4226c
Fixed drained setting in the HTMLFile transport.
2011-06-16 14:52:52 -03:00
Guillermo Rauch
1a3fc57ba4
Fixed WebSocket#flush.
...
Fixed style.
2011-06-16 14:52:34 -03:00
Guillermo Rauch
b94320fb97
Changed; improved instrumentation for setting request.
2011-06-16 13:59:01 -03:00
Guillermo Rauch
99ab97af6d
Changed; custom browser client handler is now a middleware-like function.
...
Changed; client can be disabled altogether.
Changed; made client minification optional.
Changed; made client etag serving optional.
Added appropriate new tests.
2011-06-16 13:37:26 -03:00
Guillermo Rauch
32d50f77c7
Added Manager#configure callbacks scope test.
2011-06-16 13:37:00 -03:00
Guillermo Rauch
81dedf11d2
Fixed; keep scope for Manager#configure.
2011-06-16 13:34:01 -03:00
Guillermo Rauch
028487a013
Changed; leveraged .get instead of .set with one argument.
2011-06-16 13:28:48 -03:00
Guillermo Rauch
d6a01b56f5
Added new browser client options.
2011-06-16 13:28:14 -03:00
Guillermo Rauch
b16d8e96b1
Make MemoryStore#set fn parameter optional.
2011-06-16 11:10:47 -03:00
Guillermo Rauch
9f19145c4d
Fixed style.
2011-06-16 11:05:52 -03:00
Guillermo Rauch
ed8971b2fb
Added IRC example.
2011-06-13 14:14:12 -03:00
Guillermo Rauch
70270f9aad
Make sure running tests installs the npm dev dependencies.
2011-06-13 12:36:27 -03:00
Guillermo Rauch
bd2ce6ecf3
Fixed propagation of packets through SocketNamespace.
2011-06-13 12:10:23 -03:00
Guillermo Rauch
aafbf857dc
Trading vim highlighting with pretty github highlighting.
2011-06-13 03:31:13 -03:00
Guillermo Rauch
005f251c69
Trying out GH highlighting.
2011-06-13 03:28:39 -03:00
Guillermo Rauch
94bc2bc05b
Trying out GH highlighting.
2011-06-13 03:27:34 -03:00
Guillermo Rauch
292bd8ddb4
Added readme clarification
2011-06-13 03:22:11 -03:00
Guillermo Rauch
33e474de46
Trimming fat from repository.
2011-06-13 03:17:14 -03:00
Guillermo Rauch
32f216d2f7
Leveraged npm devDependencies for server.
2011-06-13 03:16:51 -03:00
Guillermo Rauch
0e64f6f746
Removed legacy client
2011-06-13 03:11:12 -03:00
Guillermo Rauch
ad059c7d86
Added chat example.
2011-06-13 03:06:27 -03:00
Guillermo Rauch
ea8cfc5c8f
Fixed problem with multiple request handling.
...
Added proper cleanup
2011-06-13 02:58:10 -03:00
Guillermo Rauch
c6185ebb0d
Adapted tests.
2011-06-12 19:50:40 -03:00
Guillermo Rauch
cecd0296af
Added instrumentation for websocket packets.
2011-06-12 19:50:22 -03:00
Guillermo Rauch
d80a5f37a0
Added instrumentation for xhr packets.
2011-06-12 19:50:12 -03:00
Guillermo Rauch
1743baba29
Changed behavior of end and close events, and introduced swapped semaphore.
2011-06-12 19:49:50 -03:00
Guillermo Rauch
9cc1e775c1
Added handshaken instrumentation
2011-06-12 19:49:39 -03:00
Guillermo Rauch
b9ab031f0e
Added callback to io.listen.
...
Removed race condition in websocket room tests (for real this time)
2011-06-12 12:35:18 -03:00
Guillermo Rauch
7d2efd99ab
Added timeout for room messages.
2011-06-12 09:03:44 -03:00
Guillermo Rauch
4bd5805a32
Removed 2 extra tests (manual ACKs with .send)
2011-06-12 08:38:20 -03:00
Guillermo Rauch
e7b4d6a38d
Fixed race condition in tests.
2011-06-12 08:38:06 -03:00
Guillermo Rauch
e77a363c3c
Changed; .send ACK always automatic.
2011-06-12 08:37:40 -03:00
Guillermo Rauch
1db72e17f3
Simplified acks.
2011-06-12 08:37:27 -03:00
Guillermo Rauch
f40e9bde23
Fixed xhr-polling tests.
2011-06-12 07:58:35 -03:00
Guillermo Rauch
32cd5d7d55
Fixed ugly hack.
2011-06-12 07:58:05 -03:00
Guillermo Rauch
e574ba4a5c
Fixed; added echo connect packet for all namespaces connections.
2011-06-12 07:53:46 -03:00
Guillermo Rauch
6583e9eac7
Simulate a connect packet when connecting to socket, to trigger the connect event
...
on '' namespace transparently.
2011-06-12 07:53:17 -03:00
Guillermo Rauch
50a8d2d50a
Revert.
2011-06-11 22:56:55 -03:00
Guillermo Rauch
19a0fb6912
Always store consumer function.
2011-06-11 18:24:08 -03:00
Guillermo Rauch
2066aef41a
Changed; minor thingies.
2011-06-11 18:22:29 -03:00
Guillermo Rauch
66c1d5fece
Added right Content-Type header for JSONP handshake.
2011-06-11 18:18:55 -03:00
Guillermo Rauch
442f9d9522
Fixed JSON-p handshake error reporting (need tests!)
2011-06-11 18:14:18 -03:00
Guillermo Rauch
1db340aad5
Adapted server encoder/decoder for event spec change.
2011-06-11 18:10:03 -03:00
Guillermo Rauch
baa8056b41
Added coverage analysis flag to Makefile.
2011-06-11 17:37:38 -03:00
Guillermo Rauch
7433e58908
Adapted xhr-polling tests.
2011-06-11 17:34:20 -03:00
Guillermo Rauch
3091490cc2
Fixed style.
2011-06-11 17:34:10 -03:00
Guillermo Rauch
50413024bc
Adapted jsonp-polling tests.
2011-06-11 16:41:51 -03:00
Guillermo Rauch
19c62c1f7b
Fixed; force disconnection can still happen even with temporarily closed transports.
2011-06-11 16:41:28 -03:00
Guillermo Rauch
1e50ac91b9
Removed re-used socket transport validation concept, as it might mis-authorizse a socket
...
when more than one io.Socket is used in a browser.
2011-06-11 16:40:05 -03:00
Guillermo Rauch
a5a7ec4dbd
Adapted websocket tests for connect packet.
2011-06-10 18:16:37 -03:00
Guillermo Rauch
b9e138dc34
Added optimization to write one buffer.
...
Fixed bug where relying on the `drain` event when there's nothing to drain would
prevent volatile messages from ever being sent.
Added websocket write instrumentation.
2011-06-10 18:14:31 -03:00
Guillermo Rauch
3a22ab097e
Adapted htmlfile tests.
2011-06-10 12:07:37 -03:00
Guillermo Rauch
13e9727e5c
Remove connection event upon socket initialization, this is now handled by the Manager.
2011-06-10 12:06:55 -03:00
Guillermo Rauch
9087d32c74
Make sure to resume() as soon as the count is registered.
...
Echo back connect packet upon first connection.
2011-06-10 12:03:55 -03:00
Guillermo Rauch
50f6645e0b
Renamed Manager#for with Manager#of in tests.
2011-06-09 19:46:44 -03:00
Guillermo Rauch
bcb00306b2
Renamed Manager#for with Manager#of.
2011-06-09 19:46:31 -03:00
Guillermo Rauch
81dd623773
Renamed Manager#for with Manager#of in examples.
2011-06-09 19:46:09 -03:00
Guillermo Rauch
a4cac1e423
Fixed client serving once it's been cached.
...
Fixed style.
2011-06-09 08:49:15 -03:00
Guillermo Rauch
f306870246
Added failing test: serving the client once it's been cached.
2011-06-09 08:49:02 -03:00
Guillermo Rauch
4db20e870a
Added client require to manager.js
...
Removed clientVersion access from parent exports.
2011-06-09 08:31:15 -03:00
Guillermo Rauch
9cf9f1e9e0
Point to client.dist to access dist/ directory location.
2011-06-09 08:15:35 -03:00
Guillermo Rauch
e8640d6713
Changed; leveraged npm socket.io-client module from io.
2011-06-07 20:15:33 -03:00
Guillermo Rauch
c007ab89f9
Added node_modules to gitignore
2011-06-07 20:15:17 -03:00
Guillermo Rauch
a4568290a6
Changed package.json
...
- added socket.io-client dependency
- added homepage
2011-06-07 19:10:14 -03:00
Guillermo Rauch
35e1d9b0f6
Removed old client.
2011-06-07 19:06:24 -03:00
Guillermo Rauch
e0da36e944
Fixed old listeners calls.
2011-06-02 16:55:32 -03:00
Guillermo Rauch
f8697e22ff
Fix json-p handshake.
2011-06-02 16:43:13 -03:00
Guillermo Rauch
6ab0a4cea5
Updated tests for jsonp callback format.
2011-05-30 11:38:36 -03:00
Guillermo Rauch
abde1ca389
Updated jsonp callback format.
2011-05-30 11:38:19 -03:00
Guillermo Rauch
76bec7bc7e
Faster websocket parsing (thanks mraleph)
2011-05-30 11:37:59 -03:00
Guillermo Rauch
7970815a54
Updated default timeouts.
...
Added error handling for JSONP handshake.
2011-05-30 11:37:20 -03:00
Guillermo Rauch
81e1c44be1
Updated client API.
2011-05-30 07:42:21 -03:00
Guillermo Rauch
9cf4008c99
Fixes for README
...
- Added broadcast example
- Restored code snippets since the autodetection was working but vim didn't color it
nicely.
2011-05-29 18:36:28 -03:00
Guillermo Rauch
14c96c143c
Removed console.log statements
2011-05-25 01:29:15 -07:00
Guillermo Rauch
bd1970606c
Adjusted timeouts in websocket tests to avoid race conditions.
2011-05-25 01:27:01 -07:00
Guillermo Rauch
e472483bb1
Make sure to retain packet.endpoint for socket messsages.
2011-05-25 01:26:46 -07:00
Guillermo Rauch
faa00b8b2d
Added test for broadcasting events in rooms.
2011-05-25 00:57:37 -07:00
Guillermo Rauch
62d3e6341e
Added test for broadcasting json to a room.
2011-05-25 00:54:57 -07:00
Guillermo Rauch
7678acc8e6
Added broadcast with to test.
2011-05-25 00:51:10 -07:00
Guillermo Rauch
5f1d5e30dc
Reverted back to the room flag for Socket. This way we can call SocketNamespace#in
...
when we relay a packet to the namespace, instead of overriding the endpoint acting
directly on SocketNamespace#flag. In addition, the room is only useful for broadcasting,
and it has no effect on the client, so `endpoint` should remain untouched.
2011-05-25 00:49:43 -07:00
Guillermo Rauch
d2d481ca8b
Added test for broadcasting an event.
2011-05-25 00:33:01 -07:00
Guillermo Rauch
9f4f52beb4
Added test for broadcasting json.
...
Removed unnecessary connections counter in broadcast tests.
2011-05-25 00:28:54 -07:00
Guillermo Rauch
3ba715eb49
Added support for the Socket#broadcast getter in Socket#packet
...
Added Socket#setFlags for consistency with SocketNamespace.
2011-05-25 00:22:41 -07:00
Guillermo Rauch
4427b3e64b
Added SocketNamespace#except flag setter.
...
Added; keep track of exceptions (list of session ids) as part of flags, that then
get reset.
Fixed JSON double encoding.
2011-05-25 00:21:51 -07:00
Guillermo Rauch
41ab26b202
Added broadcast test.
2011-05-25 00:21:42 -07:00
Guillermo Rauch
be21ca2f19
Added test for sending json to all clients in a namespace.
2011-05-24 23:55:15 -07:00
Guillermo Rauch
60dec3dd83
Add test for sending json to a room.
2011-05-24 23:52:54 -07:00
Guillermo Rauch
0f0abab380
Added test for emitting an event to a room.
2011-05-24 23:50:18 -07:00
Guillermo Rauch
c3936cb5f9
Add test for sending to all clients in a given room.
2011-05-24 23:47:41 -07:00
Guillermo Rauch
aac298d212
Fixed Socket#to and Socket#join. Make sure that the name of the room preserves the
...
namespace as prefix, unless the namespace is ''. This prevents collisions between
rooms of the '' endpoint with other arbitrary endpoints.
2011-05-24 23:46:59 -07:00
Guillermo Rauch
3f030bd3fb
Fixed SocketNamespace#in, editing the endpoint flag directly instead of creating
...
`room`.
2011-05-24 23:46:31 -07:00
Guillermo Rauch
5dc8ddcda8
Added missing socket id to Store#join call.
2011-05-24 23:34:28 -07:00
Guillermo Rauch
aa4ffff9f9
Fixed broken reference to SocketNamespace object in Socket#join.
2011-05-24 23:33:24 -07:00
Guillermo Rauch
4e2941fc05
Added test for SocketNamespace#emit.
2011-05-24 23:30:09 -07:00
Guillermo Rauch
d29c0bce7b
Added test for SocketNamespace#send.
2011-05-24 23:27:13 -07:00
Guillermo Rauch
be8e6ab05e
Make sure to auto-join client to '' when handshaking.
...
Renamed internal clients dictionary to clientsMap to avoid collisions with
Store#clients.
2011-05-24 23:26:32 -07:00
Guillermo Rauch
7c6da424c0
Added new broadcast flag to Socket.
...
Added `Socket#to` for targeting rooms when broadcasting.
2011-05-24 23:25:48 -07:00
Guillermo Rauch
6e76229eb9
Make sure to encode packets in SocketNamespace#packet.
2011-05-24 23:25:30 -07:00
Guillermo Rauch
d1dfcf4172
Fixed test jsonp handshake parser.
2011-05-24 22:53:53 -07:00
Guillermo Rauch
1726da4ca3
Added support for json-p handshake.
2011-05-24 22:53:42 -07:00
Guillermo Rauch
71ed07d458
Added missing tests for Socket#emit ACK callbacks with endpoint ''.
2011-05-24 22:45:40 -07:00
Guillermo Rauch
a08b791cb8
Fixed Socket#emit with function as last argument (event packet with ACK)
2011-05-24 22:31:29 -07:00
Guillermo Rauch
2083fca33a
Fixed event data ack for endpoint test.
2011-05-24 22:31:06 -07:00
Guillermo Rauch
11c1dda0c8
Fixed test for data acks from the client for endpoint messages.
2011-05-24 22:26:03 -07:00
Guillermo Rauch
3593916578
Fixed test for automatic client acknowledgements to an endpoint.
2011-05-24 22:21:41 -07:00
Guillermo Rauch
8c302fc323
Fixed test for manual data acks with events associated with an endpoint.
2011-05-24 22:17:15 -07:00
Guillermo Rauch
28c9d03dfa
Fixed manual data ack test with endpoint.
2011-05-24 22:11:32 -07:00
Guillermo Rauch
5a93d72e9c
Make sure automatic endpoints preserve endpoint.
2011-05-24 22:09:03 -07:00
Guillermo Rauch
a4b6e2850b
Fixed test for endpoint acknowledgements.
2011-05-24 22:08:40 -07:00
Guillermo Rauch
8545d452bf
Fixed test mechanics for volatile events sent from endpoint in the context of a
...
xhr-polling request/response cycle. See 2295ab92ae .
2011-05-24 21:49:03 -07:00
Guillermo Rauch
93729be50a
Fixed test mechanics of volatile messages sent from an endpoint in the context of a
...
xhr-polling cycle. See 2295ab92ae .
2011-05-24 21:45:52 -07:00
Guillermo Rauch
2295ab92ae
Fixed volatile endpoint message test. The connection event of a custom endpoint
...
fires when the `connect` packet type is received, but at that point no request-
response cycle was open.
2011-05-24 21:38:41 -07:00
Guillermo Rauch
d5721a6177
Fixed broken done reference in test.
2011-05-24 21:30:56 -07:00
Guillermo Rauch
54bc13e686
Fixed test expectation in server sent events with data.
2011-05-24 21:25:20 -07:00
Guillermo Rauch
756e319466
Fixed endpoint expectation in server sent events test.
2011-05-24 21:23:40 -07:00
Guillermo Rauch
8e13926804
Fixed endpoint expectation in json endpoint test.
2011-05-24 21:22:16 -07:00
Guillermo Rauch
6f3e59878f
Fixed test expectation, added missing socket disconnect handler, fixed POST.
2011-05-24 21:20:03 -07:00
Guillermo Rauch
2a202f90d2
Fied typo in test, clarified test title, fixed expectation, fixed POST request.
2011-05-24 21:17:04 -07:00
Guillermo Rauch
bfabd6eadf
Renamed Socket#packets ACK packets count to ackPackets for clarity.
2011-05-24 21:16:45 -07:00
Guillermo Rauch
a647fae3c4
Remvoed volatile messages unsubscription.
2011-05-24 21:03:21 -07:00
Guillermo Rauch
245c57c527
Fix style.
2011-05-24 21:02:26 -07:00
Guillermo Rauch
40106aa8db
Fixed test expectation.
2011-05-24 21:01:54 -07:00
Guillermo Rauch
b663f5dd24
Make sure the Transport assumes delivered messages are pre-encoded.
2011-05-24 21:01:27 -07:00
Guillermo Rauch
79f6e5c538
Make sure that Socket#packet encodes the message prior to publication.
2011-05-24 21:01:05 -07:00
Guillermo Rauch
61eb0a2fd4
Added manual ack data callback handling.
2011-05-24 21:00:48 -07:00
Guillermo Rauch
5ea91da02f
Added missing socket argument to event listener
2011-05-24 20:25:36 -07:00
Guillermo Rauch
fced9cca5e
Fixed test expectation for Ack packet.
2011-05-24 20:24:03 -07:00
Guillermo Rauch
adf9f1150a
Added automatic ACK handling to Transport.
2011-05-24 20:23:45 -07:00
Guillermo Rauch
bd231fcc9b
Make sure to POST the ACK after the response close, so that we can test buffering
...
of ACKs.
2011-05-24 20:01:48 -07:00
Guillermo Rauch
0c4ac66b5f
Fixed missing post reference in xhr-polling test.
2011-05-24 19:56:42 -07:00
Guillermo Rauch
00b600e5c0
Fixed xhr-polling test.
2011-05-24 19:55:12 -07:00
Guillermo Rauch
fafb44dcad
Fixed test expectation for xhr-polling.
2011-05-24 19:54:11 -07:00
Guillermo Rauch
c57cabb982
Fixed missing done reference in xhr-polling test.
2011-05-24 19:53:04 -07:00
Guillermo Rauch
9777886f6c
Fixed test expecetation in xhr-polling.
2011-05-24 19:51:48 -07:00
Guillermo Rauch
aa3b99a630
Added Socket#$emit as the original EventEmitter emit
2011-05-24 18:51:40 -07:00
Guillermo Rauch
b3b4ac439d
Fixed event emitter in test with correct paramaters.
2011-05-24 18:43:16 -07:00
Guillermo Rauch
3be15033cc
Fixed test expectation in messages json comparison.
2011-05-24 18:42:03 -07:00
Guillermo Rauch
c30a8edcc0
Added volatile event tests for htmlfile.
2011-05-22 22:33:25 -07:00
Guillermo Rauch
cf435bf3c6
Add test for deliverable volatile json.
2011-05-22 22:28:56 -07:00
Guillermo Rauch
2869f466be
Added volatile message tests for htmlfile.
2011-05-22 22:23:53 -07:00
Guillermo Rauch
2cc3a85ea1
Added test for undeliverable volatile events for htmlfile.
2011-05-22 21:21:02 -07:00
Guillermo Rauch
8c9e063b74
Added htmlfile test for undeliverable volatile json.
2011-05-22 21:11:37 -07:00
Guillermo Rauch
fcd474e89e
Added htmlfile test for undeliverable volatile messages.
2011-05-22 21:10:20 -07:00
Guillermo Rauch
0e3f0eabe4
Simplified heartbeat htmlfile test, made consistent with websocket one.
2011-05-22 20:47:07 -07:00
Guillermo Rauch
7b486e2b37
Make sure to set drain to false upon htmlfile transport write.
2011-05-22 20:18:03 -07:00
Guillermo Rauch
334c00f2c0
Finished last websocket test.
2011-05-22 20:17:44 -07:00
Guillermo Rauch
a2c30a1416
Fixed event emission from Socket (the name key was missing)
2011-05-22 20:17:20 -07:00
Guillermo Rauch
474f4e6ebd
Added test for delivery of volatile json messages with websocket.
2011-05-22 14:39:43 -07:00
Guillermo Rauch
a5634b0bbd
Added test for delivering volatile messages in websocket.
2011-05-22 14:37:05 -07:00
Guillermo Rauch
f020d012f2
Make sure the socket is considered drained when re-set, specially if a socket is
...
closed before its drain event fires.
2011-05-22 14:28:41 -07:00
Guillermo Rauch
b76901eb56
Removed writeVolatile special handling for polling transports, since it's now handled
...
elegantly across all transports, and polling drained-ness doesn't concern us.
2011-05-22 14:22:41 -07:00
Guillermo Rauch
777746d42d
Changed; moved volatile message subscription to request initialization.
...
Fixed; socket errors now close the transport instead of resulting in a disconnection.
Transport#writeVolatile now considers transport open state.
2011-05-22 14:20:18 -07:00
Guillermo Rauch
e436f90ac9
Removed Transport#drained initialization from WebSocket transport constructor.
2011-05-22 13:25:13 -07:00
Guillermo Rauch
c0e1944462
Added WebSocket#drained initialization to constructor.
2011-05-22 13:24:51 -07:00
Guillermo Rauch
f5edca935d
Added Transport#writeVolatile for every transport.
...
Removed WebSocket#writeVolatile, inherit from Transport instead.
Removed `drain` listener from WebSocket onSocketConnect method.
2011-05-22 13:18:51 -07:00
Guillermo Rauch
9cfffa48e8
Added Transport#drained and Transport#onSocketDrain for every transport.
2011-05-22 13:17:00 -07:00
Guillermo Rauch
9b8ca8cc4b
Added test for undeliverable volatile events for websocket.
2011-05-22 13:02:13 -07:00
Guillermo Rauch
8c9e6a99bc
Added test for undeliverable volatile json in websocket.
2011-05-22 13:01:56 -07:00
Guillermo Rauch
4bba9b1e17
Added test for undeliverable volatile messages for websocket.
2011-05-22 13:01:28 -07:00
Guillermo Rauch
ef610de2b1
Added websocket test for maintaining session by responding to heartbeats.
2011-05-21 21:56:29 -07:00
Guillermo Rauch
c07693b46e
Added websocket test for heartbeat disconnection reason.
2011-05-21 21:41:54 -07:00
Guillermo Rauch
c2b6acbff4
Fixed; make sure to check for the beat presence before examining the disconnection
...
reason in htmlfile heartbeat test.
2011-05-21 21:38:34 -07:00
Guillermo Rauch
4ab6e9592f
Fixed; make sure to check for the heartbeat being sent to client in htmlfile
...
heartbeat test.
2011-05-21 21:36:33 -07:00
Guillermo Rauch
227e14c71b
Fixed global leak in websocket test.
2011-05-21 21:34:21 -07:00
Guillermo Rauch
ef435a0b03
Finished incomplete xhr-polling test.
2011-05-21 21:31:10 -07:00
Guillermo Rauch
c8a73d56c8
Added more xhr-polling tests.
2011-05-21 21:01:03 -07:00
Guillermo Rauch
07f5d1ff64
Added MemoryStore#clients.
...
Added MemoryStore#join.
Added MemoryStore#leave.
2011-05-21 20:57:41 -07:00
Guillermo Rauch
8416e76114
Added SocketNamespace#store shortcut.
...
Added SocketNamespace#in
Added SocketNamespace#for
Implemented SocketNamespace#packet
Fixed SocketNamespace#emit
Fixed SocketNamespace#send
2011-05-21 20:56:31 -07:00
Guillermo Rauch
b4034878eb
Added jsonp-polling tests.
2011-05-19 15:53:27 -07:00
Guillermo Rauch
b5b72bd212
Fixed; make sure handshake responses are not parsed.
2011-05-19 15:50:55 -07:00
Guillermo Rauch
88d5daa3b5
Finished jsonp-polling transport.
2011-05-19 15:35:18 -07:00
Guillermo Rauch
4f4d25e954
Fixed parameter names for htmlfile
2011-05-19 14:53:56 -07:00
Guillermo Rauch
f47a9dc110
Fixed parameter names for xhr-polling
2011-05-19 14:51:55 -07:00
Guillermo Rauch
882fb96567
Fixed; constructor parameter names for websocket.
2011-05-19 14:51:08 -07:00
Guillermo Rauch
aa1ba762ae
All tests passing
2011-05-19 13:26:26 -07:00
Guillermo Rauch
287dd40dd2
Fixed jsonp-polling and xhr-polling doWrite with no data.
2011-05-19 13:25:35 -07:00
Guillermo Rauch
ccac8fe8a4
Fixed; disable the Nagle algorithm for websocket.
2011-05-19 13:17:42 -07:00
Guillermo Rauch
43f6071f4f
Fixed jsonp-polling writes.
2011-05-19 13:17:25 -07:00
Guillermo Rauch
b4b7c0b428
Fixed; override clearTimeouts for clearing polling timeout for polling transports.
2011-05-19 13:16:59 -07:00
Guillermo Rauch
750e8a9272
Fixed; removed noDelay for all sockets.
2011-05-19 13:16:43 -07:00
Guillermo Rauch
118f5b2371
Commented out failing test related to connection notifications.
2011-05-18 20:40:37 -07:00
Guillermo Rauch
d64fdfa422
Added WebSocket tests.
2011-05-18 20:40:20 -07:00
Guillermo Rauch
ffb6557880
Hacked; expose the stream from the WebSocket client for more flexibility during
...
testing.
2011-05-18 20:39:52 -07:00
Guillermo Rauch
4f293ae44e
Completed WebSocket transport.
...
Added (naive) support for closing frames.
2011-05-18 20:39:24 -07:00
Guillermo Rauch
080abccf10
Fixed distributed connections detection.
...
Fixed; make sure all heartbeats are captured.
Changed; make sure to close on our end when the socket 'end'/'close' event fires.
2011-05-18 20:37:51 -07:00
Guillermo Rauch
7f788e1404
Fixed; added callback support to MemoryStore#publish.
2011-05-18 20:37:24 -07:00
Guillermo Rauch
887eb42b2f
Added node websocket client.
2011-05-17 18:52:41 -07:00
Guillermo Rauch
70c815dd47
Modifications to README.
2011-05-17 18:52:30 -07:00
Guillermo Rauch
b086a526a1
Added initial websocket test suite.
2011-05-17 18:52:24 -07:00
Guillermo Rauch
76a2da8cb8
Fixed style
2011-05-17 18:51:59 -07:00
Guillermo Rauch
a9ed766b85
Fixed; this.connection is undefined.
2011-05-17 18:51:44 -07:00
Guillermo Rauch
6a513d163b
Fixed; unknown transports just end the connection.
...
Fixed; origin verification happens at handshake time.
2011-05-17 18:51:11 -07:00
Guillermo Rauch
d9015b7732
Fix package.json (thanks @dshaw)
2011-05-17 17:03:22 -07:00
Guillermo Rauch
53bedb7abd
Added HTMLFile tests.
2011-05-17 16:12:39 -07:00
Guillermo Rauch
36b7ffe70c
Fix style
2011-05-17 16:12:28 -07:00
Guillermo Rauch
3595cc4f0b
Added HTTPClient export in test utilities.
2011-05-17 16:12:06 -07:00
Guillermo Rauch
c0481f615e
Fixed json-p debug instrumentation.
2011-05-17 16:11:51 -07:00
Guillermo Rauch
dfae47d42a
Make sure to disable heartbeat intervals in polling transports.
2011-05-17 16:10:47 -07:00
Guillermo Rauch
f5133b6a6f
Fixed style.
2011-05-17 16:10:33 -07:00
Guillermo Rauch
da95a4e31f
Added cross-connection heartbeat clearing. In a XHR transport, if the POST request
...
goes through a different connection, we want to clear the heartbeat timeout set in
the connection associated with the GET request.
Added disconnect reasons.
2011-05-17 16:09:01 -07:00
Guillermo Rauch
f65d381961
Changed; hide away message publishing behind message, hearbeat methods added to
...
the Store.
Added support for reason passing in the store callbacks.
2011-05-17 16:08:13 -07:00
Guillermo Rauch
d35998a633
Added reason support to disconnect callbacks.
2011-05-17 16:07:54 -07:00
Guillermo Rauch
2bf65750f3
Added; test/common exports HTTPClient for transport inheritance.
...
Added the possibility of HTTPClient not buffering responses.
2011-05-17 11:22:03 -07:00
Guillermo Rauch
e6ad372ef3
Changed; finished refactoring tests. All passing.
2011-05-17 10:52:45 -07:00
Guillermo Rauch
e9ab235174
Tests refactored.
2011-05-16 20:07:56 -07:00
Guillermo Rauch
8f0f71ac92
Changed; cleaned up test utilities:
...
- Moved all the logic into a reusable class.
- Minimize globals by only exposing `client` and `create`
- Separate `http.Agent` per clients so that we can terminate all sockets at once.
- Implemented `create` to easily spawn a socket.io server for a given client.
2011-05-16 19:45:03 -07:00
Guillermo Rauch
60ad6e3ceb
Fixed; HTMLFile#doWrite never gets called since it's an HTTP non-polling transport.
2011-05-16 19:44:37 -07:00
Guillermo Rauch
4724724e20
Changed; only do forced disconnection handling for writable sockets. This prevents
...
Transport objects created with POST requests from triggering disconnect events too.
Changed; moved forced disconnect logic into Transport#onForcedDisconnect.
2011-05-16 19:43:30 -07:00
Guillermo Rauch
5e61a3bd5a
Changed; publish the disconnect event after the disconnect-force internal event.
2011-05-16 19:43:08 -07:00
Guillermo Rauch
0bebd38042
Changed; renamed SocketNamespace#nsp to SocketNamespace#name.
...
Changed; make sure to only emit the connection event when a client is registered for
the default namespace.
Added `connect` packet handler.
2011-05-16 19:41:52 -07:00
Guillermo Rauch
ad1946e79d
Fix; make sure to reset length when parsing a payload.
2011-05-15 19:20:14 -07:00
Guillermo Rauch
f63f72cdac
Added additional packet to payload decoding test.
2011-05-15 19:20:03 -07:00
Guillermo Rauch
968afd89a5
Fixed handling of incoming POST requests to a XHR transport.
...
Fixed payloading encoding.
2011-05-15 19:07:04 -07:00
Guillermo Rauch
30ceabf10f
Removed __io counter in incoming sockets.
2011-05-15 19:06:21 -07:00
Guillermo Rauch
b7c877b497
Added additional parser tests.
2011-05-15 19:06:01 -07:00
Guillermo Rauch
db87502b9b
Fixed parser#encodePayload
2011-05-15 19:05:46 -07:00
Guillermo Rauch
9820716ff0
Fixed client packet disconnect test.
2011-05-15 13:37:01 -07:00
Guillermo Rauch
5f028c5ca9
Fixed; moved data decoding logic into base HTTP transport interface.
2011-05-15 13:36:21 -07:00
Guillermo Rauch
f2060d1283
Added remaining tests.
2011-05-14 22:04:01 -07:00
Guillermo Rauch
5a164ed053
Fixed tests helpers.
2011-05-14 20:25:46 -07:00
Guillermo Rauch
3dda158065
Changed; make sure to Transport#resume only if the client is connected.
...
Fixed; send disconnection packet when forced disconnecting.
2011-05-14 19:22:32 -07:00
Guillermo Rauch
4f23e97310
Changed; make sure to clean up client prior to emission of disconnection events.
2011-05-14 19:22:06 -07:00
Guillermo Rauch
af57fd9801
Changed; add disconnect check to Socket#disconnect.
2011-05-14 19:21:42 -07:00
Guillermo Rauch
f1f3918739
Changed instrumentation for disconnection URI from error to debug.
2011-05-14 19:21:19 -07:00
Guillermo Rauch
c6f4a5701f
Merge branch 'master' of github.com:LearnBoost/Socket.IO-node
2011-05-14 00:55:13 -07:00
Guillermo Rauch
c6f8009e69
Ignore files
2011-05-10 14:49:46 -07:00
Guillermo Rauch
6ed7964f8f
Fixed requests that just target the resource.
2011-05-10 14:49:13 -07:00
Guillermo Rauch
4f6734b006
Merge pull request #202 from 3rd-Eden/master
...
Misc
2011-05-09 15:19:46 -07:00
Guillermo Rauch
5ddc23f82e
Fixed style [OCD-related work].
2011-05-08 22:42:57 -07:00
Guillermo Rauch
910995a8f2
Fixed emission of non-socket.io events in SocketNamespace.
2011-05-08 22:42:31 -07:00
Guillermo Rauch
5f8192799b
Fixed iteration of namespaces in Manager
2011-05-08 22:42:16 -07:00
Guillermo Rauch
790e916cd4
OCD-related work.
2011-05-08 20:46:29 -07:00
Guillermo Rauch
7f3c5f6a73
Fixed typo
2011-05-08 20:44:54 -07:00
Guillermo Rauch
4889057f9a
Changed/Added some tests
2011-05-08 20:40:18 -07:00
Guillermo Rauch
a27a6ad2b6
Changed; only output CORS headers for cross-domain requests to minimize framing.
...
Changed debug instrumentation.
2011-05-08 20:38:53 -07:00
Guillermo Rauch
0a69b580c4
Added WebSocket#writeVolatile (and WebSocket#drained state)
...
Added WebSocket#doClose
2011-05-08 20:38:10 -07:00
Guillermo Rauch
6665e08cb7
Added HTTPTransport#doClose.
2011-05-08 20:37:49 -07:00
Guillermo Rauch
600c05bbbe
Changed; leveraged Transport#close instead of Transport#write with empty string.
...
Added more debug instrumentation.
2011-05-08 20:37:08 -07:00
Guillermo Rauch
d5e922ba12
Changed debug statement.
2011-05-08 20:36:49 -07:00
Guillermo Rauch
c39191b3fd
Added the notion of forced disconnects.
...
Added Transport#onSocketConnect interface.
Added Transport#clearTimeouts
Added heartbeat response handling.
Added Transport#close, Transport#onClose, chanaged Transport#end.
2011-05-08 20:35:38 -07:00
Guillermo Rauch
eb77c5e01a
Added disconnction handler in Memory store.
2011-05-08 20:35:22 -07:00
Guillermo Rauch
d739f560b8
Added SocketNamespace#log getter.
...
Added SocketNamespace#socket to retrieve/create Sockets.
Added packet handling.
2011-05-08 20:34:28 -07:00
Guillermo Rauch
c32708c383
Changed; make sure to ignore newListener event when Socket#emit is overridden.
...
Changed; keep track of disconnected state and ACK callbacks.
Added; make sure to emit the `disconnect` event.
Removed readyState handling, shouldn't be part of the public API.
2011-05-08 20:31:21 -07:00
Guillermo Rauch
34a701fb7f
Changed; initialize default namespace with Manager#for instead of manually.
...
Changed; perform error handling for Store#isHandshaken.
Added; handle manual disconnect urls.
Changed; make sure to initialize a socket for all namespaces when a client connects.
Changed; delegate packet handling to the appropriate SocketNamespace.
Changed; cache regular expression for checkRequest method.
2011-05-08 20:28:16 -07:00
Guillermo Rauch
b7488e7a13
Added failing disconnection event test
2011-05-07 18:33:43 -07:00
Guillermo Rauch
ed12f347eb
Changed; make sure to clear polling timeout if the connection closes.
...
Added "clearPollTimeout" method
2011-05-07 18:33:17 -07:00
Guillermo Rauch
5d7c5f7471
Changed; make sure to compare the decoded packet representation with an empty
...
endpoint and advice.
2011-05-07 18:25:40 -07:00
Guillermo Rauch
416cd66591
Fix for detecting HTTP-based transports for get() test shortcut.
2011-05-07 18:25:14 -07:00
Guillermo Rauch
c3171be7a8
Added; implemented message handling at transport level for heartbeat clearing and
...
disconnection handling.
2011-05-07 18:24:45 -07:00
Guillermo Rauch
8cd476295a
Added Store disconnect method
2011-05-07 18:24:29 -07:00
Guillermo Rauch
209426a9b0
Changed; implemented write-only Socket.
...
Added log accessor to Socket
2011-05-07 18:23:59 -07:00
Arnout Kazemier
8f1d96ad7f
Updated the readme, fixed typos, changed socket.io requires to socket.io-node requires as that is the name according to the package.json.
...
Also updated the styling to fancy pancy HTML highlighting
2011-05-07 13:58:32 +02:00
Arnout Kazemier
3a5ab7675d
Updated the package.json, added more keywords. Added repo and fixed the engine requirement or it will not work with future node versions.
2011-05-07 13:51:41 +02:00
Guillermo Rauch
ece9b120a9
Changed; allow for writeonly sockets (used to permit a specific socket to message
...
another socket, or group of sockets).
2011-05-06 20:23:42 -07:00
Guillermo Rauch
981a0e22b4
Changed; leverage new utilities signature.
2011-05-06 20:23:33 -07:00
Guillermo Rauch
80e8777dba
Changed; leverage new utilities signature
2011-05-06 20:23:12 -07:00
Guillermo Rauch
0df8acc280
Fixed; ignore parser for empty GET responses.
...
Changed; style
2011-05-06 20:22:41 -07:00
Guillermo Rauch
4243ddfb89
Changed; utility functions signature now path, port, opts, fn, with opts being
...
optional.
Changed; parser override only for paths that include transports.
Changed; style.
2011-05-06 20:22:07 -07:00
Guillermo Rauch
9215d77898
Changed; make sure that get() decodes the payload and also preserves the frame parser.
2011-05-06 17:28:42 -07:00
Guillermo Rauch
d2c74536e0
Changed; improved htmlfile framing size.
2011-05-06 17:12:52 -07:00
Guillermo Rauch
deb45624ba
Changed; test utilities now expose get / post / req
...
Changed; req now accepts a response parser
2011-05-06 17:01:11 -07:00
Guillermo Rauch
136850a7b5
Fixed; package json is now actual json ( fixes #199 )
2011-05-06 16:46:57 -07:00
Guillermo Rauch
42a4e6bc9e
Updated README
2011-05-06 15:41:04 -07:00
Guillermo Rauch
c2d0774d46
Removed const (slow)
2011-05-06 15:12:51 -07:00
Guillermo Rauch
1514af064f
Socket.IO 0.7-pre
2011-05-05 08:49:40 -07:00