Default to wss:// not ws://

This commit is contained in:
Eric Allam
2023-01-12 17:00:13 +00:00
parent 31201065f4
commit 2081187600
+1 -1
View File
@@ -58,7 +58,7 @@ export class TriggerClient<TSchema extends z.ZodTypeAny> {
}
this.#apiKey = apiKey;
this.#endpoint = this.#options.endpoint ?? "ws://wss.trigger.dev/ws";
this.#endpoint = this.#options.endpoint ?? "wss://wss.trigger.dev/ws";
this.#logger = new Logger("trigger.dev", this.#options.logLevel);
}