lxzan / gws

simple, fast, reliable websocket server & client, supports running over tcp/kcp/unix domain socket. keywords: ws, proxy, chat, go, golang...
https://pkg.go.dev/github.com/lxzan/gws
Apache License 2.0
1.34k stars 84 forks source link

Chat example - gws: websocket version not supported #88

Closed bnbabu55 closed 3 months ago

bnbabu55 commented 3 months ago

Hi, I just copied the chat example from the repo and tried to run on port 9090. Then opened the browser with url http://localhost:9090/connect?name=hellokitty&key=123 and I am getting "gws: websocket version not supported" on the browser.

Running this on a Intel based Windows 11 machine, Go 1.22.2 version, if that helps.

I have not made any changes to the example code except the port number. I checked in Chrome, Firefox, Edge to no avail.

image

lxzan commented 3 months ago

try https://localhost:9090/index.html