Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including uservices-socket.io-server with all npm packages installed. Try it out:

var uservicesSocketIoServer = require("uservices-socket.io-server")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

uservices-socket.io-server v0.4.3

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

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)

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free