Problem with receiving events via websocket

I’m trying to write a bot for mattermost. People at work created me a bot with a token. I’m connecting via websocket. I manage to connect, and the Hello event arrives. But that’s all. No more events come. Mattermost version 5.39.0. How to receive any event, in particular the event about receiving new posts? Maybe I need to configure the bot somehow differently?

I’m also having this issue. Our server is currently running HTTP as it’s undergoing testing. Not sure if that has something to do with it or if I need to adjust a keepalive timer or something like that.

My server’s websocket URL parameter in the config.json is blank. Not sure if that’s a problem as well or not, but it came like that and I haven’t found much documentation around it.

@KostyaRyabov 5.39 is ancient! I cannot recommend strongly enough that you upgrade.

1 Like

@austin3410 you may need to allow CORS Integrations configuration settings - Mattermost documentation

1 Like