I am using websockets to communicate between a prolog server and a non prolog client. Sometimes the server sends data over to the client using ws_send. It all happens locally on one machine.
Sometimes, it takes quite a bit of time for a message sent to be received by the client, and i am wondering what that delay is – could it be that after ws_send there is some message buffering going on and to send messages immediately, there is a need for flush, somehow?
any thoughts are much appreciated,