Skip to content

christyharagan/uservices-socket.io-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published