mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3319] feat(websocket-history): add history support for websockets #4336
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4336
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3319
Author: @SamJakob
Created: 9/6/2023
Status: 🔄 Open
Base:
main← Head:feat/websocket-history📝 Commits (1)
383a860feat(websocket-history): add history support for websockets📊 Changes
16 files changed (+661 additions, -188 deletions)
View changed files
➕
.vscode/settings.json(+3 -0)📝
packages/hoppscotch-common/src/components.d.ts(+4 -3)📝
packages/hoppscotch-common/src/components/graphql/Sidebar.vue(+17 -1)📝
packages/hoppscotch-common/src/components/history/graphql/Card.vue(+3 -18)📝
packages/hoppscotch-common/src/components/history/index.vue(+95 -57)➕
packages/hoppscotch-common/src/components/history/realtime/websocket/Card.vue(+96 -0)📝
packages/hoppscotch-common/src/components/http/Sidebar.vue(+9 -1)📝
packages/hoppscotch-common/src/components/realtime/Communication.vue(+58 -20)➕
packages/hoppscotch-common/src/helpers/utils/list.ts(+16 -0)📝
packages/hoppscotch-common/src/newstore/WebSocketSession.ts(+2 -4)📝
packages/hoppscotch-common/src/newstore/history.ts(+166 -82)📝
packages/hoppscotch-common/src/newstore/localpersistence.ts(+12 -0)📝
packages/hoppscotch-common/src/pages/realtime/websocket.vue(+142 -2)📝
packages/hoppscotch-data/src/index.ts(+1 -0)➕
packages/hoppscotch-data/src/websocket/content-types.ts(+7 -0)➕
packages/hoppscotch-data/src/websocket/index.ts(+30 -0)📄 Description
Prerequisite for #3311 but also a useful feature in its own right.
Description
Adds a history pane to the WebSocket tab and support in
hoppscotch-datafor storing, retrieving and working with websocket command history.Clicking on a history item connects you to the socket (if not already connected) or reconnects you if the command was for a different endpoint or set of parameters.
This PR also includes some refactoring of the history API and associated components/files.
Checks
Additional Information
Please see #3311 for a justification of this feature as well.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.