Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1021 Bytes

README.md

File metadata and controls

56 lines (34 loc) · 1021 Bytes

Cockpit Real-time Server

This is a Websocket Middleware server for Cockpit Headless CMS.

You can use the following Javascript SDK to get real-time updates.

Cockpit Webhook

Add a Webhook to Cockpit with the following settings:

  • Url: http://localhost:4000/update

    Or the public address where the server is hosted

  • Events:

    You must add at least one event. e.g.:

    • collections.save.after
    • collections.save.after.portfolio
    • webhook screenshot

Preview collections

Edit each collection and add the following settings:

  • Preview URL: The http url where you can see the changes.
  • Websocket: ws://localhost:4000/
  • webhook screenshot

Installation

npm install

Start

npm start

Development

npm start

Deployment

You can easily deploy with Zeit Now

npm deploy