hipc

0.1.1 • Public • Published

hipc - http ipc

var hipc = require('hipc');

hipc(function (req, res) {
    console.log(req.method, req.url);
    res.end("IPC OK: " + req.url);
}).listen('/tmp/app.socket');

listen options / опции

  • autoClose - close on process exit / закрывать сервер при выходе из процесса
  • chmod - set chmod file after listen / установить chmod после запуска сервера
  • onclose - callback before exit / callback перед выходом
  • path - ipc path / путь к файлу

nginx conf

server {
	listen 80;
	server_name ipc.domain.com;
	location / {
		proxy_pass http://unix:/tmp/app.socket:/;
	}
}

Package Sidebar

Install

npm i hipc

Weekly Downloads

4

Version

0.1.1

License

ISC

Last publish

Collaborators

  • flyink13