Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anygram

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anygram - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

irc.js

2

index.js

@@ -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));
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc