XeroxDev / YTMD-StreamDeck

This Stream Deck Plugin allows you to control the YouTube Music Desktop App (https://github.com/ytmdesktop/ytmdesktop)
MIT License
55 stars 17 forks source link

[FEATURE] Use Socket.IO instead of fetch #11

Closed XeroxDev closed 3 years ago

XeroxDev commented 3 years ago

Is your feature request related to a problem? Please describe. The YTMD-App should send the information instead of requesting it all xxx ms.

Describe the solution you'd like Use SocketIO instead of fetch.

Describe alternatives you've considered Example script:

<!-- Required to include the Socket.IO library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js"></script>
<script>
    const server = "http://localhost:9863";
    const socket = io(server);

    socket.on("connect", () => {
        console.debug('Connected')
    });

    socket.on("disconnect", () => {
        console.debug('Disconnected')
    });

    socket.on("tick", (data) => {
        console.debug(data);
    });
</script>
XeroxDev commented 3 years ago

/cib

create-issue-branch[bot] commented 3 years ago

Branch issue-11-_FEATURE_Use_Socket_IO_instead_of_fetch created!