Npms_big

socket.io

All 107 versions

Version Release date
2.0.3 June 12, 2017
  • [fix] Reset rooms object before broadcasting (#2970)
  • [fix] Fix middleware initialization (#2969)
  • [docs] Update slack badge (#2961)
  • [docs] Update webpack example (#2960)
2.0.2 June 01, 2017
  • [fix] Fix timing issues with middleware (#2948)
2.0.1 May 08, 2017
  • [fix] Update path of client file (#2934)
2.0.0 May 08, 2017

This major release brings several performance improvements:

  • uws is now the default Websocket engine. It should bring significant improvement in performance (particularly in terms of memory consumption) (https://github.com/socketio/engine.io/releases/tag/2.0.0)

  • the Engine.IO and Socket.IO handshake packets were merged, reducing the number of roundtrips necessary to establish a connection. (#2833)

  • it is now possible to provide a custom parser according to the needs of your application (#2829). Please take a look at the example for more information.

Please note that this release is not backward-compatible, due to:

Please also note that if you are using a self-signed certificate, rejectUnauthorized now defaults to true (https://github.com/socketio/engine.io-client/pull/558).

Finally, the API documentation is now in the repository (here), and the content of the website here. Do not hesitate if you see something wrong or missing!

The full list of changes:

  • [feat] Move binary detection to the parser (#2923)
  • [feat] Allow to join several rooms at once (#2879)
  • [feat] Merge Engine.IO and Socket.IO handshake packets (#2833)
  • [feat] Allow the use of custom parsers (#2829)
  • [fix] Use path.resolve by default and require.resolve as a fallback (#2797) (by @a-lucas)
  • [fix] Properly close the connection on error (#2681) (by @Nibbler999)
  • [fix] Prevent null from being accepted as argument (#2606) (by @ianbrode)
  • [perf] Use shared instance of the encoder (#2825) (by @Nibbler999)
  • [perf] Reset properties instead of deleting them (#2826) (by @Nibbler999)
  • [perf] micro-optimisations (#2793) (by @billouboq)
  • [chore] Merge history of 1.7.x and 0.9.x branches (#2930)
  • [chore] Added backers and sponsors on the README (#2933) (by @xdamman)
  • [chore] Bump dependencies (#2926)
  • [chore] Bump socket.io-adapter to version 1.0.0 (#2867)
  • [chore] Bump engine.io to version 2.0.2 (#2864)
  • [chore] Bump engine.io to version 2.0.0 (#2832) (by @sgress454)
  • [chore] Update issue template with fiddle (#2811)
  • [chore] Update copyright year LICENSE to 2017 (#2803) (by @isabellatea)
  • [docs] Add an example of custom parser (#2929)
  • [docs] Replace non-breaking space with proper whitespace (#2913) (by @epicTCK)
  • [docs] Update emit cheatsheet (#2906) (by @FarazPatankar)
  • [docs] Explicitly document that Server extends EventEmitter (#2874) (by @i8-pi)
  • [docs] Add server.engine.generateId attribute (#2880) (by @efkan)
  • [docs] Fix wrong space character in README (#2900) (by @SimenB)
  • [docs] Fix documentation for 'connect' event (#2898) (by @swhgoon)
  • [docs] Add webpack build example (#2828)
  • [docs] Update the wording to match the code example (#2853) (by @timruffles)
  • [docs] Small addition to the Express Readme Part (#2846) (by @H3rby7)
  • [docs] Add a 'Features' section in the README (#2824)
  • [docs] Add httpd cluster example (#2819)
  • [docs] Add haproxy cluster example (#2818)
  • [docs] Add nginx cluster example (#2817)
  • [docs] Implement whiteboard example (#2810)
  • [docs] Fix documentation for local flag (#2816)
  • [docs] Add emit cheatsheet (#2815)
  • [docs] Add pingInterval/pingTimeout/transports options in the API documentation (#2814)
  • [docs] Add an example for socket.join() method (#2813)
  • [docs] Fix a typo on clients method in the API documentation (#2812)
  • [docs] Fix wrong argument name in API.md (#2802) (by @andrea11)
  • [docs] Add install script on Readme.md (#2780) (by @bananaappletw)
  • [docs] API documentation (#2784)

Besides, we are proud to announce that Socket.IO is now a part of open collective: https://opencollective.com/socketio. More on that later.

1.7.4 May 07, 2017
  • [chore] Bump engine.io to version 1.8.4
1.7.3 February 17, 2017
  • [chore] Bump engine.io-client to version 1.8.3
1.7.2 December 11, 2016
  • [chore] Bump engine.io to version 1.8.2 (#2782)
  • [fix] Fixes socket.use error packet (#2772)
1.7.1 November 27, 2016

(following socket.io-client update)

1.7.0 November 27, 2016
  • [docs] Comment connected socket availability for adapters (#2081)
  • [docs] Fixed grammar issues in the README.md (#2159)
  • [feature] serve sourcemap for socket.io-client (#2482)
  • [feature] Add a local flag (#2628)
  • [chore] Bump engine.io to version 1.8.1 (#2765)
  • [chore] Update client location and serve minified file (#2766)
1.6.0 November 20, 2016
  • [fix] Make ETag header comply with standard. (#2603)
  • [feature] Loading client script on demand. (#2567)
  • [test] Fix leaking clientSocket (#2721)
  • [feature] Add support for all event emitter methods (#2601)
  • [chore] Update year to 2016 (#2456)
  • [feature] Add support for socket middleware (#2306)
  • [feature] add support for Server#close(callback) (#2748)
  • [fix] Don't drop query variables on handshake (#2745)
  • [example] Add disconnection/reconnection logs to the chat example (#2675)
  • [perf] Minor code optimizations (#2219)
  • [chore] Bump debug to version 2.3.3 (#2754)
  • [chore] Bump engine.io to version 1.8.0 (#2755)
  • [chore] Bump socket.io-adapter to version 0.5.0 (#2756)
1.5.1 October 24, 2016
  • [fix] Avoid swallowing exceptions thrown by user event handlers (#2682)
  • [test] Use client function to unify client in test script (#2731)
  • [docs] Add link to LICENSE (#2221)
  • [docs] Fix JSDoc of optional parameters (#2465)
  • [docs] Fix typo (#2724)
  • [docs] Link readme npm package badge to npm registry page (#2612)
  • [docs] Minor fixes (#2526)
  • [chore] Bump socket.io-parser to 2.3.0 (#2730)
  • [chore] Add Github issue and PR templates (#2733)
  • [chore] Bump engine.io to 1.7.2 (#2729)
  • [chore] Bump socket.io-parser to 2.3.1 (#2734)
1.5.0 October 06, 2016
  • [feature] stop append /# before id when no namespace (#2509)
  • [feature] Add a 'disconnecting' event to access to socket.rooms upon disconnection (#2332)
  • [fix] Fix query string management (#2422)
  • [fix] add quote to exec paths, prevent error when spaces in path (#2508)
  • [docs] Prevent mixup for new programmers (#2599)
  • [example] Fix chat display in Firefox (#2477)
  • [chore] Add gulp & babel in the build process (#2471)
  • [chore] Bump engine.io to 1.7.0 (#2707)
  • [chore] Remove unused zuul-ngrok dependency (#2708)
  • [chore] Point towards current master of socket.io-client (#2710)
  • [chore] Restrict files included in npm package (#2709)
  • [chore] Link build badge to master branch (#2549)
1.4.8 June 24, 2016
  • package: bump engine.io
1.4.7 June 24, 2016
  • package: bump engine.io
1.4.6 May 03, 2016
  • package: bump engine.io
1.4.5 January 26, 2016
  • fix closing the underlying http.Server
1.4.4 January 11, 2016
  • package: bump engine.io
1.4.3 January 08, 2016
  • bump socket.io-client
1.4.2 January 08, 2016
  • bump engine.io
1.4.1 January 07, 2016
  • version bump
1.4.0 January 05, 2016
  • socket.io: increase large binary data test timeout
  • package: bump engine.io for release
  • trigger callback even when joining an already joined room
  • package: bump parser
  • namespace: clear rooms flag after a clients call (fixes #1978)
  • package: bump socket.io-parser
  • fixed tests with large data
  • fixed a typo in the example code
  • package: bump mocha
  • package: bump has-binary and zuul-ngrok
  • package: bump engine.io and socket.io-client
  • README: clarified documentation of Socket.in
  • README: fixed up legacy repo links
  • test: better timeout for stress test
  • socket: don't set request property which has a getter
  • removed proxy index file
  • support flags on namespace
  • improve Socket#packet and Client#packet
  • socket: warn node_redis-style about missing error
  • test: added failing test
  • test: increase timeout for large binary data test
  • package: bump has-binary to work with all objects (fixes #1955)
  • fix origin verification default https port [evanlucas]
  • support compression [nkzawa]
  • changed type of Client#sockets, Namespace#sockets and Socket#rooms to maps (instead of arrays)
1.3.7 September 21, 2015
  • package: bump socket.io-client for node4 compatibility
  • package: bump engine.io for node4 compatibility
1.3.6 July 15, 2015
  • package: bump engine.io to fix build on windows
1.3.5 March 03, 2015
  • package: bump socket.io-parser
1.3.4 February 14, 2015
  • package: bump socket.io-client
1.3.3 February 04, 2015
  • socket: warn node_redis-style about missing error
  • package: bump parser to better handle bad binary packets
1.3.2 January 19, 2015
  • no change on this release
1.3.1 January 19, 2015
  • no change on this release
  • package: bump engine.io
1.3.0 January 19, 2015
  • package: bump engine.io
  • add test for reconnection after server restarts [rase-]
  • update license with up-to-date year range [fay-jai]
  • fix leaving unknown rooms [defunctzombie]
  • allow null origins when allowed origins is a function [drewblaisdell]
  • fix tests on node 0.11
  • package: fix npm test to run on windows
  • package: bump debug v2.1.0 [coderaiser]
  • added tests for volatile [rase-]
1.2.1 November 21, 2014
  • fix protocol violations and improve error handling (GH-1880)
  • package: bump engine.io for websocket leak fix [3rd-Eden]
  • style tweaks
1.2.0 October 27, 2014
  • package: bump engine.io
  • downloads badge
  • add test to check that empty rooms are autopruned
  • added Server#origins(v:Function) description for dynamic CORS
  • added test coverage for Server#origins(function) for dynamic CORS
  • added optional Server#origins(function) for dynamic CORS
  • fix usage example for Server#close
  • package: fix main file for example application 'chat'
  • package: bump socket.io-parser
  • update README http ctor to createServer()
  • bump adapter with a lot of fixes for room bookkeeping
1.1.0 September 04, 2014
  • examples: minor fix of escaping
  • testing for equivalence of namespaces starting with / or without
  • update index.js
  • added relevant tests
  • take "" and "/" as equivalent namespaces on server
  • use svg instead of png to get better image quality in readme
  • make CI build faster
  • fix splice arguments and socket.rooms value update in socket.leaveAll.
  • client cannot connect to non-existing namespaces
  • bump engine.io version to get the cached IP address
  • fixed handshake object address property and made the test case more strict.
  • package: bump engine.io
  • fixed the failing test where server crashes on disconnect involving connectBuffer
  • npmignore: ignore .gitignore (fixes #1607)
  • test: added failing case for socket.disconnect and nsps
  • fix repo in package.json
  • improve Close documentation
  • use ephemeral ports
  • fix: We should use the standard http protocol to handler the etag header.
  • override default browser font-family for inputs
  • update has-binary-data to 1.0.3
  • add close specs
  • add ability to stop the http server even if not created inside socket.io
  • make sure server gets close
  • Add test case for checking that reconnect_failed is fired only once upon failure
  • package: bump socket.io-parser for component-emitter dep fix
1.0.6 June 19, 2014
  • package: bump socket.io-client
1.0.5 June 18, 2014
  • package: bump engine.io to fix jsonp \n bug and CORS warnings
  • index: fix typo [yanatan16]
  • add removeListener to blacklisted events
  • examples: clearer instructions to install chat example
  • index: fix namespace connectBuffer issue
1.0.4 June 03, 2014
  • package: bump socket.io-client
1.0.3 June 01, 2014
  • package: bump socket.io-client
  • package: bump socket.io-parser for binary ACK fix
  • package: bump engine.io for binary UTF8 fix
  • example: fix XSS in chat example
1.0.2 May 28, 2014
  • package: bump socket.io-parser for windows fix
1.0.1 May 28, 2014
  • bump due to bad npm tag
1.0.0 May 28, 2014
  • stable release

1.0.0-pre5 / 2014-05-22

  • package: bump socket.io-client for parser fixes
  • package: bump engine.io

1.0.0-pre4 / 2014-05-19

  • package: bump client

1.0.0-pre3 / 2014-05-17

  • package: bump parser
  • package: bump engine.io

1.0.0-pre2 / 2014-04-27

  • package: bump engine.io
  • added backwards compatible of engine.io maxHttpBufferSize
  • added test that server and client using same protocol
  • added support for setting allowed origins
  • added information about logging
  • the set function in server can be used to set some attributes for BC
  • fix error in callback call 'done' instead of 'next' in docs
  • package: bump socket.io-parser
  • package: bump expect.js
  • added some new tests, including binary with acks

1.0.0-pre / 2014-03-14

  • implemented engine.io
  • implemented socket.io-adapter
  • implemented socket.io-protocol
  • implemented debug and improved instrumentation
  • added binary support
  • added new require('io')(srv) signature
  • simplified socket.io-client serving
1.0.0-pre5 May 22, 2014  
1.0.0-pre4 May 19, 2014  
1.0.0-pre3 May 17, 2014  
1.0.0-pre2 April 28, 2014  
1.0.0-pre March 15, 2014  
0.9.19 May 16, 2017
  • Properly require EventEmitter
0.9.18 May 07, 2017
0.9.17 May 22, 2014  
0.9.16 June 06, 2013  
0.9.15 June 06, 2013  
0.9.14 March 29, 2013
  • manager: fix memory leak with SSL [jpallen]
0.9.13 December 13, 2012
  • package: fixed base64id requirement
0.9.12 December 13, 2012
  • manager: fix for latest node which is returning a clone with listeners [viirya]
0.9.11 November 02, 2012
  • package: move redis to optionalDependenices [3rd-Eden]
  • bumped client
0.9.10 August 12, 2012
  • Don't lowercase log messages
  • Always set the HTTP response in case an error should be returned to the client
  • Create or destroy the flash policy server on configuration change
  • Honour configuration to disable flash policy server
  • Add express 3.0 instructions on Readme.md
  • Bump client
0.9.9 August 01, 2012
  • Fixed sync disconnect xhrs handling
  • Put license text in its own file (#965)
  • Add warning to .listen() to ease the migration to Express 3.x
  • Restored compatibility with node 0.4.x
0.9.8 July 25, 2012
  • Bumped client.
0.9.7 July 24, 2012
  • Prevent crash when socket leaves a room twice.
  • Corrects unsafe usage of for..in
  • Fix for node 0.8 with gzip compression [vadimi]
  • Update redis to support Node 0.8.x
  • Made ID generation securely random
  • Fix Redis Store race condition in manager onOpen unsubscribe callback
  • Fix for EventEmitters always reusing the same Array instance for listeners
0.9.6 April 17, 2012
  • Fixed XSS in jsonp-polling.
0.9.5 April 05, 2012
  • Added test for polling and socket close.
  • Ensure close upon request close.
  • Fix disconnection reason being lost for polling transports.
  • Ensure that polling transports work with Connection: close.
  • Log disconnection reason.
0.9.4 April 01, 2012
  • Disconnecting from namespace improvement (#795) [DanielBaulig]
  • Bumped client with polling reconnection loop (#438)
0.9.3 March 28, 2012
  • Fix "Syntax error" on FF Web Console with XHR Polling [mikito]
0.9.2 March 13, 2012
  • More sensible close timeout default (fixes disconnect issue)

0.9.1-1 / 2012-03-02

  • Bumped client with NPM dependency fix.
0.9.1-1 March 02, 2012  
0.9.1 March 02, 2012
  • Changed heartbeat timeout and interval defaults (60 and 25 seconds)
  • Make tests work both on 0.4 and 0.6
  • Updated client (improvements + bug fixes).
0.9.0 February 27, 2012
  • Make it possible to use a regexp to match the socket.io resource URL. We need this because we have to prefix the socket.io URL with a variable ID.
  • Supplemental fix to gavinuhma/authfix, it looks like the same Access-Control-Origin logic is needed in the http and xhr-polling transports
  • Updated express dep for windows compatibility.
  • Combine two substr calls into one in decodePayload to improve performance
  • Minor documentation fix
  • Minor. Conform to style of other files.
  • Switching setting to 'match origin protocol'
  • Revert "Fixes leaking Redis subscriptions for #663. The local flag was not getting passed through onClientDisconnect()."
  • Revert "Handle leaked dispatch:[id] subscription."
  • Merge pull request #667 from dshaw/patch/redis-disconnect
  • Handle leaked dispatch:[id] subscription.
  • Fixes leaking Redis subscriptions for #663. The local flag was not getting passed through onClientDisconnect().
  • Prevent memory leaking on uncompleted requests & add max post size limitation
  • Fix for testcase
  • Set Access-Control-Allow-Credentials true, regardless of cookie
  • Remove assertvarnish from package as it breaks on 0.6
  • Correct irc channel
  • Added proper return after reserved field error
  • Fixes manager.js failure to close connection after transport error has happened
  • Added implicit port 80 for origin checks. fixes #638
  • Fixed bug #432 in 0.8.7
  • Set Access-Control-Allow-Origin header to origin to enable withCredentials
  • Adding configuration variable matchOriginProtocol
  • Fixes location mismatch error in Safari.
  • Use tty to detect if we should add colors or not by default.
  • Updated the package location.
0.8.7 November 05, 2011
  • Fixed memory leaks in closed clients.
  • Fixed memory leaks in namespaces.
  • Fixed websocket handling for malformed requests from proxies. [einaros]
  • Node 0.6 compatibility. [einaros] [3rd-Eden]
  • Adapted tests and examples.
0.8.6 October 27, 2011
  • Added JSON decoding on jsonp-polling transport.
  • Fixed README example.
  • Major speed optimizations [3rd-Eden] [einaros] [visionmedia]
  • Added decode/encode benchmarks [visionmedia]
  • Added support for black-listing client sent events.
  • Fixed logging options, closes #540 [3rd-Eden]
  • Added vary header for gzip [3rd-Eden]
  • Properly cleaned up async websocket / flashsocket tests, after patching node-websocket-client
  • Patched to properly shut down when a finishClose call is made during connection establishment
  • Added support for socket.io version on url and far-future Expires [3rd-Eden] [getify]
  • Began IE10 compatibility [einaros] [tbranyen]
  • Misc WebSocket fixes [einaros]
  • Added UTF8 to respone headers for htmlfile [3rd-Eden]
0.8.5 October 07, 2011
  • Added websocket draft HyBi-16 support. [einaros]
  • Fixed websocket continuation bugs. [einaros]
  • Fixed flashsocket transport name.
  • Fixed websocket tests.
  • Ensured parser#decodePayload doesn't choke.
  • Added http referrer verification to manager verifyOrigin.
  • Added access control for cross domain xhr handshakes [3rd-Eden]
  • Added support for automatic generation of socket.io files [3rd-Eden]
  • Added websocket binary support [einaros]
  • Added gzip support for socket.io.js [3rd-Eden]
  • Expose socket.transport [3rd-Eden]
  • Updated client.
0.8.4 September 06, 2011
  • Client build
0.8.3 September 03, 2011
  • Fixed \n parsing for non-JSON packets (fixes #479).
  • Fixed parsing of certain unicode characters (fixes #451).
  • Fixed transport message packet logging.
  • Fixed emission of error event resulting in an uncaught exception if unhandled (fixes #476).
  • Fixed; allow for falsy values as the configuration value of log level (fixes #491).
  • Fixed repository URI in package.json. Fixes #504.
  • Added text/plain content-type to handshake responses [einaros]
  • Improved single byte writes [einaros]
  • Updated socket.io-flashsocket default port from 843 to 10843 [3rd-Eden]
  • Updated client.
0.8.2 August 29, 2011
  • Updated client.
0.8.1 August 29, 2011
  • Fixed utf8 bug in send framing in websocket [einaros]
  • Fixed typo in docs [Znarkus]
  • Fixed bug in send framing for over 64kB of data in websocket [einaros]
  • Corrected ping handling in websocket transport [einaros]
0.8.0 August 28, 2011
  • Updated to work with two-level websocket versioning. [einaros]
  • Added hybi07 support. [einaros]
  • Added hybi10 support. [einaros]
  • Added http referrer verification to manager.js verifyOrigin. [einaors]
0.7.11 August 27, 2011
  • Updated socket.io-client.
0.7.10 August 27, 2011
  • Updated socket.io-client.
0.7.9 August 12, 2011
  • Updated socket.io-client.
  • Make sure we only do garbage collection when the server we receive is actually run.
0.7.8 August 08, 2011
  • Changed; make sure sio#listen passes options to both HTTP server and socket.io manager.
  • Added docs for sio#listen.
  • Added options parameter support for Manager constructor.
  • Added memory leaks tests and test-leaks Makefile task.
  • Removed auto npm-linking from make test.
  • Make sure that you can disable heartbeats. [3rd-Eden]
  • Fixed rooms memory leak [3rd-Eden]
  • Send response once we got all POST data, not immediately [Pita]
  • Fixed onLeave behavior with missing clientsk [3rd-Eden]
  • Prevent duplicate references in rooms.
  • Added alias for to to in and in to to.
  • Fixed roomClients definition.
  • Removed dependency on redis for installation without npm [3rd-Eden]
  • Expose path and querystring in handshakeData [3rd-Eden]
0.7.7 July 12, 2011
  • Fixed double dispatch handling with emit to closed clients.
  • Added test for emitting to closed clients to prevent regression.
  • Fixed race condition in redis test.
  • Changed Transport#end instrumentation.
  • Leveraged $emit instead of emit internally.
  • Made tests faster.
  • Fixed double disconnect events.
  • Fixed disconnect logic
  • Simplified remote events handling in Socket.
  • Increased testcase timeout.
  • Fixed unknown room emitting (GH-291). [3rd-Eden]
  • Fixed address in handshakeData. [3rd-Eden]
  • Removed transports definition in chat example.
  • Fixed room cleanup
  • Fixed; make sure the client is cleaned up after booting.
  • Make sure to mark the client as non-open if the connection is closed.
  • Removed unneeded buffer declarations.
  • Fixed; make sure to clear socket handlers and subscriptions upon transport close.
0.7.6 June 30, 2011
  • Fixed general dispatching when a client has closed.
0.7.5 June 30, 2011
  • Fixed dispatching to clients that are disconnected.
0.7.4 June 30, 2011
  • Fixed; only clear handlers if they were set. [level09]
0.7.3 June 30, 2011
  • Exposed handshake data to clients.
  • Refactored dispatcher interface.
  • Changed; Moved id generation method into the manager.
  • Added sub-namespace authorization. [3rd-Eden]
  • Changed; normalized SocketNamespace local eventing [dvv]
  • Changed; Use packet.reason or default to 'packet' [3rd-Eden]
  • Changed console.error to console.log.
  • Fixed; bind both servers at the same time do that the test never times out.
  • Added 304 support.
  • Removed Transport#name for abstract interface.
  • Changed; lazily require http and https module only when needed. [3rd-Eden]
0.7.2 June 22, 2011
  • Make sure to write a packet (of type noop) when closing a poll. This solves a problem with cross-domain requests being flagged as aborted and reconnection being triggered.
  • Added noop message type.
0.7.1 June 22, 2011
  • Fixed cross-domain XHR.
  • Added CORS test to xhr-polling suite.
0.7.0 June 21, 2011
0.6.18 May 16, 2011  
0.6.17 March 30, 2011  
0.6.16 March 04, 2011  
0.6.15 February 23, 2011  
0.6.14 February 22, 2011  
0.6.12 February 18, 2011  
0.6.11 February 15, 2011  
0.6.10 February 10, 2011  
0.6.9 February 06, 2011  
0.6.8 January 10, 2011  
0.6.7 January 10, 2011  
0.6.6 January 10, 2011  
0.6.5 January 10, 2011  
0.6.4 January 05, 2011  
0.6.3 December 24, 2010  
0.6.1 December 24, 2010  
0.6.0 December 24, 2010  
0.5.3 December 24, 2010  
0.5.1 December 24, 2010  
0.4.1 December 24, 2010  
0.4.0 December 24, 2010  
0.3.8 December 24, 2010