now uses npm package
This commit is contained in:
@@ -27,15 +27,15 @@ web-ext run # this will launch a new firefox instance
|
|||||||
|
|
||||||
Then, start the server:
|
Then, start the server:
|
||||||
```bash
|
```bash
|
||||||
cd server
|
mkdir server && cd server
|
||||||
npm install http ws
|
npm install @lawlers/4play
|
||||||
node hello-world.js
|
node hello-world.js
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example server script
|
## Example server script
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const fplay = require("./fplay.js");
|
const fplay = require("@lawlers/4play");
|
||||||
|
|
||||||
var port = 3030;
|
var port = 3030;
|
||||||
var timeout = 30000;
|
var timeout = 30000;
|
||||||
|
|||||||
Reference in New Issue
Block a user