Skip to content

Commit b43e8aa

Browse files
committed
feat: add TCP handshake icon display during connection process in HttpClient
1 parent 91dc2d5 commit b43e8aa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/programs/http_client.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,18 @@ export class HttpClient extends ProgramBase {
8787
this.resource,
8888
);
8989

90+
srcDevice.showDeviceIcon(
91+
"tcp-handshake",
92+
"🤝",
93+
"TCP handshake in progress",
94+
Layer.App,
95+
);
96+
9097
// Write request
9198
const socket = await this.runner.tcpConnect(this.dstId);
99+
100+
srcDevice.hideDeviceIcon("tcp-handshake");
101+
92102
if (!socket) {
93103
console.warn("HttpClient failed to connect");
94104
return;

0 commit comments

Comments
 (0)