Title: How I could subscribe to changes like Javascript does · Issue #55 · GetStream/stream-java · GitHub
Open Graph Title: How I could subscribe to changes like Javascript does · Issue #55 · GetStream/stream-java
X Title: How I could subscribe to changes like Javascript does · Issue #55 · GetStream/stream-java
Description: Hi everyone! To be honest I see that you have a little docs outdated and some cases merged docs between clients, so thats why my question. For example in the docs you have the option for subscribe to changes from any notification feed, b...
Open Graph Description: Hi everyone! To be honest I see that you have a little docs outdated and some cases merged docs between clients, so thats why my question. For example in the docs you have the option for subscribe ...
X Description: Hi everyone! To be honest I see that you have a little docs outdated and some cases merged docs between clients, so thats why my question. For example in the docs you have the option for subscribe ...
Opengraph URL: https://github.com/GetStream/stream-java/issues/55
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How I could subscribe to changes like Javascript does","articleBody":"Hi everyone!\r\n\r\nTo be honest I see that you have a little docs outdated and some cases merged docs between clients, so thats why my question. For example in the docs you have the option for _subscribe to changes_ from any notification feed, but it's only for _javascript_. \r\n\r\nSo I'd like to know if exist any way to listening flat feed changes? or to listening reactions, comments or those kind of changes? I know you have **React Native** component but all our core app is on Kotlin and java, so that's why need a native.\r\n\r\nYou have this:\r\n\r\n**Subscribe to realtime updates via API client**\r\n\r\n```\r\nlet notificationFeed = client.feed('notification', '1');\r\n\r\nfunction callback(data) {\r\n console.log(data);\r\n}\r\n\r\nfunction successCallback() {\r\n console.log('now listening to changes in realtime');\r\n}\r\n\r\nfunction failCallback(data) {\r\n alert('something went wrong, check the console logs');\r\n console.log(data);\r\n}\r\n\r\nuser1.subscribe(callback).then(successCallback, failCallback);\r\n```\r\n\r\nAnd\r\n\r\n**Subscribe to realtime updates using UMD script**\r\n\r\n```\r\n\u003cscript type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/getstream/dist/js_min/getstream.js\">\r\n\u003c/script>\r\n\r\n\u003cscript type=\"text/javascript\">\r\n var client = stream.connect('n6dqxby6gcfa', userToken, '49021');\r\n var notificationFeed = client.feed('notification', '1');\r\n\r\n function callback(data) {\r\n console.log(data);\r\n }\r\n\r\n function successCallback() {\r\n console.log('now listening to changes in realtime');\r\n }\r\n\r\n function failCallback(data) {\r\n alert('something went wrong, check the console logs');\r\n console.log(data);\r\n }\r\n\r\n notificationFeed.subscribe(callback).then(successCallback, failCallback);\r\n\u003c/script>\r\n```\r\n\r\nExist any way to implement with java?\r\n\r\n\r\n ","author":{"url":"https://github.com/cbedoy","@type":"Person","name":"cbedoy"},"datePublished":"2019-07-19T15:27:04Z","url":"https://github.com/GetStream/stream-java/issues/55"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dc061c89-52cf-bdfe-25d2-3d1419eef85b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D486:1FAD:1FF96F:29F972:6B038DF9 |
| html-safe-nonce | 4f5d52fef9fda4850217567fa880800f433b103da32e2282c9558ad7d3b2e6d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDg2OjFGQUQ6MUZGOTZGOjI5Rjk3Mjo2QjAzOERGOSIsInZpc2l0b3JfaWQiOiI3NzMyMjQzMTE5NTcxNDM5MDk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 35229085b22e30dbeffde084daa7794becf91d0e7f24463911457ed2e565aa8c |
| hovercard-subject-tag | issue:470383223 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GetStream/stream-java/55/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d3a135ef30b9ac42c88c7da6494ae61a5dde2a90accc8c59431e597f43e5a699/GetStream/stream-java/issues/55 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d3a135ef30b9ac42c88c7da6494ae61a5dde2a90accc8c59431e597f43e5a699/GetStream/stream-java/issues/55 |
| og:image:alt | Hi everyone! To be honest I see that you have a little docs outdated and some cases merged docs between clients, so thats why my question. For example in the docs you have the option for subscribe ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cbedoy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/GetStream/stream-java git https://github.com/GetStream/stream-java.git |
| octolytics-dimension-user_id | 8597527 |
| octolytics-dimension-user_login | GetStream |
| octolytics-dimension-repository_id | 32178984 |
| octolytics-dimension-repository_nwo | GetStream/stream-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32178984 |
| octolytics-dimension-repository_network_root_nwo | GetStream/stream-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width