Skip to content

Commit d44d6ca

Browse files
committed
Import WebSocket and assign to global scope for compatibility
1 parent e85337b commit d44d6ca

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

agent-manager/src/AgentConnection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { WebSocket } from 'ws';
2+
global.WebSocket = WebSocket;
23

34
// Simple EventEmitter polyfill (since we removed the Hyperfy client)
45
class EventEmitter {

0 commit comments

Comments
 (0)