[GH-ISSUE #2809] [bug]: Socket.io Tab cannot receive any incomming message except connected/disconnected #906

Closed
opened 2026-03-16 17:37:52 +03:00 by kerem · 2 comments
Owner

Originally created by @oliverzy on GitHub (Oct 21, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2809

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

The Socket.io Tab cannot log any incoming message except connected/disconnected.

After looking into the source code, I found the bug is at line 83, SIOCOnnection.ts.

I can see for V2, we have used socketio-wildcard package.

But for V3/V4, The wildcard mode is also not supported, instead, socket.io provide onAny method.
https://socket.io/docs/v4/client-api/#socketonanycallback

The fix could be using onAny method, it can fix V3/V4.

Steps to reproduce

  1. Goto Realtime Tab
  2. Goto Socket.IO
  3. Connect a socket.io server, you will see, it cannot log any incoming message except connected/disconnected

Environment

Production

Version

Cloud

Originally created by @oliverzy on GitHub (Oct 21, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2809 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior The Socket.io Tab cannot log any incoming message except connected/disconnected. After looking into the source code, I found the bug is at line 83, SIOCOnnection.ts. I can see for V2, we have used `socketio-wildcard` package. But for V3/V4, The wildcard mode is also not supported, instead, socket.io provide onAny method. https://socket.io/docs/v4/client-api/#socketonanycallback The fix could be using onAny method, it can fix V3/V4. ### Steps to reproduce 1. Goto Realtime Tab 2. Goto Socket.IO 3. Connect a socket.io server, you will see, it cannot log any incoming message except connected/disconnected ### Environment Production ### Version Cloud
kerem 2026-03-16 17:37:52 +03:00
Author
Owner

@AndrewBastin commented on GitHub (Oct 21, 2022):

@anwarulislam 👀

<!-- gh-comment-id:1287538577 --> @AndrewBastin commented on GitHub (Oct 21, 2022): @anwarulislam 👀
Author
Owner

@oliverzy commented on GitHub (Oct 22, 2022):

I'm sorry it seems we have use socketio-wildcard to handle V2 case. Therefore, we only need a fix for V3/V4 by using onAny method.

I've opened a pr, please take a look, thanks

<!-- gh-comment-id:1287601811 --> @oliverzy commented on GitHub (Oct 22, 2022): I'm sorry it seems we have use `socketio-wildcard` to handle V2 case. Therefore, we only need a fix for V3/V4 by using `onAny` method. I've opened a pr, please take a look, thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#906
No description provided.