3.6.1 • Published 4 years ago

yakjs v3.6.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

YAKjs logo

GitHub version npm GitHub license

A local server to stub complex WebSocket back-ends.

Documentation

Visit yakjs.com for full documentation.

Getting started

YAKjs requires nodejs.

Install via npm

npm install yakjs -g

Start YAKjs

> yakjs

This will start YAKjs using default port 8790.

Open the YAKjs User Interface

Open the YAKjs user interface at http://localhost:8790

Versions

3.5.0

InstanceStarted event

Adds a new InstanceStarted event with access to the express app. Register your routes or own middleware for an instance.

When running an instance on port 9020 with the example plugin, then a GET request can be sent to http://localhost:9020 Keep in mind that an instance can use multiple plugins, use your routes accordingly to avoid conflicts.

/**
 * @constructor
 * @struct
 * @see {!PluginWorker}
 */
function HelloWorldPlugin() {
    /**
     * @param {!InstanceStartedEvent} event
     */
    this.onInstanceStarted = event => {
        event.app.get('/', function(req, res) {
            res.send('Hello world!');
        });
    };
}

/**
 * @type {!Plugin}
 */
module.exports = {
    name: 'hello-world',
    description: 'Say hello to the world.',
    createWorker: () => new HelloWorldPlugin()
};

Removes the WSS/HTTPS experiment

Removes the YAKjs server configuration to enable WSS/HTTPS with a (unsecure) test certificate.

3.6.1

4 years ago

3.6.0

5 years ago

3.5.0

5 years ago

3.4.2

5 years ago

3.4.1

5 years ago

3.4.0

5 years ago

3.3.1

5 years ago

3.3.0

6 years ago

3.2.0

6 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.1.0-beta.1

6 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

3.0.0-alpha.4

7 years ago

3.0.0-ALPHA.3

7 years ago

3.0.0-alpha.2

7 years ago

3.0.0-alpha.1

7 years ago

2.2.0

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

2.0.0-beta.2

8 years ago

2.0.0-beta.1

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

1.0.0-beta.2

9 years ago