kagerou icon indicating copy to clipboard operation
kagerou copied to clipboard

how to use kagerou with WebSocket plugin?

Open pastarice opened this issue 6 years ago • 6 comments

I tried to input the url into websocket the same way that I do for mopimopi, but it doesn't work.

Would you please let me know how to set it up?

Thanks

pastarice avatar Aug 28 '19 23:08 pastarice

this url should work: http://unsecure.idyllshi.re/kagerou/overlay?HOST_PORT=ws://localhost:10501

the HOST_PORT part is which should be attached by OverlayProc, but it seems didn't.

hibiyasleep avatar Aug 29 '19 08:08 hibiyasleep

I found several URLs. What's the difference?

1: http://unsecure.idyllshi.re/kagerou/overlay?HOST_POR=ws://localhost:10501 (posed on this thread) 2: https://idyllshi.re/kagerou/overlay/?HOST_PORT=ws://127.0.0.1:10501/ (https://ngld.github.io/OverlayPlugin/streamers) 3: https://hibiyasleep.github.io/kagerou/overlay/?HOST_PORT=ws://127.0.0.1:10501/ (NGLD OverlayPlugin 0.11.6.0 show this URL) 4: http://kagerou.hibiya.moe/overlay/?HOST_PORT=ws://127.0.0.1:10501/ (Redirected from github.io )

FX8350 avatar Dec 25 '19 17:12 FX8350

tl;dr: ACTWebSocket doesn't allow HTTPS for overlays since local WebSocket connection is not secured.

  • hibiyasleep.github.io is the first and original URL served directly from GitHub. HTTPS is forced.
  • kagerou.hibiya.moe is HTTP-only replacement; when WebSocket user opens HTTPS URL from its OverlayProcess, browser etc, an overlay will redirect user here.
  • idyllshi.re is just yet another domain. I'm trying to make new users use this URL.
  • unsecure.idyllshi.re exists for the same reason as kagerou.hibiya.moe.

hibiyasleep avatar Dec 29 '19 12:12 hibiyasleep

Not to necro this issue but I'm trying to set up to use my phone as a second screen. http://unsecure.idyllshi.re/kagerou/overlay?HOST_PORT=ws://{MY_IP}:10501 redirects me to https://hibiya.moe/kagerou/overlay?HOSTPORT=ws://{MY_IP}:10501 and gives me NGINX Not Found. This is for both Firefox and Chrome on Android 10.

dkolb avatar Feb 01 '20 17:02 dkolb

I just failed to reproduce on Chrome on Android 9, but it could be my server configuration error... is http://unsecure.~~~ URL working now?

hibiyasleep avatar Feb 03 '20 18:02 hibiyasleep

Chrome on Android 10 here. It's still sending me to https://hibiya.moe~~~ I cleared the disk cache and got Chrome Remote Debugging up and running.

Here's the request:

GET /kagerou/overlay/?HOST_PORT=ws://192.168.86.38:10501 HTTP/1.1
Host: unsecure.idyllshi.re
Connection: keep-alive
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Linux; Android 10; Pixel 3 XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Mobile Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9

And here's the response:

HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.3 (Ubuntu)
Date: Thu, 06 Feb 2020 01:05:01 GMT
Content-Type: text/html
Content-Length: 194
Connection: keep-alive
Location: https://hibiya.moe/kagerou/overlay/?HOST_PORT=ws://192.168.86.38:10501

It looks like I'm coming in over ipv6 too, if that matters.

image

dkolb avatar Feb 06 '20 00:02 dkolb