-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run websocket at /? #7
Comments
Hi @ErikPDev, believe it should be something like -
See https://godoc.org/github.com/Sandertv/mcwss#Player.OnBlockPlaced P.S. You should be creating a separate issue for your question. |
Alright, thanks mate! |
@Sandertv, would appreciate your support.. |
I'm looking into a fix right now. |
Seems like this is a Go specific thing... localhost:8000/anything works with |
It is interesting since |
Hmm, probably the following will help - I tried to handle HTTP requests at But I got the following error - panic: http: multiple registrations for /ws
Believe, it should work at the same time, since ports are different. |
Probably this issue is dead, but did you try /* |
@ErikPDev, thanks. I tried to use '/*', but in result I can access the socket at |
I am trying to replace default
/ws
handler with/
or with the empty value. But it doesn't work.With the code below the server is still available at
/ws
.But if I replace
/
with/w
, then it works as expected.The text was updated successfully, but these errors were encountered: