runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

[net] connection refused-error #72

Open kesla opened 9 years ago

kesla commented 9 years ago

hey,

From what I could see we don't error when there's you try to make a tcp-connection to a server that doesn't exists.

const runtimejs = require('runtimejs');
const TCPSocket = runtimejs.net.TCPSocket;

var client = new TCPSocket();
client.onerror = function(err) {
  console.log('I thought that this would run');
}
client.open('127.0.0.1', 666);
kesla commented 9 years ago

@iefserge I can work on a PR for this - if I've understood this correctly - that there should be an error in the example above?

iefserge commented 9 years ago

@kesla sure, tcp reset feature is not implemented

kesla commented 8 years ago

@iefserge idk if this is still an issue?

iefserge commented 8 years ago

@kesla yes