Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Copas Receive #33

Open
usysrc opened this issue Apr 23, 2014 · 5 comments
Open

Question: Copas Receive #33

usysrc opened this issue Apr 23, 2014 · 5 comments
Labels

Comments

@usysrc
Copy link

usysrc commented Apr 23, 2014

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.

@lipp
Copy link
Owner

lipp commented May 3, 2014

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.

@lipp
Copy link
Owner

lipp commented Jun 24, 2014

@headchant is this sufficient for you?

@usysrc
Copy link
Author

usysrc commented Jun 24, 2014

I think a ws:settimeout() would be what I need. Would it be possible to implement something like that?

@lipp
Copy link
Owner

lipp commented Jun 27, 2014

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

@usysrc
Copy link
Author

usysrc commented Jun 27, 2014

this would be for the websocket client

@lipp lipp added the feature label Nov 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants