Realtime application
This is an example of an Express website handling persistent data.
Webhook Communication
Webhook is a way for GitLab to notify your server about events. It sends an HTTP POST request to a specific URL on your server when a defined event occurs. This allows your server to react and perform actions accordingly.
Example:
GitLab Webhook for Push Event:
POST /webhook-endpoint
{"event": "push", "repository": "your-repo", "commit": "latest-commit"}
WebSocket Communication
WebSocket provides a real-time, bidirectional communication channel. It allows continuous communication between GitLab and your server, enabling instant updates and notifications without the need for constant polling.
Example:
Server sends a message to GitLab:
{"message": "Update received from server"}