Xojo.net.HttpSocket keep alive?

Is it possible to keep a Xojo.net.HttpSocket alive ? And how could i do this?


Since you gave us nothing to work with, here’s a doc link: http://developer.xojo.com/xojo-net-httpsocket

It’s simple, RequestHeader(“Connection”) = “Keep-Alive” doesn’t seem to work…:wink:

It’s a generic problem with many sockets and platforms. Just make sure at least some data will be transferred periodically.

Use RB-libcURL: https://github.com/charonn0/RB-libcURL and your headaches will be gone.

Can it be used for websockets too?

libcURL doesn’t implement the websocket protocol. It can establish the connection for you but you would have to implement the protocol yourself.