2.3.0 • Published 10 months ago

socket.io-client v2.3.0

Weekly downloads
4,381,905
License
MIT
Repository
github
Last release
10 months ago

socket.io-client

Build Status Dependency Status devDependency Status NPM version Downloads npm.io

Sauce Test Status

How to use

A standalone build of socket.io-client is exposed automatically by the socket.io server as /socket.io/socket.io.js. Alternatively you can serve the file socket.io.js found in the dist folder or include it via CDN.

<script src="/socket.io/socket.io.js"></script>
<script>
  var socket = io('http://localhost');
  socket.on('connect', function(){});
  socket.on('event', function(data){});
  socket.on('disconnect', function(){});
</script>
// with ES6 import
import io from 'socket.io-client';

const socket = io('http://localhost');

A slim build (without JSON3, a JSON polyfill for IE6/IE7, and debug) is also available: socket.io.slim.js.

Socket.IO is compatible with browserify and webpack (see example there).

Node.JS (server-side usage)

Add socket.io-client to your package.json and then:

var socket = require('socket.io-client')('http://localhost');
socket.on('connect', function(){});
socket.on('event', function(data){});
socket.on('disconnect', function(){});

API

See API

License

MIT

socket.io@veritone/advanced-search-bar@nebulario/tunnel-local-graph@nebulario/tunnel-local-web@vinnyfs89/communication-webapp@vinnyfs89/comunication-webapp@viq/clibitcoin-receive-paymentsbitcoin-live-transactions@neoskop/aviation-clientbitcoin-segwit-paymentsbit-bin@nereid/shine-vdcbrakecode@observatory/telescope@observable-rpc/client@xiphiaz/vantagebroadcastnodejs@xiyun/xy-plugin-uibroadcast-clientbroadcast-server@nydus/connectorsbrew-ui@xcredits/xcredits-corebrian.clibecoinbob-canvas@weego/sunubus-sdkbr-serverbrainfockbrandchat-bot-core@nuz/core@water102/fx-web@nhz.io/vantage@wcp/wcp-react-configblutui-cli@web-remote-control/corebonsole@webantic/basebot-cli@niobium/api-webboostjs@nebulario/repoflow-plugin-serverbitcoin-gatewaybitratedbitnet-checkout-core@nexex/orderbook@vocality-org/music@viero/webrtc-signaling-clientbitcore-nodebitcore-node-3dcoinbitcore-node-anonbitcore-node-cashbitcore-node-chaincoinbitcore-node-cprbitcore-node-crownbitcore-node-dashbitcore-node-dash-ngbitcore-node-dash-testbitcore-node-denariusbitcore-node-dynamicbitcore-node-exccbitcore-node-hushbitcore-node-jincashbitcore-node-komodobitcore-node-monacocoinbitcore-node-monacoinbitcore-node-monoecibitcore-node-pacbitcore-node-pivxbitcore-node-polisbitcore-node-posqbitcore-node-rapturebitcore-node-resistancebitcore-node-safebitcore-node-sibbitcore-node-sibcoinbitcore-node-tcrbitcore-node-terracoinbitcore-node-thoughtbitcore-node-titusbitcore-node-ulordbitcore-node-veggiebitcore-node-divibitcore-node-wyvernbitcore-node-zcashbitcore-nodejs-dash@webgeodatavore/uppy@nivuus/realtime-object-transmission@nivinjoseph/n-sockbogey-webbooleans-ioboom-agentboard-game@niubalib/weapp.socket.io@webdollar/node-webdollar@nmq/q@webonyx/atlas-utils@webreflection/node-workera.felix.javascriptabl-booking-calendar
2.3.0

10 months ago

2.2.0

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.7.4

3 years ago

1.7.3

3 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.8

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.7

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

0.9.17

6 years ago

1.0.0-pre5

6 years ago

1.0.0-pre4

6 years ago

1.0.0-pre3

6 years ago

1.0.0-pre2

6 years ago

1.0.0-pre

6 years ago

1.0.0

6 years ago

0.9.16

7 years ago

0.9.15

7 years ago

0.9.11

8 years ago

0.9.10

8 years ago

0.9.9

8 years ago

0.9.8

8 years ago

0.9.7

8 years ago

0.9.6

8 years ago

0.9.5

8 years ago

0.9.4

8 years ago

0.9.3

8 years ago

0.9.2

8 years ago

0.9.1-1

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago

0.8.7

9 years ago

0.8.6

9 years ago

0.8.5

9 years ago

0.8.4

9 years ago

0.8.3

9 years ago

0.8.2

9 years ago

0.8.1

9 years ago

0.8.0

9 years ago

0.7.11

9 years ago

0.7.10

9 years ago

0.7.9

9 years ago

0.7.5

9 years ago

0.7.4

9 years ago

0.7.3

9 years ago

0.7.2

9 years ago

0.7.1

9 years ago

0.7.0

9 years ago