Sorry, I am new to socketIO programming and I have a question about the Volumio web socket API. When, for example, I set the volume via an emit(“volume”) command, I also receive a pushState back from the server. Given that the pushState handler does. itself set the value of my volume slider to propagate changes received from other WebSocket clients and show the new volume if it is changed from another source, I experience lag and improper behaviour of the slider and the volume label that just shows the integer value of the volume. What I am looking for is a way to ignore the pushState event received in response to an emit(“volume”) and other similar calls. Is this possible or am I missing something important ? I am developing a Volumio desktop macOS client in Swift 5.0.

Many thanks,