Comparing version 0.0.1 to 0.0.2
@@ -19,3 +19,3 @@ var punch = require('./punch'); | ||
if (rinfo) { | ||
socket.linfo.punchTime = rinfo.punchTime = Date.now() + 5000; | ||
socket.linfo.punchTime = rinfo.punchTime = Date.now() + 10000; | ||
onrinfo(rinfo); | ||
@@ -22,0 +22,0 @@ } else { |
{ | ||
"name": "anygram", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,20 +0,5 @@ | ||
var irc = require('slate-irc'); | ||
var net = require('net'); | ||
var irc = require('./irc'); | ||
var client = irc({name: 'ag_client'}); | ||
var stream = net.connect({ | ||
port: 6667, | ||
host: "174.143.119.91" // freenode @rackspace | ||
}); | ||
var client = irc(stream); | ||
var name = 'ag_client'; | ||
client.pass(''); | ||
client.nick(name); | ||
client.user(name, name); | ||
var keepaliveTimer = setInterval(()=>client.send('/ping '+ name), 15000); | ||
var anygram = require('.'); | ||
var s = anygram.connect(client, 'ag_server'); | ||
@@ -25,2 +10,2 @@ | ||
socket.on('message', (data) => process.stdout.write(data)); | ||
}) | ||
}); |
@@ -1,26 +0,8 @@ | ||
var irc = require('slate-irc'); | ||
var net = require('net'); | ||
var irc = require('./irc'); | ||
var client = irc({name: 'ag_server'}); | ||
var stream = net.connect({ | ||
port: 6667, | ||
host: "174.143.119.91" // freenode @rackspace | ||
}); | ||
var client = irc(stream); | ||
var name = 'ag_server'; | ||
client.pass(''); | ||
client.nick(name); | ||
client.user(name, name); | ||
var keepaliveTimer = setInterval(()=>client.send('/ping '+ name), 15000); | ||
var anygram = require('.'); | ||
anygram.createServer(client, (socket) => { | ||
console.log('conncted'); | ||
console.log(socket.linfo); | ||
console.log(socket.rinfo); | ||
process.stdin.on('data', (data) => socket.send(data, socket.rinfo.port, socket.rinfo.address)); | ||
socket.on('message', (data) => process.stdout.write(data)); | ||
// echo server | ||
socket.on('message', (data) => socket.send(data, socket.rinfo.port, socket.rinfo.address)); | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4999
8
1
144