Ghost and websocket... possible?

#1

Hi,
I’m new with Ghost and wonder if it’s possible to have an websocket connection with ghost.
I’ve also looked at strapi.io and feather.js and both support it.

For ghost, I didn’t found any plugins, or threads which are describing if it’s possible and how to do.
Would be glad to get some suggestions for this.

#2

Hey!

What is the use-case for having a WebSocket exactly? Do you mean as a way of communicating with the Content API?

#3

The User-Case is, that Data can be used in App’s (android / ios) in realtime.
e.g in Chat-Apps or for reactive data in the App.

#4

So you want to bring new posts/tags into your chat app in realtime, is that correct?

We don’t currently have support for WebSockets, but we do have Webhooks, which you can use to update your chat app when changes occur in your Ghost instance.

You can set up a WebSocket on the server which hosts your realtime app, and listen for Webhooks there, pushing the data into a WebSocket :slight_smile:

closed #5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.