mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-30 17:48:50 +02:00
chore: Merge branch v1 into v2 (#702)
This commit is contained in:
@@ -50,6 +50,10 @@ export default class WebSocket {
|
||||
listeners.forEach((l) => l(message));
|
||||
};
|
||||
|
||||
if (config?.headers) {
|
||||
config.headers = Array.from(new Headers(config.headers).entries());
|
||||
}
|
||||
|
||||
return await invoke<number>("plugin:websocket|connect", {
|
||||
url,
|
||||
onMessage,
|
||||
|
||||
Reference in New Issue
Block a user