jovianserver
Jovian Framework RPC Socket Server
Last updated 4 years ago by dwx .
GPL3 · Repository · Original npm · Tarball · package.json
$ cnpm install jovianserver 
SYNC missed versions from official npm registry.

Jovian RPC Socket Server

A small RPC Socket Server message processor for node. This processor designed for listening to socket events and processing their RPC requests. The processor is fully JSON RPC 2.0 compliant and can be used without a socket server as a stand-alone RPC message processor.

NPM Version DWX Awesome

// Include the Jovian Server
var Server = require('jovianserver');

// Extend the server class with your own methods that 
// will be executed by the RPC Request Processor. Every
// method should have "socket" as it's first parameter
Server.prototype.myMethod = function(socket, param1, param2) {
    // Some code
}

var myServer = new Server();
myServer.start(port);

Installation

$ npm install --save jovianserver

Features

  • JSON RPC 2.0 Implementation
  • Custom server implementation sitting on top of socket.io
  • Pseudo network handshaking to pass custom user meta data to/from the server

Documentation

In progress

Note

Because this server is an extension of the JovianLib RPC processor, it can function offline without starting the socket server. You can also pass in a custom socket class in place of the standard socket.io server and still
make use of RPC processor by connecting the custom socket implementation to the server's listening methods.

Release History

  • 0.1.6 Internalized socket.io
  • 0.1.0 Initial release

Current Tags

  • 0.1.7                                ...           latest (4 years ago)

8 Versions

  • 0.1.7                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |