mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #1614] Websocket (socket.io) not connecting #509
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#509
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?
Originally created by @AllanOricil on GitHub (Apr 22, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1614
Originally assigned to: @blenderskool on GitHub.
Describe the bug
I have a websocket running alongside an express app and when I click "connect" in hoppscotch it displays an error message, but in the express side I can see a "connected" log displayed. So it means hoppscotch is hitting the websocket but it fails to retain the connection
Express Log
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should connect
Screenshots
It is not connecting
Desktop (please complete the following information):
Additional context
Express App dependencies
"dependencies": {
"@types/vscode": "^1.53.0",
"applicationinsights": "^1.8.2",
"axios": "^0.21.1",
"cors": "^2.8.5",
"dateformat": "^4.5.1",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"fs-extra": "^9.0.1",
"jsforce": "^2.0.0-beta.3",
"morgan-body": "^2.6.4",
"node-machine-id": "^1.1.12",
"objects-to-csv": "^1.3.6",
"open": "^8.0.2",
"qs": "^6.9.4",
"rotating-file-stream": "^2.1.3",
"socket.io": "^2.4.1"
}
@AllanOricil commented on GitHub (Apr 22, 2021):
This other tool connects without a problem. Maybe it is because you are using socket.io 3? If so, there should be an option to choose socket.io version
@liyasthomas commented on GitHub (Apr 22, 2021):
Thanks for reporting the issue. We'll take a look at it and get back to you.
@AllanOricil commented on GitHub (Apr 23, 2021):
I think you will have three builds one for each socketio client version (2,3 4) and then give the option for the user to switch between them. You can have routes like
../socketio/3
../socketio/2
../socketio/4
Then on your dns you configure a CNAME for each build when the user reaches that particular route. The downside I see is that it will require a page reload :/
@AllanOricil commented on GitHub (Apr 23, 2021):
Oh I just found that we can have multiple versions of the same dependency using aliases. I just don't know if the imports will use the aliases or the lib.
@blenderskool commented on GitHub (Oct 1, 2021):
@liyasthomas Can I experiment and try working on this?
@liyasthomas commented on GitHub (Oct 1, 2021):
Hi @blenderskool, you're free to take a shot at this. Am assigning this issue to you, do let us know if you need any help understanding the codebase.
@blenderskool commented on GitHub (Oct 11, 2021):
@liyasthomas So I tried recreating the issue, and below are my findings:
@liyasthomas commented on GitHub (Oct 11, 2021):
I'm not sure of if the imports supports multiple versions of the same package.
@blenderskool commented on GitHub (Oct 11, 2021):
@liyasthomas It might be possible via aliases. I'm not sure if this is a good idea if we are concerned about bundle sizes.
@abishekpp commented on GitHub (Jul 19, 2025):
still not solved