spot-server

Spot server module

For usage and examples, see the example directory and scripts/spot-server.js.

Usage:

var Spot = require('spot-framework');
var Server = require('spot-server');
var io = require('socket.io')(http);
var connector = new Server.connectors.Postgres('postgres://localhost');

var spot = new Spot({
  sessionType: 'server'
});

var server = new Server(io, connector, spot);
server.run();
Source:

Methods

(static) run()

Connect to the websocket and start listening

Source:

(static) sendData()

Send data from the server to the client

Source:

(static) sendDatasets()

Send Datasets from the server to the client

Source:

(static) sendDataview()

Send Dataview from the server to the client

Source:

(static) sendFacets()

Send Facets of a dataset from the server to the client

Source:

(static) sendMetaData()

Send metadata from the server to the client

Source: