NodeJSのTCP、HTTPでDomain Socketを監視する方法

TCP側参考コード:
var net = require('net’);
net.createServer(function (socket) {
socket.on('data’, function (data) {
socket.write('received: ' + data);
});
}).listen('/tmp/node_tcp.sock’);

「’/tmp/node_tcp.sock’」に接続
参考コード:
telnet /tmp/node_tcp.sock
Trying /tmp/node_tcp.sock…
Connected to (null).
Escape character is '^]’.
welcome to arkgame.com
received: welcome to arkgame.com

JavaScript

Posted by arkgame