diff --git a/plugins/websocket/guest-js/index.ts b/plugins/websocket/guest-js/index.ts index c8b9f992..29dc54b9 100644 --- a/plugins/websocket/guest-js/index.ts +++ b/plugins/websocket/guest-js/index.ts @@ -63,7 +63,7 @@ export default class WebSocket { static async connect( url: string, - config?: ConnectionConfig + config?: ConnectionConfig, ): Promise { const listeners: Array<(arg: Message) => void> = []; const handler = (message: Message): void => { @@ -95,7 +95,7 @@ export default class WebSocket { m = { type: "Binary", data: message }; } else { throw new Error( - "invalid `message` type, expected a `{ type: string, data: any }` object, a string or a numeric array" + "invalid `message` type, expected a `{ type: string, data: any }` object, a string or a numeric array", ); } return await invoke("plugin:websocket|send", {