hoppscotch / hoppscotch

Open source API development ecosystem - https://hoppscotch.io (open-source alternative to Postman, Insomnia)

Home Page:https://hoppscotch.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: Error when connecting to local WebSocket endpoint

mathaimon opened this issue · comments

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

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

It works fine while using WSS.

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.

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