[GH-ISSUE #1056] Web Socket query string params support #369

Closed
opened 2026-03-16 14:55:51 +03:00 by kerem · 3 comments
Owner

Originally created by @Nsbx on GitHub (Aug 7, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1056

Describe the bug
If you try to connect on one ws url with some query string params the button "connect" is disabled.
But if you edit the source code to remove the "disabled" html attribute and you click on "connect" this work perfectly.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Realtime' tab
  2. Type an ws url with some query string params
  3. See 'connect' button is disabled

Expected behavior
The button shouldn't be disabled

The regex should probably be edited to accept query string params

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox developer edition
  • Version: 80.0b4
Originally created by @Nsbx on GitHub (Aug 7, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1056 **Describe the bug** If you try to connect on one ws url with some query string params the button "connect" is disabled. But if you edit the source code to remove the "disabled" html attribute and you click on "connect" this work perfectly. **To Reproduce** Steps to reproduce the behavior: 1. Go to 'Realtime' tab 2. Type an ws url with some query string params 3. See 'connect' button is disabled **Expected behavior** The button shouldn't be disabled The regex should probably be edited to accept query string params **Desktop (please complete the following information):** - OS: Windows 10 - Browser: Firefox developer edition - Version: 80.0b4
kerem 2026-03-16 14:55:51 +03:00
Author
Owner

@liyasthomas commented on GitHub (Aug 7, 2020):

Can you tell which URL produced disabled "Connect" button? From my side, it looks okay even if there are multiple query string parameters used.

InShot_20200807_155548086

<!-- gh-comment-id:670446708 --> @liyasthomas commented on GitHub (Aug 7, 2020): Can you tell which URL produced disabled "Connect" button? From my side, it looks okay even if there are multiple query string parameters used. ![InShot_20200807_155548086](https://user-images.githubusercontent.com/10395817/89636593-7d90fe80-d8c6-11ea-9bac-99c1f90864e8.jpg)
Author
Owner

@Nsbx commented on GitHub (Aug 7, 2020):

I have the problem with an url of this type (this is fake domain and fake access_token)
wss://test.test.fr/?access_token=UQUhIlQ-ZLZlveQLYYmpuUl2U6qrllDGu5LIUUcUDVYg2P6glZotUEGgAlQdx6gO1l1KZoUUKOrl4aQQgelMKQ62aoMx2Umr5hQG2lk2rvuu_UllUAE8GQGU5G4L9pPmQAp77xkZqt7IMzgTlhlHCL4O2lUUQQiclxPayP2

<!-- gh-comment-id:670477168 --> @Nsbx commented on GitHub (Aug 7, 2020): I have the problem with an url of this type (this is fake domain and fake access_token) `wss://test.test.fr/?access_token=UQUhIlQ-ZLZlveQLYYmpuUl2U6qrllDGu5LIUUcUDVYg2P6glZotUEGgAlQdx6gO1l1KZoUUKOrl4aQQgelMKQ62aoMx2Umr5hQG2lk2rvuu_UllUAE8GQGU5G4L9pPmQAp77xkZqt7IMzgTlhlHCL4O2lUUQQiclxPayP2`
Author
Owner

@liyasthomas commented on GitHub (Aug 7, 2020):

The last forward slash / before query parameters is what causing the issue.

Try this:

wss://test.test.fr?access_token=UQUhIlQ-ZLZlveQLYYmpuUl2U6qrllDGu5LIUUcUDVYg2P6glZotUEGgAlQdx6gO1l1KZoUUKOrl4aQQgelMKQ62aoMx2Umr5hQG2lk2rvuu_UllUAE8GQGU5G4L9pPmQAp77xkZqt7IMzgTlhlHCL4O2lUUQQiclxPayP2

feel free to reopen this issue if it's not working.

<!-- gh-comment-id:670478313 --> @liyasthomas commented on GitHub (Aug 7, 2020): The last forward slash `/` before query parameters is what causing the issue. Try this: ``` wss://test.test.fr?access_token=UQUhIlQ-ZLZlveQLYYmpuUl2U6qrllDGu5LIUUcUDVYg2P6glZotUEGgAlQdx6gO1l1KZoUUKOrl4aQQgelMKQ62aoMx2Umr5hQG2lk2rvuu_UllUAE8GQGU5G4L9pPmQAp77xkZqt7IMzgTlhlHCL4O2lUUQQiclxPayP2 ``` feel free to reopen this issue if it's not working.
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#369
No description provided.