Skip to content

WebSocket writes are binary only #85

@freynder

Description

@freynder

I'm trying to send a JSON payload with websocket transport from server to client. The message is always sent as binary, even though the payload is text. This may cause compatibility issues with other libraries that expect text payloads for content type application/json, such as Krossbow. At least we should be able to specify the desired payload type.

I traced the call stack to StompServerWebSocketConnectionImpl::write which calls socket.writeBinaryMessage, I don't see any possiblity to enforce sending as text.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions