Page MenuHomeSealhub

package.json
No OneTemporary

package.json

{
"name": "socket.io-client",
"version": "1.2.0",
"keywords": [
"realtime",
"framework",
"websocket",
"tcp",
"events",
"client"
],
"dependencies": {
"debug": "0.7.4",
"engine.io-client": "1.4.2",
"component-bind": "1.0.0",
"component-emitter": "1.1.2",
"object-component": "0.0.3",
"socket.io-parser": "2.2.2",
"has-binary": "0.1.5",
"indexof": "0.0.1",
"parseuri": "0.0.2",
"to-array": "0.1.3"
},
"devDependencies": {
"socket.io": "1.2.0",
"mocha": "1.16.2",
"zuul": "1.10.2",
"istanbul": "0.2.1",
"expect.js": "0.2.0",
"uglify-js": "2.4.8",
"browserify": "4.2.1",
"base64-arraybuffer": "0.1.0",
"text-blob-builder": "0.0.1",
"has-cors": "1.0.3"
},
"scripts": {
"test": "make test"
},
"contributors": [
{
"name": "Guillermo Rauch",
"email": "rauchg@gmail.com"
},
{
"name": "Arnout Kazemier",
"email": "info@3rd-eden.com"
},
{
"name": "Vladimir Dronnikov",
"email": "dronnikov@gmail.com"
},
{
"name": "Einar Otto Stangvik",
"email": "einaros@gmail.com"
}
],
"repository": {
"type": "git",
"url": "https://github.com/Automattic/socket.io-client.git"
},
"license": "MIT",
"readme": "\n# socket.io-client\n\n[![Build Status](https://secure.travis-ci.org/Automattic/socket.io-client.svg)](http://travis-ci.org/Automattic/socket.io-client)\n[![NPM version](https://badge.fury.io/js/socket.io-client.svg)](http://badge.fury.io/js/socket.io-client)\n![Downloads](http://img.shields.io/npm/dm/socket.io-client.svg)\n\n## How to use\n\nA standalone build of `socket.io-client` is exposed automatically by the\nsocket.io server as `/socket.io/socket.io.js`. Alternatively you can\nserve the file `socket.io.js` found at the root of this repository.\n\n```html\n<script src=\"/socket.io/socket.io.js\"></script>\n<script>\n var socket = io('http://localhost');\n socket.on('connect', function(){\n socket.on('event', function(data){});\n socket.on('disconnect', function(){});\n });\n</script>\n```\n\nSocket.IO is compatible with [browserify](http://browserify.org/).\n\n### Node.JS (server-side usage)\n\n Add `socket.io-client` to your `package.json` and then:\n\n ```js\n var socket = require('socket.io-client')('http://localhost');\n socket.on('connect', function(){\n socket.on('event', function(data){});\n socket.on('disconnect', function(){});\n });\n ```\n\n## API\n\n### IO(url:String, opts:Object):Socket\n\n Exposed as the `io` namespace in the standalone build, or the result\n of calling `require('socket.io-client')`.\n\n When called, it creates a new `Manager` for the given URL, and attempts\n to reuse an existing `Manager` for subsequent calls, unless the\n `multiplex` option is passed with `false`.\n\n The rest of the options are passed to the `Manager` constructor (see below\n for details).\n\n A `Socket` instance is returned for the namespace specified by the\n pathname in the URL, defaulting to `/`. For example, if the `url` is\n `http://localhost/users`, a transport connection will be established to\n `http://localhost` and a Socket.IO connection will be established to\n `/users`.\n\n### IO#protocol\n\n Socket.io protocol revision number this client works with.\n\n### IO#Socket\n\n Reference to the `Socket` constructor.\n\n### IO#Manager\n\n Reference to the `Manager` constructor.\n\n### IO#Emitter\n\n Reference to the `Emitter` constructor.\n\n### Manager(url:String, opts:Object)\n\n A `Manager` represents a connection to a given Socket.IO server. One or\n more `Socket` instances are associated with the manager. The manager\n can be accessed through the `io` property of each `Socket` instance.\n\n The `opts` are also passed to `engine.io` upon initialization of the\n underlying `Socket`.\n\n Options:\n - `reconnection` whether to reconnect automatically (`true`)\n - `reconnectionDelay` how long to wait before attempting a new\n reconnection (`1000`)\n - `reconnectionDelayMax` maximum amount of time to wait between\n reconnections (`5000`). Each attempt increases the reconnection by\n the amount specified by `reconnectionDelay`.\n - `timeout` connection timeout before a `connect_error`\n and `connect_timeout` events are emitted (`20000`)\n - `autoConnect` by setting this false, you have to call `manager.open`\n whenever you decide it's appropriate\n\n#### Events\n\n - `connect`. Fired upon a successful connection.\n - `connect_error`. Fired upon a connection error.\n Parameters:\n - `Object` error object\n - `connect_timeout`. Fired upon a connection timeout.\n - `reconnect`. Fired upon a successful reconnection.\n Parameters:\n - `Number` reconnection attempt number\n - `reconnect_attempt`. Fired upon an attempt to reconnect.\n - `reconnecting`. Fired upon an attempt to reconnect.\n Parameters:\n - `Number` reconnection attempt number\n - `reconnect_error`. Fired upon a reconnection attempt error.\n Parameters:\n - `Object` error object\n - `reconnect_failed`. Fired when couldn't reconnect within `reconnectionAttempts`\n\nThe events above are also emitted on the individual sockets that\nreconnect that depend on this `Manager`.\n\n### Manager#reconnection(v:Boolean):Manager\n\n Sets the `reconnection` option, or returns it if no parameters\n are passed.\n\n### Manager#reconnectionAttempts(v:Boolean):Manager\n\n Sets the `reconnectionAttempts` option, or returns it if no parameters\n are passed.\n\n### Manager#reconnectionDelay(v:Boolean):Manager\n\n Sets the `reconectionDelay` option, or returns it if no parameters\n are passed.\n\n### Manager#reconnectionDelayMax(v:Boolean):Manager\n\n Sets the `reconectionDelayMax` option, or returns it if no parameters\n are passed.\n\n### Manager#timeout(v:Boolean):Manager\n\n Sets the `timeout` option, or returns it if no parameters\n are passed.\n\n### Socket\n\n#### Events\n\n - `connect`. Fired upon connecting.\n - `error`. Fired upon a connection error\n Parameters:\n - `Object` error data\n - `disconnect`. Fired upon a disconnection.\n - `reconnect`. Fired upon a successful reconnection.\n Parameters:\n - `Number` reconnection attempt number\n - `reconnect_attempt`. Fired upon an attempt to reconnect.\n - `reconnecting`. Fired upon an attempt to reconnect.\n Parameters:\n - `Number` reconnection attempt number\n - `reconnect_error`. Fired upon a reconnection attempt error.\n Parameters:\n - `Object` error object\n - `reconnect_failed`. Fired when couldn't reconnect within `reconnectionAttempts`\n\n## License\n\nMIT\n",
"readmeFilename": "README.md",
"description": "[![Build Status](https://secure.travis-ci.org/Automattic/socket.io-client.svg)](http://travis-ci.org/Automattic/socket.io-client) [![NPM version](https://badge.fury.io/js/socket.io-client.svg)](http://badge.fury.io/js/socket.io-client) ![Downloads](http://img.shields.io/npm/dm/socket.io-client.svg)",
"bugs": {
"url": "https://github.com/Automattic/socket.io-client/issues"
},
"_id": "socket.io-client@1.2.0",
"_from": "socket.io-client@"
}

File Metadata

Mime Type
application/json
Expires
Wed, Aug 13, 17:10 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
873200
Default Alt Text
package.json (7 KB)

Event Timeline