Re: New feature: Websocket support
Posted: Wed May 04, 2016 10:13 am
Ah crap, that's actually a known issue I've forgotten about. I'll look into it.
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
dbetz wrote:I see a comment in the cgiWebsocketBroadcast function that says it has buffer issues if used outside of the httpd send/receive context. I think the same is true for cgiWebsocketSend isn't it? I need to call that outside of the httpd send/receive context as well. I notice that the buffers are dynamically allocated anyway contrary to what the comments say about them being on the stack. If that's the case, couldn't httpdSend just allocate a buffer as needed?