messaging

Stream

Publish and subscribe to messages

Publish Free

POSThttps://api.m3o.com/v1/stream/Publish

Publish a message to the stream. Specify a topic to group messages for a specific topic.

Request payload

message object

The json message to publish

topic string

The topic to publish to

Subscribe Free

POSThttps://api.m3o.com/v1/stream/Subscribe

Subscribe to messages for a given topic.

Request payload

topic string

The topic to subscribe to

Response

message object

The next json message on the topic

topic string

The topic subscribed to