0.3.0 • Published 2 years ago

reacting-squirrel-plugin-rsnut v0.3.0

Weekly downloads
126
License
MIT
Repository
-
Last release
2 years ago

reacting-squirrel-plugin-rsnut

The plugin to load resting-squirrel docs and converts it to socket events.

Usage

rsconfig.json

{
	...config,
	"plugins": [
		...plugins,
		[
			"reacting-squirrel-plugin-rsnut",
			{
				"apis": [
					{
						"name": "api",
						"connectorOptions": {
							"url": "https://some.api.url"
						}
					}
				]
			}
		]
	]
}

typescript

import path from 'path';
import Server from 'reacting-squirrel/server';
import rs from 'resting-squirrel';
import RSNut from 'reacting-squirrel-plugin-rsnut';

const server = new Server({
	port: 8080,
});

server.registerPlugin(new RSNut({
	apis: [
		{
			name: 'api',
			connectorOptions: {
				url: 'https://some.api.url',
			},
		},
	],
}));
0.3.0

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago