Rank: Newbie Groups: Member
Joined: 6/22/2016 Posts: 3
|
Hi, How catch websocket? Can I use EO.WebBroswer to catch websocket? Thank you!!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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!
|
Rank: Newbie Groups: Member
Joined: 6/22/2016 Posts: 3
|
OK, Thank you!!
|