Permalink
Browse files

Replace faye-websocket with isomorphic-ws

  • Loading branch information...
jodal committed Oct 9, 2018
1 parent e2e2118 commit 703d18b82c34ab779471aa0cb2e5d90a3c39cb26
Showing with 22 additions and 35 deletions.
  1. +5 −0 README.md
  2. +0 −1 lib/websocket/browser.js
  3. +0 −4 lib/websocket/package.json
  4. +0 −1 lib/websocket/server.js
  5. +3 −2 package.json
  6. +2 −2 src/mopidy.js
  7. +12 −25 yarn.lock
@@ -86,6 +86,11 @@ yarn build
const Mopidy = new Mopidy(...);
```
- Modernized dependencies:
- `isomorphic-ws` and `ws` has replaced our own wrapper around the browser's
`WebSocket` API and `faye-websocket` on Node.
- Modernized development stack:
- Testing: Jest has replaced Buster.JS and Sinon.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -39,8 +39,9 @@
},
"dependencies": {
"bane": "~1.1.0",
"faye-websocket": "~0.9.2",
"when": "~3.7.2"
"isomorphic-ws": "^4.0.1",
"when": "~3.7.2",
"ws": "^6.1.0"
},
"devDependencies": {
"eslint-config-airbnb-base": "^13.1.0",
@@ -1,6 +1,6 @@
const bane = require("bane");
const when = require("when");
const websocket = require("../lib/websocket/");
const WebSocket = require("isomorphic-ws");
class Mopidy {
constructor(settings) {
@@ -312,7 +312,7 @@ class ServerError extends Error {
}
Mopidy.ServerError = ServerError;
Mopidy.WebSocket = websocket.Client;
Mopidy.WebSocket = WebSocket;
Mopidy.when = when;

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 703d18b

Please sign in to comment.