Skip to content

Subscription transport protocol has wrong casing #192

@cotillion

Description

@cotillion

It appears 3.3 broke the serialization of the transport protocol.
Even the sample project is giving: Error: Invalid message type!

This appears to happen because 'type' is now 'Type'

{"Id":null,"Type":"connection_ack","Payload":null}

The structure is supposed to be:

export interface OperationMessage {
  payload?: any;
  id?: string;
  type: string;
} 

I belive this was broken by #174
The DocumentWriter appears to use the MVC JSON serialization settings. These could perhaps be used for the Payload but not for the OperationMessage itself.

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