mainsail-crew / mainsail

Mainsail is the popular web interface for managing and controlling 3D printers with Klipper.
https://docs.mainsail.xyz
GNU General Public License v3.0
1.74k stars 377 forks source link

chore(websocket): add function to send and wait for response #2004

Closed meteyou closed 2 months ago

meteyou commented 2 months ago

Description

This PR only implement a function to the WebsocketClient to send a request and wait for the response. Thx @Spice-King for this implementation/syntax.

Related Tickets & Documents

none

Mobile & Desktop Screenshots/Recordings

none

[optional] Are there any post-deployment tasks we need to perform?

none