BlueMap icon indicating copy to clipboard operation
BlueMap copied to clipboard

[FEATURE]Use WebSocket

Open zyxgad opened this issue 2 years ago • 3 comments

I suggest bluemap use WebSocket to get data, that will reduce many unnecessary web request. Of course, bluemap need keep http API to compatible with the old client

zyxgad avatar Sep 11 '21 21:09 zyxgad

If this is to be implemented, please keep the HTTP fetch option as a persistent choice. (i.e. don't deprecate/remove it). When deploying BlueMap at scale (for example, as an interactive component displaying a static world on a website) HTTP fetches are much better, as tools exist to optimize the delivery of static content over HTTP. These same tools do not exist for WebSockets

roobscoob avatar Oct 18 '21 16:10 roobscoob

Do note that if websockets are going to be used, we'd also need to implement RFC 7692 in order to use some compression.

FinlayDaG33k avatar Nov 14 '21 14:11 FinlayDaG33k

There is currently no intend to use web-sockets for the map-tiles .. in my opinion, http-requests are perfectly fine for that :) The web-sockets would be for live-updates like player-markers

TBlueF avatar Nov 14 '21 16:11 TBlueF