[PR #820] [MERGED] Realtime SocketIO support for json user input #2877

Closed
opened 2026-03-17 00:32:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/820
Author: @feydan
Created: 4/28/2020
Status: Merged
Merged: 4/28/2020
Merged by: @liyasthomas

Base: masterHead: socketio-json-support


📝 Commits (1)

  • 266cb83 Trying to json parse user input so that the socket io library can properly emit json data. Falls back to string input

📊 Changes

1 file changed (+12 additions, -6 deletions)

View changed files

📝 components/realtime/socketio.vue (+12 -6)

📄 Description

The SocketIo tab in realtime currently only supports string input even though the SocketIo library can support sending json data (implicitly encoding and decoding).

This change attempts to parse the user input to json in order to send it as json instead of a string. If the user input is not valid json, it will be sent as a string.


🔄 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/820 **Author:** [@feydan](https://github.com/feydan) **Created:** 4/28/2020 **Status:** ✅ Merged **Merged:** 4/28/2020 **Merged by:** [@liyasthomas](https://github.com/liyasthomas) **Base:** `master` ← **Head:** `socketio-json-support` --- ### 📝 Commits (1) - [`266cb83`](https://github.com/hoppscotch/hoppscotch/commit/266cb83ba9d9d571a9a827e3202cba99dff937c0) Trying to json parse user input so that the socket io library can properly emit json data. Falls back to string input ### 📊 Changes **1 file changed** (+12 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `components/realtime/socketio.vue` (+12 -6) </details> ### 📄 Description The SocketIo tab in realtime currently only supports string input even though the SocketIo library can support sending json data (implicitly encoding and decoding). This change attempts to parse the user input to json in order to send it as json instead of a string. If the user input is not valid json, it will be sent as a string. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:32:43 +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#2877
No description provided.