Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ws): Mount Socket.io Admin UI #5435

Merged
merged 1 commit into from
Apr 24, 2024
Merged

feat(ws): Mount Socket.io Admin UI #5435

merged 1 commit into from
Apr 24, 2024

Conversation

SokratisVidros
Copy link
Contributor

What changed? Why was the change needed?

This simple dashboard should be able to increase our visibility on WS connection status.

https://socket.io/docs/v4/admin-ui/

Copy link

netlify bot commented Apr 18, 2024

Deploy Preview for novu-design ready!

Name Link
🔨 Latest commit fddc837
🔍 Latest deploy log https://app.netlify.com/sites/novu-design/deploys/66290e070ac9de00081cf19b
😎 Deploy Preview https://deploy-preview-5435--novu-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Apr 18, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit fddc837
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/66290e074c7dd500082db855
😎 Deploy Preview https://deploy-preview-5435--dev-web-novu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@LetItRock LetItRock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! 🙌
there are some spell check errors to fix ;)

@@ -18,7 +19,7 @@ export class WSGateway implements OnGatewayConnection, OnGatewayDisconnect, IDes
constructor(private jwtService: JwtService, private subscriberOnlineService: SubscriberOnlineService) {}

@WebSocketServer()
server: Server | null;
server: Server;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 praise: Nice tidy up 🧹‏


afterInit() {
if (!!process.env.SOCKET_IO_ADMIN_USERNAME && !!process.env.SOCKET_IO_ADMIN_PASSWORD_HASH) {
instrument(this.server, {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Could we add a URL link to the configuration options for Socket.io? I find it useful to have a URL to click on to easily find the other options in case of maintenance + debugging. Specifically, I would like to know what effect the mode has on the admin panel.

Copy link
Contributor Author

@SokratisVidros SokratisVidros Apr 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean as a comment? If yes, done!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! 🚀

This simple dashboard should be able to increase our visibility on WS connection status.
@SokratisVidros SokratisVidros merged commit d55b1f2 into next Apr 24, 2024
26 of 35 checks passed
@SokratisVidros SokratisVidros deleted the socket_io_admin branch April 24, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants