Streaming example
Upon opening up a WebSocket connection to MLink, Authenticating, and requesting to stream a message (msgName) with user specified conditions (view, where, etc), the MLinkServer will initially clear cache. This means it will forward the latest updates to all of the primary keys in your message before it starts streaming.
MLinkServer Communication Sequence:
-
Authentication State: MLinkServers send an MLinkAdmin message with the authentication state upon authentication.
-
Acknowledgement: MLinkServers acknowledge reception of the message request by sending an Acknowledgement message of type MLinkStreamAck.
-
First Checkpoint: MLinkServers send a first checkpoint MLinkStreamCheckPt with a message body state of begin, indicating the start of cache clearing.
-
Cached Records: MLinkServers send the cached records.
-
Secondary Checkpoint (Active): A secondary checkpoint MLinkStreamCheckPt is sent with a message body state of Active, indicating that the request is active.
-
Completion Checkpoint: Another MLinkStreamCheckPt is sent with a message body state of Complete, alerting the client side that cache has cleared.
-
Streaming Begins: MLink starts streaming.
Example Request: Streaming AMZN Stock Quote
Response Order