Updating Polymer component via Websocket?

307 views
Skip to first unread message

robert...@gmail.com

unread,
Oct 3, 2014, 7:38:58 AM10/3/14
to polym...@googlegroups.com
Thanks for Polymer, it looks great so far. I posted the Q below to StackOverflow but unsure if this Google group has more activity and thus posting also here. Thanks for any input/advice.


I want to find the simplest possible way (preferably without relying on any / a lot of additional libraries) to connect a Polymer component with a web socket so that I can update it easily from the backend.

Right now I have investigated doing this with bacon.js since it is very easy to setup a an event stream directly from the web socket. My idea is to filter these messages and route them to individual Polymer components. However, if this can be easily done without bacon.js or other libraries (i.e. with only Polymer itself and a normal javascript Web socket) that might be preferable. Any ideas, hints or example code?

Thanks, in advance

/Robert Feldt

Reply all
Reply to author
Forward
0 new messages