amosproj / amos2021ss07-bike-nest

MIT License
1 stars 0 forks source link

use websockets to communicate with the frontend #176

Open rmandlx opened 3 years ago

rmandlx commented 3 years ago

in some cases it would be better, if the backend would push messages to the frontend instead of the frontend regularly polling (for example for retrieving the number of free bikespots).

i think this usecase might not be so hard, i found a tutorial for spring here: https://spring.io/guides/gs/messaging-stomp-websocket/

however i think in this case anyone could listen to the messages. for the bikenest service its okay, but if we want to publish messages that should only be received by one user, we should probably do it different.