require('../lib/fin/lib/js.io/packages/jsio')

jsio.addPath('./lib/fin/js', 'shared')
jsio.addPath('./lib/fin/js', 'server')
jsio.addPath('.', 'fan')

jsio('import fan.Server')
jsio('import fan.Connection')

var redisEngine = require('../lib/fin/engines/redis')
var fanServer = new fan.Server(fan.Connection, redisEngine)

fanServer.listen('csp', { port: 5555 }) // for browser clients
fanServer.listen('tcp', { port: 5556, timeout: 0 }) // for robots

require('../lib/fin/lib/js.io/packages/jsio')

jsio.addPath('./lib/fin/js', 'shared')
jsio.addPath('./lib/fin/js', 'server')
jsio.addPath('.', 'fan')

jsio('import fan.Server')
jsio('import fan.Connection')

var redisEngine = require('../lib/fin/engines/node')
var fanServer = new fan.Server(fan.Connection, redisEngine)

fanServer.listen('csp', { port: 5555 }) // for browser clients
fanServer.listen('tcp', { port: 5556, timeout: 0 }) // for robots

Use the node engine by default