There was an error while loading. Please reload this page.
2 parents ba73a5f + 82feeb4 commit 5d16c45Copy full SHA for 5d16c45
1 file changed
client.ts
@@ -240,6 +240,11 @@ export class AdvancedIMessageKit extends EventEmitter implements TypedEventEmitt
240
241
this.socket.once("connect", () => {
242
this.logger.info("Connected to iMessage server, waiting for authentication...");
243
+ // If no apiKey, assume legacy server that doesn't require auth - emit ready immediately
244
+ if (!this.config.apiKey) {
245
+ this.logger.info("No API key provided, skipping authentication (legacy server mode)");
246
+ this.emit("ready");
247
+ }
248
});
249
250
if (!this.socket.connected) {
0 commit comments