Commit a75b396f by 蒋海军

Update faye.js

Fix fs.writeFileSync The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (5063)
parent ef20e726
......@@ -41,7 +41,7 @@ if ( fs.existsSync(redisFilePath) ) {
if ( !fs.existsSync("tmp") ) fs.mkdirSync("tmp");
if ( !fs.existsSync("tmp/pids") ) fs.mkdirSync("tmp/pids");
fs.writeFileSync('tmp/pids/faye.' + port + '.pid', process.pid);
fs.writeFileSync('tmp/pids/faye.' + port + '.pid', String(process.pid));
var server = http.createServer(),
bayeux = new faye.NodeAdapter({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment