-
Notifications
You must be signed in to change notification settings - Fork 111
How to decode websocket frame ? #19
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
Comments
@johnzeng This library provides both a client and a server for websocket. You just need to connect the client with the server at the same time to form a websocket proxy. |
Yeah....I get that from your mail list. Another question, how can I detect websocket closing if client closes the page without sending a close frame? Another question is that I can find demos using the following codes: while true do
local tpe, data, err = wb:recv_frame()
.... But it will result in tons of time out errors, any idea about it? |
@johnzeng Please use the mailing list for such questions. This place is for real issues in the code base. Thank you. |
Giving an example which will end up with tons of time out error should be an code base issue. |
I wanna decode the frames and wait for a special frame, after decoding and analyzing this frame, I will disconnect it or let it pass. But this module just recv the frame and never put it back, so it can be a websocket server, but can't be a proxy for websocket.
Any idea to make it a proxy for websocket?
The text was updated successfully, but these errors were encountered: