diff --git a/deltachat-jsonrpc/typescript/example/example.ts b/deltachat-jsonrpc/typescript/example/example.ts index e45bc18cc..23eedfe4a 100644 --- a/deltachat-jsonrpc/typescript/example/example.ts +++ b/deltachat-jsonrpc/typescript/example/example.ts @@ -1,4 +1,4 @@ -import { DcEvent, DeltaChat } from "../deltachat.js"; +import { DcEvent, WebsocketDeltaChat as DeltaChat } from "../deltachat.js"; var SELECTED_ACCOUNT = 0; diff --git a/deltachat-jsonrpc/typescript/src/client.ts b/deltachat-jsonrpc/typescript/src/client.ts index 83cc2f7e7..baa70d11f 100644 --- a/deltachat-jsonrpc/typescript/src/client.ts +++ b/deltachat-jsonrpc/typescript/src/client.ts @@ -83,7 +83,7 @@ export const DEFAULT_OPTS: Opts = { url: "ws://localhost:20808/ws", startEventLoop: true, }; -export class DeltaChat extends BaseDeltaChat { +export class WebsocketDeltaChat extends BaseDeltaChat { opts: Opts; close() { this.transport.close();