I continue this thread since it has already begun on the subject.
I am carrying out my iHttpServer project, I had to face several technical problems of transmission, encoding, decoding, data extraction of text and generic data in bytes.
Mainly for inexplicable reasons different behaviors in the release version, debug and debug step by step.
But also data reception events that are not raised.
see here:
My SERVER app working fine in debug mode crashes when in release mode. The moment that crashes is when the client is shut down abruptly or sometimes just at startup. I have two Crash-Reports but I can't figure out what the error is. Anyone know how to translate what is written? Incident...
www.b4x.com
And here
I started developing a version of the HttpServer Library for iOs. It is still a beta version and not complete, but already functional. You can start using it to test it. Includes WebSocket and QueryElement implementation Digest Auth will be added in the future. I have arrived at a first version...
www.b4x.com
Now I have concluded the basis for a working http server. But it seemed
incomplete, jQuery was missing which seem related to webSocket.
I always thought the webSocket was the same as the http connection but it doesn't close, it stays open. Nothing could be more
wrong, it is a separate protocol that starts from the normal http.
So I have been studying the ws protocol for days.
https://tools.ietf.org/html/rfc6455
Poor knowledge of English didn't help me, but I finally understood the protocol.
In the next few weeks I hope to release a fully functional webSocket server.
Although it will never be at Jetty Server level for me
it is a win because made entirely in B4I with no wraps in the obj-c code