Welcome Guest Search | Active Topics | Sign In | Register

About EO RegisterResourceHandler can't catch websocket wss:// url Options
Jack
Posted: Tuesday, May 3, 2022 1:27:22 PM
Rank: Newbie
Groups: Member

Joined: 6/22/2016
Posts: 3
Hi, How catch websocket?
Can I use EO.WebBroswer to catch websocket?
Thank you!!
eo_support
Posted: Tuesday, May 3, 2022 2:09:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

There is no builtin support to intercept web socket. You can not use resource handler to catch websocket because websocket is a direct two way connection and not the "typical" request/response manner. Resource handler is built on top of the HTTP protocol. While websocket uses the HTTP protocol to establish handshake, it switches to web socket protocol once the connection is established.

You could consider implement a proxy server to intercept web socket communication but it may not be worth the effort. Your proxy server would need to support HTTP tunnel (through HTTP CONNECT) and once you establish that tunnel, you would need to be able to interpret the traffic on that tunnel per web socket protocol in order to make any meaningful interception. So basically you need to implement both the HTTP proxy and web socket protocol. I apologize that there is nothing built-in on this regard.

Thanks!
Jack
Posted: Tuesday, May 3, 2022 2:35:23 PM
Rank: Newbie
Groups: Member

Joined: 6/22/2016
Posts: 3
OK, Thank you!!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.