[PR #1867] [MERGED] feat: add socket.io-client version selector menu #3532

Closed
opened 2026-03-17 01:08:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/1867
Author: @blenderskool
Created: 10/11/2021
Status: Merged
Merged: 10/12/2021
Merged by: @liyasthomas

Base: mainHead: socket.io-versions


📝 Commits (1)

  • 87c7dd7 feat: add socket.io-client version selector menu

📊 Changes

3 files changed (+212 additions, -8 deletions)

View changed files

📝 packages/hoppscotch-app/components/realtime/Socketio.vue (+62 -5)
📝 packages/hoppscotch-app/package.json (+3 -1)
📝 pnpm-lock.yaml (+147 -2)

📄 Description

Addition of socket.io-client version selector for Socket.IO connections

This fixes the compatibility issues that were occurring due to Hoppscotch running socket.io-client v4 and servers running an older version of socket.io. Reference: Compatibility chart

A dropdown menu has been added to allow the user to choose the appropriate version of socket.io-client to use when making the connection. The default value has been set to v4 as this was the only version available before this change.

Currently, only v2, v3, v4 versions of socket.io-client are available, and all these versions of the same package were installed using the aliases feature in pnpm. I'm not sure if this has added a significant overhead on the bundle size, it might be a possible caveat to this approach(We can use dynamic imports to load rarely used versions dynamically to fix this)

Demo

https://user-images.githubusercontent.com/21107799/136808586-3a077e2e-13d4-41bd-8c18-3b9fff6be839.mp4

Fixes #1614


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/1867 **Author:** [@blenderskool](https://github.com/blenderskool) **Created:** 10/11/2021 **Status:** ✅ Merged **Merged:** 10/12/2021 **Merged by:** [@liyasthomas](https://github.com/liyasthomas) **Base:** `main` ← **Head:** `socket.io-versions` --- ### 📝 Commits (1) - [`87c7dd7`](https://github.com/hoppscotch/hoppscotch/commit/87c7dd7c30f1e9de7a592618a1f1f3e90341db7d) feat: add socket.io-client version selector menu ### 📊 Changes **3 files changed** (+212 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/components/realtime/Socketio.vue` (+62 -5) 📝 `packages/hoppscotch-app/package.json` (+3 -1) 📝 `pnpm-lock.yaml` (+147 -2) </details> ### 📄 Description ### Addition of socket.io-client version selector for Socket.IO connections This fixes the compatibility issues that were occurring due to Hoppscotch running socket.io-client v4 and servers running an older version of socket.io. Reference: [Compatibility chart](https://socket.io/docs/v4/client-installation/#version-compatibility) A dropdown menu has been added to allow the user to choose the appropriate version of socket.io-client to use when making the connection. The default value has been set to v4 as this was the only version available before this change. Currently, only v2, v3, v4 versions of socket.io-client are available, and all these versions of the same package were installed using the [aliases](https://pnpm.io/aliases) feature in pnpm. I'm not sure if this has added a significant overhead on the bundle size, it might be a possible caveat to this approach(We can use dynamic imports to load rarely used versions dynamically to fix this) #### Demo https://user-images.githubusercontent.com/21107799/136808586-3a077e2e-13d4-41bd-8c18-3b9fff6be839.mp4 _Fixes #1614_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:08:23 +03:00
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#3532
No description provided.