Jump to content

Recommended Posts

I am using the ICS TWSocketServer to communicate between a delphi application and a collection of React applications embedded in Edge browsers.

 

The websocket server is running in the delphi application as are the React web applications.

 

When one of the React applications attempts to connect with the websocket server it sends a json frame with some information needed for authentication.

 

I am able to extract the header information but I cannot figure out how to get the json.

 

Could someone help me?

 

Richard Maley

Edited by CoeurdeLeon

Share this post


Link to post

If you really mean the websocket protocol and not HTTP, there are no header or bodies or protocol, once a websocket is open there is simply a two way TCP stream, and you can send what you like. 

 

That stream arrives at the server in the ClientWSFrameRcvdEvent as a string packet and TWebSocketReceivedFrame to tell what typer of data is arriving (text, binary, or closing), it's up to the developer to decide how to interpret that data.

 

Angus

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×