}).listen(config.master.cwebport); console.log(' http server start at http://127.0.0.1:' + config.master.cwebport);
httpServer.listen(port, function () { console.log('sio Server listening at port %d', port); });
/** Start the server listening on the given port */ start(robotMasterUrl: string , port?: number, hostname?: string) { if (this.running) { return; } this.running = true; this.robotMasterUrl = robotMasterUrl; let self = this; port = port || 8000; self.hostname = hostname || 'localhost'; self.port = port; self.connections = []; self.server = http.createServer(function (req, res) { self.route_(req, res); }); self.server.on('connection', function (c) { // We need to track incoming connections, beause Server.close() won't terminate active // connections by default. c.on('close', function () { let idx = self.connections.indexOf(c); if (idx !== -1) { self.connections.splice(idx, 1); } }); self.connections.push(c); }); self.server.listen(this.port, this.hostname); self.emit('start', self.hostname, self.port); return self; }
this.server.listen(port);
this.tcpServer.listen(this.port); process.nextTick(cb);
let self = this; this.server = new net.Server(); this.server.listen(this.port); logger.info('[MQTTConnector] listen on %d', this.port);
this.server.listen(port);
this.server.listen(port);
//Start server httpServer.listen(port, ()=>{ console.log('Server listening on port:' + port); });
require('http').createServer((req, res) => res.end([PORT1, req.method, req.url, req.headers.host || ''].join(' ')) ).listen(PORT1, () => console.log(' http://localhost:' + PORT1 + '/'));
}).listen(config.master.cwebport); console.log(' http server start at http://127.0.0.1:' + config.master.cwebport);
this.server.listen(port);
this.server.listen(port);
//Start server httpServer.listen(port, ()=>{ console.log('Server listening on port:' + port); });