Skip to content

Commit 5a2e650

Browse files
Merge pull request #82 from samhaar/master
small edit read me
2 parents e0990d8 + aaf61af commit 5a2e650

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Swell is a one-stop shop for sending and monitoring your API requests
3232
<kbd><img src="./ReadMeGifs/Gifs/ConcurrentStreams.gif"
3333
style="float: left; margin-right: 10px; margin-bottom : 30px; margin-top : 10px; border: 1px solid black;" /></kbd>
3434

35-
* *Server-Sent Events (SSE)*: Initiated by a simple toggle box, Swell displays SSE events one by one as they come in. Similar to HTTP2 Streams, multiple concurrent streams are allowed for each connection for SSE.
35+
* *Server-Sent Events (SSE)*: Initiated by a simple toggle box, Swell displays SSE events one by one as they come in. Similar to HTTP2 streams, multiple open connection streams are allowed for SSE.
3636
<kbd><img src="./ReadMeGifs/Gifs/SSE.gif"
3737
style="float: left; margin-right: 10px; margin-bottom : 30px; margin-top : 10px;" /></kbd>
3838

main_process/main_httpController.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ const httpController = {
116116
client.on("error", (err) => {
117117
console.log("HTTP2 FAILED...trying HTTP1\n", err);
118118
http2Connection.status = "failed";
119-
client.destroy();
119+
try {
120+
client.destroy();
121+
} catch (error) {
122+
console.log('error destroying HTTP2 client', error);
123+
}
120124
delete httpController.openHTTP2Connections[host];
121125

122126
// try again with fetch (HTTP1);

0 commit comments

Comments
 (0)