SocketEventBridge uses a unix socket path for both send and listen directions.
Constructor params
path: unix socket path (absolute path recommended)name: optional bridge label
- Python
- TypeScript
Setup with a bus
- Python
- TypeScript
Behavior
emit(...)writes newline-delimited event JSON frames to the unix socket.on(...)subscribes handlers on the inbound side and auto-starts the socket listener.- Incoming frames are decoded into events, reset, then emitted on the internal bus.
close()stops the socket server and tears down the internal bus.- TypeScript socket bridges require Node.js runtime support for unix sockets.