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

socketcluster-client

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socketcluster-client - npm Package Compare versions

Comparing version 0.9.9 to 0.9.10

.npmignore

9

index.js

@@ -0,2 +1,9 @@

var ClusterSocket = require('./clustersocket');
module.exports.ClusterSocket = ClusterSocket;
module.exports.JSON = ClusterSocket.JSON;
module.exports = require('./lib/');
module.exports.Emitter = require('emitter');
module.exports.connect = function (options) {
return new ClusterSocket(options);
};

35

package.json
{
"name": "socketcluster-client",
"description": "Client side of SocketCluster",
"version": "0.9.9",
"version": "0.9.10",
"homepage": "https://github.com/topcloud/socketcluster-client",

@@ -13,35 +13,6 @@ "contributors": [

"dependencies": {
"global": "https://github.com/component/global/archive/v2.0.1.tar.gz",
"has-cors": "https://github.com/component/has-cors/archive/v1.0.2.tar.gz",
"ws": "https://github.com/TooTallNate/ws/archive/0cb9fe7a21a7a7c200f68b57916d1d62b66082a1.tar.gz",
"xmlhttprequest": "https://github.com/LearnBoost/node-XMLHttpRequest/archive/0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz",
"emitter": "http://github.com/component/emitter/archive/1.0.1.tar.gz",
"indexof": "0.0.1",
"engine.io-parser": "0.3.0",
"debug": "0.7.2"
"engine.io-client": "1.1.0",
"emitter": "http://github.com/component/emitter/archive/1.0.1.tar.gz"
},
"devDependencies": {
"mocha": "*",
"serve": "*",
"expect.js": "*",
"istanbul": "*"
},
"component": {
"scripts": {
"socketcluster/index.js": "lib/index.js",
"socketcluster/clustersocket.js": "lib/clustersocket.js",
"socketcluster/socket.js": "lib/socket.js",
"socketcluster/transport.js": "lib/transport.js",
"socketcluster/emitter.js": "lib/emitter.js",
"socketcluster/json.js": "lib/json.js",
"socketcluster/util.js": "lib/util.js",
"socketcluster/transports/index.js": "lib/transports/index.js",
"socketcluster/transports/polling.js": "lib/transports/polling.js",
"socketcluster/transports/polling-xhr.js": "lib/transports/polling-xhr.js",
"socketcluster/transports/polling-jsonp.js": "lib/transports/polling-jsonp.js",
"socketcluster/transports/websocket.js": "lib/transports/websocket.js",
"socketcluster/transports/flashsocket.js": "lib/transports/flashsocket.js"
}
},
"readmeFilename": "README.md"
}

@@ -19,3 +19,3 @@ SocketCluster Client

```
component build -s socketCluster -n socketcluster -o .
browserify -s socketCluster index.js > socketcluster.js
```

@@ -28,3 +28,3 @@

```html
<script type="text/javascript" src="/socketcluster.js"></script>;
<script type="text/javascript" src="/socketcluster.js"></script>
```

@@ -38,6 +38,6 @@

var options = {
protocol: location.protocol.replace(/:$/, ''),
hostname: location.hostname,
port: 8000,
autoReconnect: true
protocol: location.protocol.replace(/:$/, ''),
hostname: location.hostname,
port: 8000,
autoReconnect: true
};

@@ -48,3 +48,3 @@

socket.on('connect', function () {
console.log('CONNECTED');
console.log('CONNECTED');
});

@@ -54,7 +54,7 @@

socket.on('rand', function (num) {
console.log('RANDOM: ' + num);
var curHTML = document.body.innerHTML;
curHTML += 'RANDOM: ' + num + '<br />';
document.body.innerHTML = curHTML;
console.log('RANDOM: ' + num);
var curHTML = document.body.innerHTML;
curHTML += 'RANDOM: ' + num + '<br />';
document.body.innerHTML = curHTML;
});
```

Sorry, the diff of this file is too big to display

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