UNPKG

actionhero

Version:

actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks

38 lines (36 loc) 941 B
exports['default'] = { servers: { socket: function(api){ return { enabled: false, // TCP or TLS? secure: false, // Passed to tls.createServer if secure=true. Should contain SSL certificates serverOptions: {}, // Port or Socket port: 5000, // Which IP to listen on (use 0.0.0.0 for all) bindIP: '0.0.0.0', // Enable TCP KeepAlive pings on each connection? setKeepAlive: false, // Delimiter string for incoming messages delimiter: '\n', // Maximum incoming message string length in Bytes (use 0 for Infinite) maxDataLength: 0, // What message to send down to a client who requests a `quit` goodbyeMessage: 'Bye!' }; } } }; exports.test = { servers: { socket: function(api){ return { enabled: true, port: 5001, secure: false }; } } };