- Thu Nov 24, 2016 5:34 am
#58610
hey Marcel,
thank you for your suggestions. I had to set up a server by my own because the data should be processed in a local network I´m very interested to try some things. To create a websocket is more complex than using a php-server on apache? Can you point out some problems please?
In the meanwhile I changed GET to POST request I took this into account earlier but I failed to get this work. Now I´m struggling with a new problem. I moved the conn:send() command to the event "received". On every "received" the module is firing a chunk of data but my apache is not progressing every data package. I figured out that the problem is my php code. When data is arrived my server take the arrived string and put them into the data file. In the meanwhile data arrives again which is not processed until the file is closed or the previous step is finished. I thought about to wait for the payload because this is the sign that the server is done. Is this a common problem or are there other solutions for this?
From time to time I get an error which says that the payload size expected should be <1460 what does that mean? I thought POST data is not restricted by the string length or size?
Best regards
Sille