Open usysrc opened 10 years ago
For clients there is a limited support for copas timeouts. https://github.com/lipp/lua-websockets/blob/master/API.md#websocketclientcopas If you need more elaborate timeout control, I could provide a ws:settimeout() method.
@headchant is this sufficient for you?
I think a ws:settimeout() would be what I need. Would it be possible to implement something like that?
this should be no problem. are you using websocket client or server?
this would be for the websocket client
I hope you don't mind. This is more of a question than an issue. Do you know of any way to timeout the ws:receive() or whole sockets using copas and your lib? Maybe I'm missing something, I'm not sure.