-
Notifications
You must be signed in to change notification settings - Fork 372
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
Any example for using this library with gnet
?
#201
Comments
Hey, no idea about |
I have created a very fast and modular framework and is used in production in our company. You can check how i used gnet and gobwas/ws together. The related code is in std/gateways/fastws |
@ehsannm Thank you! This is really helpful. Have you tried sending a websocket message that is larger than the But once you get a text/binary payload frame, if the frame size is bigger than the For example, if you set |
@spy16 thanks for the point, i did write a test in the |
Thanks, I will check this out. I will also close this issue since it's more related to the source reader itself than this package. |
I am trying to use
gobwas/ws
withhttps://github.com/panjf2000/gnet
library in an attempt to build a high-performance websocket server.I am running into
io.ErrShortBuffer
error under two cases:I don't have deep understanding of the websocket protocol internals, but I believe this happens due to the continuation & fragmented frames? I found this reference but it's bit unclear ..
Are there any other examples to use
gobwas/ws
to use with a model likegnet
? I believe, what I need here is to use a buffered reader in between instead of directly passing thegnet.Conn
to thewsutil
/ws
functions.The text was updated successfully, but these errors were encountered: