AirDC++ Socket Status #58

Merged
rishighan merged 9 commits from service-statuses into master 2023-01-21 10:29:32 +00:00
rishighan commented 2023-01-20 05:09:04 +00:00 (Migrated from github.com)

This PR covers work to achieve the following:

  1. A navbar icon that depicts in real-time, the connection to the AirDC++ web client via the airdcpp-websocket-api
  2. Surfacing session information for a connected status
  3. Surfacing error information for a disconnected status
This PR covers work to achieve the following: 1. A navbar icon that depicts in real-time, the connection to the AirDC++ web client via the `airdcpp-websocket-api` 2. Surfacing session information for a `connected` status 3. Surfacing error information for a `disconnected` status
maksis (Migrated from github.com) reviewed 2023-01-20 15:30:49 +00:00
@@ -32,190 +37,199 @@ function sleep(ms: number): Promise<NodeJS.Timeout> {
return new Promise((resolve) => setTimeout(resolve, ms));
maksis (Migrated from github.com) commented 2023-01-20 15:30:48 +00:00

Shouldn't you just call connect without any arguments since everything is set in the socket options?

Shouldn't you just call `connect` without any arguments since everything is set in the socket options?
nstephenh commented 2023-01-20 15:55:46 +00:00 (Migrated from github.com)

That's definitely react code :P
I don't see anything that seems wrong at a cursory glance. Lots of stuff I'm not familiar with, much of it project specific. Hopefully I can contribute more after looking at a few more of these/the project as a whole.

That's definitely react code :P I don't see anything that seems wrong at a cursory glance. Lots of stuff I'm not familiar with, much of it project specific. Hopefully I can contribute more after looking at a few more of these/the project as a whole.
rishighan (Migrated from github.com) reviewed 2023-01-20 16:02:38 +00:00
@@ -32,190 +37,199 @@ function sleep(ms: number): Promise<NodeJS.Timeout> {
return new Promise((resolve) => setTimeout(resolve, ms));
rishighan (Migrated from github.com) commented 2023-01-20 16:02:37 +00:00

Yeah, I never tried testing it without params, after I implemented the change you suggested @maksis. I'll remove the params and push.

Yeah, I never tried testing it without params, after I implemented the change you suggested @maksis. I'll remove the params and push.
rishighan (Migrated from github.com) reviewed 2023-01-20 18:21:15 +00:00
@@ -32,190 +37,199 @@ function sleep(ms: number): Promise<NodeJS.Timeout> {
return new Promise((resolve) => setTimeout(resolve, ms));
rishighan (Migrated from github.com) commented 2023-01-20 18:21:15 +00:00

@maksis Addressed in 3102b489c8

@maksis Addressed in https://github.com/rishighan/threetwo/pull/58/commits/3102b489c8db55594a79ba84a9789dc9cd65493f
maksis (Migrated from github.com) reviewed 2023-01-20 19:04:06 +00:00
@@ -32,190 +37,199 @@ function sleep(ms: number): Promise<NodeJS.Timeout> {
return new Promise((resolve) => setTimeout(resolve, ms));
maksis (Migrated from github.com) commented 2023-01-20 19:04:06 +00:00

@maksis Addressed in 3102b48

But the same code is still everywhere...

> @maksis Addressed in [3102b48](https://github.com/rishighan/threetwo/commit/3102b489c8db55594a79ba84a9789dc9cd65493f) But the same code is still everywhere...
rishighan (Migrated from github.com) reviewed 2023-01-21 03:39:10 +00:00
@@ -32,190 +37,199 @@ function sleep(ms: number): Promise<NodeJS.Timeout> {
return new Promise((resolve) => setTimeout(resolve, ms));
rishighan (Migrated from github.com) commented 2023-01-21 03:39:10 +00:00

Grrrr... jk. Yes I'll update that

Grrrr... jk. Yes I'll update that
rishighan (Migrated from github.com) reviewed 2023-01-21 06:02:15 +00:00
@@ -32,190 +37,199 @@ function sleep(ms: number): Promise<NodeJS.Timeout> {
return new Promise((resolve) => setTimeout(resolve, ms));
rishighan (Migrated from github.com) commented 2023-01-21 06:02:15 +00:00

Aaaand done: 1d8dd3ca3e

Aaaand done: https://github.com/rishighan/threetwo/pull/58/commits/1d8dd3ca3e6d9b0b4a3cb4f6ba462a3de19daacf
maksis (Migrated from github.com) approved these changes 2023-01-21 07:18:31 +00:00
Sign in to join this conversation.