[GH-ISSUE #3890] [bug]: Error when connecting to local WebSocket endpoint #1367

Closed
opened 2026-03-16 20:00:28 +03:00 by kerem · 5 comments
Owner

Originally created by @mathaimon on GitHub (Mar 11, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3890

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

While trying to connect to a local WebSocket endpoint i get get and error saying that ws:// cannot be accessed because the page was loaded over HTTPS.

image

Steps to reproduce

  1. Go to Realtime -> Websocket
  2. Connect to local websocket server

Environment

Production

Version

Local

Originally created by @mathaimon on GitHub (Mar 11, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3890 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior While trying to connect to a local WebSocket endpoint i get get and error saying that ws:// cannot be accessed because the page was loaded over HTTPS. ![image](https://github.com/hoppscotch/hoppscotch/assets/64730205/ef6e12c0-fc71-4dc0-9011-4ec31a7c9ce0) ### Steps to reproduce 1. Go to Realtime -> Websocket 2. Connect to local websocket server ### Environment Production ### Version Local
kerem 2026-03-16 20:00:28 +03:00
Author
Owner

@liyasthomas commented on GitHub (Mar 11, 2024):

Can you try the WSS protocol instead of WS and see if the issue persists?

<!-- gh-comment-id:1988530738 --> @liyasthomas commented on GitHub (Mar 11, 2024): Can you try the `WSS` protocol instead of `WS` and see if the issue persists?
Author
Owner

@mathaimon commented on GitHub (Mar 11, 2024):

It works fine while using WSS.

<!-- gh-comment-id:1989008651 --> @mathaimon commented on GitHub (Mar 11, 2024): It works fine while using `WSS`.
Author
Owner

@liyasthomas commented on GitHub (Mar 11, 2024):

The prefixes wss:// indicate that the connection is secured using TLS/SSL encryption. The prefixes ws:// indicate the connection is unsecured.

As of now, Hoppscotch requires secured API endpoints for its testing playground.

Feel free to create another issue ticket if anything goes wrong.

<!-- gh-comment-id:1989021608 --> @liyasthomas commented on GitHub (Mar 11, 2024): The prefixes `wss://` indicate that the connection is secured using TLS/SSL encryption. The prefixes `ws://` indicate the connection is unsecured. As of now, Hoppscotch requires secured API endpoints for its testing playground. Feel free to create another issue ticket if anything goes wrong.
Author
Owner

@mathaimon commented on GitHub (Mar 11, 2024):

is there any way that i can use hoppscotch to test local ws endpoints without ssl.

<!-- gh-comment-id:1989029685 --> @mathaimon commented on GitHub (Mar 11, 2024): is there any way that i can use hoppscotch to test local `ws` endpoints without ssl.
Author
Owner

@mathaimon commented on GitHub (Mar 11, 2024):

Also its not mentioned in the docs. https://docs.hoppscotch.io/documentation/getting-started/realtime/websocket

<!-- gh-comment-id:1989036855 --> @mathaimon commented on GitHub (Mar 11, 2024): Also its not mentioned in the docs. https://docs.hoppscotch.io/documentation/getting-started/realtime/websocket
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#1367
No description provided.