How can I communicate with CEF
via Indy
Sockets through Remote debugging protocol
?
As described here: https://developers.google.com/chrome-developer-tools/docs/debugger-protocol
![](../../users/profiles/3060326.webp)
- 179
- 2
- 16
2 Answers
The API currently requires using the WebSocket protocol which is not supported in Indy. The API documentation page contains this note:
Note that we are currently working on exposing an HTTP-based protocol that does not require client WebSocket implementation.
There are WebSocket client libraries available for Delphi both free and commercial (some use Indy as their internal TCP library).
You will also need a JSON library, available in newer Delphi versions and also as free open source (for example SuperObject and lkJSON).
![](../../users/profiles/80901.webp)
- 35,561
- 24
- 160
- 351
I made a Proof of Concept for DWS (pascal to javascript compilation, as used in Smart Mobile Studio) some time ago: https://code.google.com/p/asmprofiler/source/browse/#svn%2Ftrunk%2F-Other-%2FRemoteDebuggerDWS
You can use my Indy 10 websocket (and socket.io!) components from here: https://github.com/andremussche/DelphiWebsockets
![](../../users/profiles/197220.webp)
- 7,854
- 1
- 21
- 23
-
Wow amazing! Is it possible to protect the chrome server somehow? Via password? – user3060326 May 12 '14 at 07:54
-
@user3060326: AFAIK no (only enable debugging stuff when developing and not in production) – André May 12 '14 at 12:56
-
You can use `--remote-debugging-socket-name` but I don't know this works. Socket name vs Port number? – user3060326 May 12 '14 at 13:48