mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 20:16:06 -04:00
refactor: rename client.ts to EventClient.ts
This commit is contained in:
+2
-3
@@ -13,8 +13,7 @@ import {
|
||||
ServerMemberCollection,
|
||||
UserCollection,
|
||||
} from "./collections";
|
||||
import { ConnectionState, EventClient } from "./events/client";
|
||||
import { handleEvent } from "./events/v1";
|
||||
import { ConnectionState, EventClient, handleEventV1 } from "./events";
|
||||
import {
|
||||
HydratedChannel,
|
||||
HydratedEmoji,
|
||||
@@ -170,7 +169,7 @@ export class Client extends EventEmitter<Events> {
|
||||
});
|
||||
|
||||
this.events.on("event", (event) =>
|
||||
handleEvent(this, event, this.#setReady)
|
||||
handleEventV1(this, event, this.#setReady)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import type { ProtocolV1 } from "./v1";
|
||||
|
||||
export { handleEvent as handleEventV1 } from "./v1";
|
||||
|
||||
export * from "./EventClient";
|
||||
|
||||
/**
|
||||
* Available protocols to connect with
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user