+1
-1
| { | ||
| "name": "planet" | ||
| , "version": "0.14.7" | ||
| , "version": "0.14.8" | ||
| , "author": "Enrique Erne (http://mild.ch/)" | ||
@@ -5,0 +5,0 @@ , "description": "collaboratively edit anything" |
@@ -90,3 +90,3 @@ var expect = require('expect.js'); | ||
| it('should start planet without a http server and connect with a client', function(done){ | ||
| it('should start planet without a http server and connect with a client', function(done){ | ||
@@ -119,3 +119,3 @@ var socket = io.listen(8103, {'log level': 1}); | ||
| // server | ||
| var planet = require('planet'), | ||
| var planet = require('../../'), | ||
| socket = require('socket.io').listen(8104, { | ||
@@ -122,0 +122,0 @@ 'log level': 1 |
| console.log('node', process.version); | ||
| // server | ||
| (function(){ | ||
| var io = require('socket.io'); | ||
| console.log('socket.io', io.version); | ||
| var socket = io.listen(8080, { | ||
| 'log level': 1 | ||
| }); | ||
| socket.sockets.on('connection', function(socket){ | ||
| console.log('server: new connection'); | ||
| }); | ||
| })(); | ||
| // client | ||
| (function(){ | ||
| var io = require('socket.io-client'); | ||
| console.log('socket.io-client', io.version); | ||
| io.connect('//:8080', { | ||
| 'force new connection': true | ||
| , 'transports': ['websocket'] | ||
| , 'connect timeout': 1000 | ||
| , 'try multiple transports': false | ||
| , 'reconnect': false | ||
| }) | ||
| .on('connecting', function(transport_type){ | ||
| console.log('client: connecting', transport_type); | ||
| }) | ||
| .on('connect', function(){ | ||
| console.log('client: connect'); | ||
| }) | ||
| .on('connect_failed', function(){ | ||
| console.log('client: connect_failed'); | ||
| }) | ||
| .on('disconnect', function(){ | ||
| console.log('client: disconnect'); | ||
| }) | ||
| .on('error', function(error){ | ||
| console.log('client: error', error); | ||
| }); | ||
| })(); |
| var io = require('socket.io-client'); | ||
| console.log('socket.io-client', io.version); | ||
| var socket = io.connect('http://localhost:12398', { | ||
| 'force new connection': true | ||
| , 'transports': ['websocket'] | ||
| , 'connect timeout': 1000 | ||
| , 'try multiple transports': false | ||
| , 'reconnect': false | ||
| }); | ||
| socket.on('connect', function(){ | ||
| console.log('client: connect'); | ||
| }) | ||
| .on('connecting', function(transport_type){ | ||
| console.log('client: connecting', transport_type); | ||
| }) | ||
| .on('ready', function(){ | ||
| console.log('client: ready'); | ||
| }) | ||
| .on('connect_failed', function(){ | ||
| console.log('client: connect_failed'); | ||
| }) | ||
| .on('disconnect', function(){ | ||
| console.log('client: disconnect'); | ||
| }) | ||
| .on('error', function(error){ | ||
| console.log('client: error', error); | ||
| }); |
| console.log('node', process.version); | ||
| console.log('socket.io', require('socket.io').version); | ||
| var io = require('socket.io').listen(12398, { | ||
| 'log level': 1 | ||
| }); | ||
| io.sockets.on('connection', function(socket){ | ||
| console.log('server: new connection'); | ||
| socket.emit('ready'); | ||
| }); |
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
392854
-0.48%40
-6.98%9565
-0.78%