UNPKG

pm25

Version:

Production process manager for Node.JS applications with a built-in load balancer.

8 lines (6 loc) 276 B
var net = require('net'); var server = net.createServer(function (socket) { socket.write('Welcome to the Telnet server of the process' + (process.env.NODE_APP_INSTANCE || 'must be run on pm2')); }).listen(8888, function() { console.log('Listening on port %s', 8888); });