Reputation: 2244
I'm learning about webrtc and followed the instructions here: https://www.tutorialspoint.com/webrtc/webrtc_rtcpeerconnection_apis.htm
I'm using tomcat v8.0 for deploying my web application, I got following error in Console Window :
WebSocket connection to 'ws://localhost:8080/Connection' failed: Error during WebSocket handshake: Unexpected response code: 302
My webapplication works fine, if I use http://localhost:8080/Connection/
link in url locator. If I use ws://localhost:8080/Connection
in url locator, Im getting:
This site can’t be reached
I cannot figure out why I am getting 302. Can anyone help me to resolve this?
Upvotes: 2
Views: 5104
Reputation: 11
You try this input The browser:http://localhost:8080 The WebSocket:ws://localhost:8080/Connection The browser can not be http://127.0.0.1
Upvotes: 1