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

Client receives incomplete data #96

Closed
Kronos87 opened this issue Apr 30, 2014 · 3 comments
Closed

Client receives incomplete data #96

Kronos87 opened this issue Apr 30, 2014 · 3 comments

Comments

@Kronos87
Copy link

Hello, I got a problem with the client. When the server sends json strings in a loop without pausing the client second receive is incomplete. How does this happen? The same procedure with a dart webSocket client runs like charme and receives everything correctly. Please help.

    private void OnReceive(UserContext context)
    {
        String json = context.DataFrame.ToString();
        var obj = JsonConvert.DeserializeObject<MyObj>(json);
    }
@steforster
Copy link

I fixed this message loss, when several messages are received in the same TCP packet.
Use my fork or pull request #94.

@Kronos87
Copy link
Author

Kronos87 commented May 2, 2014

Thanks steforster. Works great. I just used your fork.Cheers.

@Kronos87 Kronos87 closed this as completed May 2, 2014
@zyo2012
Copy link

zyo2012 commented Jul 23, 2014

I can confirm that steforster build is great.
One thing to remember, if your data is bigger than 100 kb it will be cut because of hard fixed variable
public UInt64 MaxFrameSize = 102400; //100kb in Context.cs

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

No branches or pull requests

3 participants