feat(smart-proxy): add socket-handler relay, fast-path port-only forwarding, metrics and bridge improvements, and various TS/Rust integration fixes

This commit is contained in:
2026-02-09 16:25:33 +00:00
parent 41efdb47f8
commit f7605e042e
17 changed files with 724 additions and 300 deletions

View File

@@ -94,7 +94,7 @@ tap.test('setup port proxy test environment', async () => {
tap.test('should start port proxy', async () => {
await smartProxy.start();
// Check if the proxy is listening by verifying the ports are active
expect(smartProxy.getListeningPorts().length).toBeGreaterThan(0);
expect((await smartProxy.getListeningPorts()).length).toBeGreaterThan(0);
});
// Test basic TCP forwarding.
@@ -237,7 +237,7 @@ tap.test('should handle connection timeouts', async () => {
tap.test('should stop port proxy', async () => {
await smartProxy.stop();
// Verify that there are no listening ports after stopping
expect(smartProxy.getListeningPorts().length).toEqual(0);
expect((await smartProxy.getListeningPorts()).length).toEqual(0);
// Remove from tracking
const index = allProxies.indexOf(smartProxy);