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

Frame size #46

Open
vogloblinsky opened this issue Dec 27, 2017 · 5 comments
Open

Frame size #46

vogloblinsky opened this issue Dec 27, 2017 · 5 comments

Comments

@vogloblinsky
Copy link

I try to send a JSON object with a web client inside one application, connected to the server running on another app.
With a very light JSON all is working fine.
With a very big JSON (6Mb) the client got an 1006 error (Close Event).

Did this issue comes from the implementation of Websocket inside cordova webview ? or on the server side ?

Thanks

@vogloblinsky
Copy link
Author

Updates about my previous question. I try to connect my websocket client app to a Node.js websocket server using this package (https://github.com/theturtle32/WebSocket-Node).
With the default settings, i got a 1009 error : "Frame size of 131072 bytes exceeds maximum accepted frame size"
Upgrading the options maxReceivedFrameSize and maxReceivedMessageSize i was able to send a big message over the wire.
https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocketServer.md#server-config-options

So is it possible to tweak the server settings on this plugin to increase the sizes of messages ?

Thanks

@becvert becvert changed the title [QUESTION] Frame size Frame size Dec 28, 2017
@becvert
Copy link
Owner

becvert commented Dec 28, 2017

it isn't possible at the present time.
but I'll have a look

@becvert
Copy link
Owner

becvert commented Dec 28, 2017

could you tell me if you have the issue on both a Android server and a iOS server. Thank you.

@vogloblinsky
Copy link
Author

I have just made a test with an Android app with this plugin running.
Light message works fine, very big doesn't. But i don't have the 1006 error, just no callback message inside the console.log inside the app server.

@vogloblinsky vogloblinsky changed the title Frame size [QUESTION] Frame size Dec 29, 2017
@becvert becvert changed the title [QUESTION] Frame size Frame size Dec 29, 2017
@becvert
Copy link
Owner

becvert commented Jan 2, 2018

I won't fix that for the moment. Maybe ever. Please PR if you can. Anyone's help is welcomed otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants