usi

uservices-socket.io-server

Deploy remote proxies of services on the server via socket.io

Showing:

Popularity

Downloads/wk

3

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

3

Size (min+gzip)

11.2KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

Micro (u)Services - Socket.IO Server Proxies

Overview

Create remote proxies of uServices via socket.io. This package is for the server.

This is a fully-symmetric approach. In other words uServices on the server can be made available as remote proxies via the localProxy implementation.

Alternatively uServices on other tiers can be made available to the server via the remoteProxy implementation.

Usage

Install:

npm install uservices-socket.io.-server

Basic Usage: (see the uServices project for examples on how to create a uService spec)

import {createLocalProxy} from 'uservices-socket.io-server'

let httpServer = http.createServer(fn)
let ioServer = io(httpServer)
createLocalProxy(ioServer, chatSpec, chatService)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100