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

Wrong length in FRAME if message contains UTF8 #5

Closed
sinnus opened this issue May 14, 2012 · 0 comments
Closed

Wrong length in FRAME if message contains UTF8 #5

sinnus opened this issue May 14, 2012 · 0 comments
Assignees
Milestone

Comments

@sinnus
Copy link

sinnus commented May 14, 2012

Try to use simple socket.io client (like in example) and the following handler:

        SocketIOListener handler = new SocketIOListener() {

            @Override
            public void onMessage(SocketIOClient client, String message) {
                System.out.println("MESSAGE: " + message);
                client.sendJsonObject(message);
                client.sendJsonObject(message);
            }

            @Override
            public void onDisconnect(SocketIOClient client) {
                System.out.println("DISCONNECT");
            }

            @Override
            public void onConnect(final SocketIOClient client) {
                System.out.println("CONNECT");
            }

            @Override
            public void onJsonObject(SocketIOClient client, Object obj) {
                System.out.println("MESSAGE JSON: " + obj);
                client.sendJsonObject(obj);
                client.sendJsonObject(obj);
            }
        };
  1. Open html/js sample
  2. Input into input field UTF8 message like "Привет"
  3. Open Web console to monitor Net or Firebug
  4. Press send button
  5. You will receive sometime "При" insread of "Привет"

Make sense for incoming and committing messages.

mrniko pushed a commit that referenced this issue May 15, 2012
@ghost ghost assigned mrniko May 15, 2012
@sinnus sinnus closed this as completed May 15, 2012
@mrniko mrniko reopened this May 16, 2012
mrniko pushed a commit that referenced this issue May 16, 2012
@mrniko mrniko closed this as completed May 16, 2012
YoonsooChang added a commit to simim7/netty-socketio that referenced this issue Jun 7, 2020
For Merging Again To Master(Reverted)
This issue was closed.
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