Core libraries and tools part for pro architecture. It's a submodule - use from this perspective http://git.maniak.pro/madmaniak/pro
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
337 B
11 lines
337 B
global.L = require('lodash')
|
|
Primus = require('primus')
|
|
disque = require('thunk-disque')
|
|
global.Disque = disque.createClient(["#{process.env.disque_host}:#{process.env.disque_port}"])
|
|
|
|
module.exports.createPrimus = (port) ->
|
|
primus = Primus.createServer
|
|
port: port
|
|
parser: 'binary'
|
|
compression: true
|
|
transformer: 'uws'
|
|
|