Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Real time message with websocket

$
0
0

Hi @yli,

When another user makes a post, you should receive a JSON-serialized message over the websocket like

{
    "event": "posted",
    "data": {
        "post": "{\"id\": \"1234\", \"message\": \"test message\"}" // a JSON-serialized Post object like you'd get from the API
    }
}

We're working on proper documentation for our websocket API that will be available in a few days, but in the mean time, you can look here for an example of how our web app handles them.


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>