Package detail

sails.io.js-dist

balderdashy114.9kMIT1.2.1

Distribution version of sails.io.js for browsers, including bundled socket.io-client.

readme

sails.io.js-dist

This is the JavaScript SDK for communicating with Sails via sockets. Specifically, it is the distribution for web browsers, and the release that is bundled in new Sails apps by default.

Compatibility

Before using this package directly, be sure that you're using the same version as the dependency in your version of Sails's sails-generate's package.json file.

Prior to Sails v1, instead of sails-generate, this was in the sails-generate-sails.io.js dependency, which was itself a dependency of sails-generate-frontend, which was itself a depenency of sails-generate, which was itself a dependency of `sails. (You can see why we changed it!)

Anyway, if you're using <=Sails v0.12, check the dependency version in the package.json file of sails-generate-sails.io.js.

This package is always released under the same version string as sails.io.js, the Node.js distribution. (It is published automatically when sails.io.js is published.)

Help

If you have questions or are having trouble, click here.

Bugs   NPM version

To report a bug, click here.

Contributing   Build Status

Please observe the guidelines and conventions laid out in the Sails project contribution guide when opening issues or submitting pull requests.

NPM

License

This package is part of the Sails framework, and is free and open-source under the MIT License.

image_squidhome@2x.png

changelog

sails.io.js changelog

Recent releases

See https://github.com/balderdashy/sails.io.js/commits/master

Want to help fill out the missing pieces in the changeog? Please submit a pull request!

In development

1.1.6

  • [BUGFIX] Handle server status code of zero correctly, and fix error messages for other non-200 responses.

1.1.5

  • [ENHANCEMENT] Add 'PATCH' support e458031
  • [INTERNAL] Don't do npm test on prepublish 5009778
  • [BUGFIX] Fix issue where you get an error if you don't provide a method arg to request c8cb943
  • [ENHANCEMENT] Add "reconnection" to list of settings that can be change via HTML attribute b68872a

1.1.4

  • [BUGFIX] Fix incorrect use of dependencies/devDependencies 8047bf7

1.1.3

  • [ENHANCEMENT] Update socket.io-client to 1.7.1 version 1250230 and 464f918

1.1.2

1.1.1

  • [INTERNAL] Update links, add README to sails.io.js-dist, and converted some TODOs into FUTUREs a7fb853 and cde8a90
  • [INTERNAL] Upgraded dev dependency to Sails v1 and sails-hook-sockets standalone. 485f3cd
  • [INTERNAL] Reorganized README.md, add version string to compiled SDK in dist d17c1ef and 9ddd74c
  • [INTERNAL] Update boilerplate files [appveyor.yml, travis.yml now checks node 6 and 7, updated .npmignore, .editorconfig and .gitignore, added .jshintrc] and get rid of no-longer-in-use checkGitStatus script c7cd55e

1.1.0

  • [ENHANCEMENT] Caution: Possible breaking change. Make reconnection option false by default. Can be switched back following the Advanced usage reference 7f8c7a2

1.0.1

  • [BUGFIX] Fix issue where properties were overriding isConnecting and mightBeAboutToAutoConnect methods d78d94e
  • [INTERNAL] Make jwr.error always truthy (even if response data is empty string or 0 or false or null) by always ensuring it is an Error instance. 8393d87

1.0.0

0.14.0

  • [ENHANCEMENT] Add flag to indicate that the autoConnect timer has started. Helps in better handling possible race conditions on queueing socket requests 6e1f349
  • [ENHANCEMENT] Updated socket.io-client to 1.4.8 d7e06ad and later downgraded to 1.4.5 so Travis stops failing 25ae952

0.13.8

  • [ENHANCEMENT] Add rejectUnauthorized to the settable options for socket connections. (thanks @ksylvan) 33508b1

0.13.7

  • [FIX] Fix #92 - 'Uncaught TypeError: Cannot read property 'removeChild' of null'" being thrown by sails.io.js on line 200 (thanks @kpturner) 58cc190
  • [ENHANCEMENT] Update dependency to latest sails (thanks @granteagon) be15e92
  • [ENHANCEMENT] Added tests for sharing a session between sockets eeff078
  • [ENHANCEMENT] Removed unused "request" call a23cc5b

0.13.6

  • [ENHANCEMENT] Allow specifying some io.sails properties via HTML attributes (autoConnect, url, headers andenvironment`)

0.13.5

  • [BUGFIX] Fixed replaying of request queue on disconnect/reconnect d8fb158
  • [ENHANCEMENT] Added new connection options path, reconnection, reconnectionAttempts, reconnectionDelay, reconnectionDelayMax, randomizationFactor, timeout 535d5a3
  • [ENHANCEMENT] Allow both data and params to be used in calls to socket.request() 6f28ec

0.13.4

  • [ENHANCEMENT] Don't allow certain SailsSocket properties to be changed while the socket is connected. This ensures that the properties always reflect the correct state of a connected socket.
  • [BUGFIX] Made URL argument to io.socket.connect optional, as documented
  • [ENHANCEMENT] Added public .reconnect() method to SailsSocket

0.13.3

  • [UPGRADE] Use socket.io-client version 1.4.4

0.13.0 - 0.13.2

  • These versions were experimental for use while finishing development of Sails 0.12, and should not be used.

0.12.6

  • [BUGFIX] Revert change where sails.io.js SDK info was sent in handshake via headers instead of querystring--handshake headers only work in Node.js implementations, not in the browser.

0.12.5 (broken; don't use!)

  • [ENHANCEMENT] Allow passing initialConnectionHeaders option (or setting io.sails.initialConnectionHeaders) to set headers to be sent with socket handshake 0a251df

0.12.4

  • [BUGFIX] Make global headers work for queued requests 36a4828

0.12.3

  • [ENHANCEMENT] Allow passing headers option (or setting io.sails.headers) to set global headers that will be sent with every request made by a socket 6376e04

0.12.2

  • [UPGRADE] Use socket.io-client version 1.4.3

0.12.1

  • [UPGRADE] Use socket.io-client version 1.4.0

0.12.0

  • [UPGRADE] Use socket.io-client version 1.3.7
  • [ENHANCEMENT] Allow passing query option (or setting io.sails.query) for use in socket handshake #51