jovianserver
v0.1.7
Published
Jovian Framework RPC Socket Server
Downloads
4
Readme
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.
// 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