File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
- Unreleased
2
- ======
1
+ # Unreleased
2
+
3
+ ## ** BREAKING CHANGES**
4
+ * ` installHandlers(server, options) ` renamed to ` attach(server) ` and only takes a single argument.
5
+ This means you cannot use the same SockJS server installed at multiple prefixes.
6
+ In practice this was confusing and not common.
7
+ * ` websocket ` option is deprecated, but still respected. Please use the new ` transports ` option.
8
+ * Node.js ` >= 6.5.0 ` is required.
3
9
10
+ ## Other Fixes/Changes
4
11
* Convert from coffeescript to ES6.
5
12
* Update minimum Node.js version to 6.X.
6
13
* Update SockJSConnection implementation to be compatible with latest Node.js streams.
7
14
* SockJSConnection properties ` readable ` and ` writable ` have been removed. These are used internally by Node.js streams.
8
15
* Remove ` console.log ` logging by default.
9
16
* Remove usage of exceptions for flow control.
10
17
* Add ` debug ` logs for easier troubleshooting.
18
+ * Added ` transports ` option to allow selection of specific transports.
19
+ * Added ` detach(server) ` function to remove SockJS from a HTTP server instance.
20
+ * Update dependencies.
21
+ * Examples have been updated to use latest versions of libraries.
11
22
12
23
13
24
0.3.19
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ and emits following event:
191
191
All http requests that don't go under the path selected by ` prefix `
192
192
will remain unanswered and will be passed to previously registered
193
193
handlers. You must install your custom http handlers before calling
194
- ` attach ` .
194
+ ` attach ` . You can remove the SockJS handler later with ` detach ` .
195
195
196
196
### Connection instance
197
197
You can’t perform that action at this time.
0 commit comments