{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientjs/issues/293","repository_url":"https://api.github.com/repos/orientechnologies/orientjs","labels_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/293/comments","events_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/293/events","html_url":"https://github.com/orientechnologies/orientjs/issues/293","id":294300471,"number":293,"title":"Unable to unsubscribe livequery","user":{"login":"ameerthehacker","id":15448192,"avatar_url":"https://avatars2.githubusercontent.com/u/15448192?v=4","gravatar_id":"","url":"https://api.github.com/users/ameerthehacker","html_url":"https://github.com/ameerthehacker","followers_url":"https://api.github.com/users/ameerthehacker/followers","following_url":"https://api.github.com/users/ameerthehacker/following{/other_user}","gists_url":"https://api.github.com/users/ameerthehacker/gists{/gist_id}","starred_url":"https://api.github.com/users/ameerthehacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameerthehacker/subscriptions","organizations_url":"https://api.github.com/users/ameerthehacker/orgs","repos_url":"https://api.github.com/users/ameerthehacker/repos","events_url":"https://api.github.com/users/ameerthehacker/events{/privacy}","received_events_url":"https://api.github.com/users/ameerthehacker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"maggiolo00","id":98812,"avatar_url":"https://avatars2.githubusercontent.com/u/98812?v=4","gravatar_id":"","url":"https://api.github.com/users/maggiolo00","html_url":"https://github.com/maggiolo00","followers_url":"https://api.github.com/users/maggiolo00/followers","following_url":"https://api.github.com/users/maggiolo00/following{/other_user}","gists_url":"https://api.github.com/users/maggiolo00/gists{/gist_id}","starred_url":"https://api.github.com/users/maggiolo00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggiolo00/subscriptions","organizations_url":"https://api.github.com/users/maggiolo00/orgs","repos_url":"https://api.github.com/users/maggiolo00/repos","events_url":"https://api.github.com/users/maggiolo00/events{/privacy}","received_events_url":"https://api.github.com/users/maggiolo00/received_events","type":"User","site_admin":false},"assignees":[{"login":"maggiolo00","id":98812,"avatar_url":"https://avatars2.githubusercontent.com/u/98812?v=4","gravatar_id":"","url":"https://api.github.com/users/maggiolo00","html_url":"https://github.com/maggiolo00","followers_url":"https://api.github.com/users/maggiolo00/followers","following_url":"https://api.github.com/users/maggiolo00/following{/other_user}","gists_url":"https://api.github.com/users/maggiolo00/gists{/gist_id}","starred_url":"https://api.github.com/users/maggiolo00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggiolo00/subscriptions","organizations_url":"https://api.github.com/users/maggiolo00/orgs","repos_url":"https://api.github.com/users/maggiolo00/repos","events_url":"https://api.github.com/users/maggiolo00/events{/privacy}","received_events_url":"https://api.github.com/users/maggiolo00/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-02-05T07:49:51Z","updated_at":"2018-03-10T08:09:54Z","closed_at":null,"author_association":"NONE","body":"I can't find any way to unsubscribe a live query"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientjs/issues/comments/372012088","html_url":"https://github.com/orientechnologies/orientjs/issues/293#issuecomment-372012088","issue_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/293","id":372012088,"user":{"login":"ivansglazunov","id":7591093,"avatar_url":"https://avatars1.githubusercontent.com/u/7591093?v=4","gravatar_id":"","url":"https://api.github.com/users/ivansglazunov","html_url":"https://github.com/ivansglazunov","followers_url":"https://api.github.com/users/ivansglazunov/followers","following_url":"https://api.github.com/users/ivansglazunov/following{/other_user}","gists_url":"https://api.github.com/users/ivansglazunov/gists{/gist_id}","starred_url":"https://api.github.com/users/ivansglazunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivansglazunov/subscriptions","organizations_url":"https://api.github.com/users/ivansglazunov/orgs","repos_url":"https://api.github.com/users/ivansglazunov/repos","events_url":"https://api.github.com/users/ivansglazunov/events{/privacy}","received_events_url":"https://api.github.com/users/ivansglazunov/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T08:09:54Z","updated_at":"2018-03-10T08:09:54Z","author_association":"NONE","body":"I am too\r\n\r\ntry it \r\n```js\r\ndb.liveQuery(`live select * from Test`)\r\n.on('live-update', function(data) {\r\n    db.query(`LIVE UNSUBSCRIBE ${this.config.token}`).then(data => console.log('UNSUBSCRIBED'));\r\n  }\r\n});\r\n```\r\nbut:\r\n> same result with `exec`\r\n```\r\nRangeError: Maximum call stack size exceeded\r\n    at new Uint8Array (native)\r\n    at new FastBuffer (buffer.js:67:5)\r\n    at Function.alloc (buffer.js:267:10)\r\n    at new Buffer (buffer.js:168:19)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:305:14)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n    at Connection.handleSocketData (/home/ivansglazunov/orientdb_livequery_research/node_modules/orientjs/lib/transport/binary/connection.js:324:12)\r\n```\r\n\r\nread sources, but not found any buildin solutions for send unsubscribe token\r\n\r\nrelated with #273 "}}
{"actor":{"display_login":"ivansglazunov"}}