Live Value Updates #547
Replies: 2 comments 6 replies
-
A new tag should be introduced into the namespace to make this extendable. I'm proposing <podcast:liveValue uri="link to server" protocol="protocol use" /> I'm not aware of all the possible protocols and what other attributes they would need in the tag, but the ones I'm aware of are 'socket.io', 'websocket', and 'xmpp'. For the time being, I'm only supporting 'socket.io' as it's the one I'm most familiar with for developing. |
Beta Was this translation helpful? Give feedback.
-
@thebells1111 so @kreonjr and I have begun looking into adding
I'm not sure, but I think the answer to problem 2) might be the same as the answer to problem 1). Maybe mobile apps, while in the background, could convert into a "polling" Polling does not sound as efficient as an active websocket connection would be, so I'm not sure if polling is tenable for this purpose, but it is also only a tiny amount of metadata being requested for Anyway, I'd appreciate your and anyone else's thoughts on how we might be able to address these problems within the spec. |
Beta Was this translation helpful? Give feedback.
-
Here's a link to a repo that has a functional socket.io server and delivers the expected payload to a client.
https://github.com/thebells1111/live-updates
For now, I have the live socket.io server url in the
pocast:liveItem
tag as an attribute calledliveValueLink
, but that will probably change as we flesh this out. However, for the time being, create a socket.io connection on the clinet side that connects with the server found inliveValueLink
, then listen for a message from the server calledremoteValue
. The expected payload will look like this for anyone wanting to listen to a live session and display the contents in their own app. None of my apps are currently broadcasting lines 3 and 4, but I have them there for anticipation of polls.Beta Was this translation helpful? Give feedback.
All reactions