Skip to content

Conversation

scottinet
Copy link
Contributor

@scottinet scottinet commented Aug 2, 2016

Add pure WebSocket capabilities to the Javascript SDK, while still supporting SocketIO to ensure compatibility with older browsers.

  • isolated network calls within wrappers
  • first tries to instantiate websocket objects and falls back to socket.io if unable to do so

Unrelated changes

  • requests history is now cleaned once every 1s, instead of once per request sent. Dramatically improves performances.
  • Solve a crash when Kuzzle.query is invoked without a query argument. Now throws an error when such a case occurs
  • Fixed responseCallback JSDoc

@codecov-io
Copy link

codecov-io commented Aug 2, 2016

Current coverage is 100% (diff: 100%)

Merging #100 into develop will not change coverage

@@           develop   #100   diff @@
=====================================
  Files           11     15     +4   
  Lines         1446   1627   +181   
  Methods        228    278    +50   
  Messages         0      0          
  Branches       365    393    +28   
=====================================
+ Hits          1446   1627   +181   
  Misses           0      0          
  Partials         0      0          

Powered by Codecov. Last update 800d9d2...1ef325f

@dbengsch
Copy link
Contributor

dbengsch commented Aug 3, 2016

+1

1 similar comment
@stafyniaksacha
Copy link
Contributor

+1

* @param index - Database index
*
* @constructor
* @param address - Server name or IP Address to the Kuzzle instance
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we rather use host instead of address?
Looks to me to be more standard and more accurate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I've also fixed a potential bug with the off function in websocket wrappers (node + browser)

@benoitvidis
Copy link
Contributor

Apart from the host/address naming thing, +1

@scottinet scottinet merged commit 4ca0d54 into develop Aug 4, 2016
@scottinet scottinet deleted the wsprotocol branch August 4, 2016 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants