Skip to content
Sign upLog in
← Back to Community

What does "upgrade required" mean?

Profile icon
AustinCharb

Hello! I am trying to make a websocket chat, and for some reason, when I run the program, it says "Upgrade Required" in the HTML window. Is there a solution to this?

Voters
Profile icon
AustinCharb
Comments
hotnewtop
Profile icon
19wintersp

"Upgrade Required" is often shown when a request is made over HTTP which needs to be converted into a WebSocket connection ("upgrading").

Profile icon
joewolfhacker

@19wintersp
how do i do that

Profile icon
19wintersp

@joewolfhacker
This means there's one of two problems; either you've created a WebSoket server and are trying to connect to it by visiting it in a browser (doesn't work, browser expects HTML or other plain content) or haven't created a regular HTTP server for the root endpoint.

If it's the former, you should only connect to your server using a WebSocket client, such as the WebSocket interface in JavaScript.

If you want to be able to see the webpage on the homepage in a browser, look up a tutorial for your language and framework for a hybrid HTTP-WebSocket server.

Profile icon
RYANTADIPARTHI

it means you are using an outdated version, and you need an upgrade for it, to use it properly.