Skip to content

flushAsync in string connector is causing multiple messages in single frame #12

Closed
@revelfire

Description

@revelfire

The spec is unclear on support for this. I am using Spring Websocket support and so far no good with multiple message handling. Working with them - they are considering adding this support but the simplest fix for now is to require one-message-per-frame. This fix does that. The basic problem is if I say:

subscribeJSON(...);
subscribeJSON(...);

say to setup multiple topic listeners in a bootstrapping method, only the first gets registered because they all go in the same frame. This is due to the plugin.dart StringConnector.writeEof() doing flushAsync rather than just flush.

This may be by design for other purposes that I don't understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions