appbaseio / appbase-js

appbase.io search client library for JavaScript
MIT License
42 stars 18 forks source link

streamDocument() with streamonly method returns an error #6

Closed siddharthlatest closed 8 years ago

siddharthlatest commented 9 years ago

Adding streamonly field to the streamDocument() throws a syntax error.

appbaseObj.streamDocument({
  type: "tweet",
  id: "1",
  streamonly: "true"
}).on('data', function(res) {
  console.log("data update: ", res);
}).on('error', function(err) {
  console.log("streaming error: ", err);
})

Stacktrace:

Uncaught SyntaxError: Unexpected token ,conn.onmessage @ appbase.js:483
siddharthlatest commented 9 years ago

This is true for streamSearch() method as well.