Skip to content

Websocket hangs after channel join #77

Description

@zastrixarundell

I think that the title is self-explanatory. When I try to use the following:

URI uri = new URI("ws://localhost:4000/plugin/websocket");

Socket socket = new Socket(uri.toString());
socket.connect();

JsonNode node = JsonNodeFactory.instance.objectNode()
        .put("message", "hello!");

Channel channel = socket.chan("plugin:connect", node);
channel.join();


channel.push("new:msg", node);
channel.leave();
socket.disconnect();

I can connect and the payload does show, and then nothing. It doesn't push the message, doesn't leave nor disconnect and my Java app is never actually stopped.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions