Gerhard Preuss

Results 80 comments of Gerhard Preuss

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?

this should be no problem. are you using websocket client or server?

@EnTerr Added this as feature request. It's not that trivial, as you must think of partially received messages/frames.

great. i'll keep this issue open, until ws:receive() accepts an optional timeout

nice! can you make a PR from this?

By requiring single modules you can circumvent auto require copas. e.g. `require('websockets.client_ev')` PRs welcome :+1:

I hope to get this done within some days. Meanwhile you may have a look at the spec/ folder. It contains busted tests and implicitly documents the API. https://github.com/lipp/lua-websockets/blob/master/spec/client_spec.lua

API.md created. TODO add lua-ev backend doc.

This will require some rework of the daemon AND peer implementations. The daemon and peer must somehow agree upon the (number of) messages already received. Both may must keep a...