mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0 (#1228)
* chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0 * actually apply the rules lol * rebuild --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars <fabianlars@fabianlars.de>
This commit is contained in:
@@ -47,10 +47,12 @@ export default class WebSocket {
|
||||
|
||||
const onMessage = new Channel<Message>();
|
||||
onMessage.onmessage = (message: Message): void => {
|
||||
listeners.forEach((l) => l(message));
|
||||
listeners.forEach((l) => {
|
||||
l(message);
|
||||
});
|
||||
};
|
||||
|
||||
if (config?.headers) {
|
||||
if (config?.headers != null) {
|
||||
config.headers = Array.from(new Headers(config.headers).entries());
|
||||
}
|
||||
|
||||
@@ -78,14 +80,14 @@ export default class WebSocket {
|
||||
"invalid `message` type, expected a `{ type: string, data: any }` object, a string or a numeric array",
|
||||
);
|
||||
}
|
||||
return await invoke("plugin:websocket|send", {
|
||||
await invoke("plugin:websocket|send", {
|
||||
id: this.id,
|
||||
message: m,
|
||||
});
|
||||
}
|
||||
|
||||
async disconnect(): Promise<void> {
|
||||
return await this.send({
|
||||
await this.send({
|
||||
type: "Close",
|
||||
data: {
|
||||
code: 1000,
|
||||
|
||||
Reference in New Issue
Block a user