|
@@ -191,12 +191,6 @@ Socket.prototype.send = function(data) {
|
|
|
|
|
|
http.open('post', url, true);
|
|
|
http.setRequestHeader('Content-Type', 'application/json');
|
|
|
- http.onload = function() {
|
|
|
- // This happens if destination peer is not available...
|
|
|
- if (http.responseText != 'OK') {
|
|
|
- self.emit('unavailable', data.dst)
|
|
|
- }
|
|
|
- }
|
|
|
http.send(message);
|
|
|
}
|
|
|
};
|