I am using Bokeh as part of the data visualization end of a simulation framework that requires connections to multiple external resources (database/middleware stuff). Because the middleware doesn’t allow duplicate client names, and because I need a two-way connection between server and clients, I wrote a “plot manager” that handles the middleware callbacks and the bokeh plot generation in a single instance, then sends the JSON item via websockets to any connected clients, for embedding in the site. The ws implementation also handles my middleware interactions.
I’m looking to lighten the load on the client side by using a streaming approach rather than occasionally replacing the embedded image. I have the option of using another port with SSE and a ServerSentDataSource, but I would prefer to use the already existing web socket connection. Is there any way to use/add something like a “WebsocketDataSource” (which I expect would be much like the SSE DataSource wrapper), or to use the client-side javascript to update the data, instead of removing the old figure and re-embedding with the updated contents?


