Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/actor-core/src/common/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export async function importWebSocket(): Promise<typeof WebSocket> {
// Node.js environment
try {
const ws = await import("ws");
if (!ws.WebSocket) throw "Unsupported";
_WebSocket = ws.WebSocket as unknown as typeof WebSocket;
} catch {
if (typeof WebSocket !== "undefined") {
Expand Down