Skip to content

A generic Webhook callback to receive data from interested server, and a WebSocket server that dispatches the data to WebSocket subscribers who are interested with a certain type of data.

License

Notifications You must be signed in to change notification settings

OItisTang/WebhookPublisherWebSocketSubscriber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebhookPublisherWebSocketSubscriber

A generic Webhook callback to receive data from a interested server, and a WebSocket server that dispatches the data to WebSocket subscribers who are interested in a certain type of data.


WebhookCallback (php)

create a Webhook to:
WebhookCallback.php?key={an identifier for this webhook data, example: my_trello_board_update}
or
WebhookCallback.php?keyPathInDataObj={path to a value to be used as key, example: model.shortUrl}

this Webhook will receive POST data from the interested server, and it will publish this data to WebSocketPushServer


WebSocketPushServer (php)

put WebSocketPushServer to anywhere on the server
and run start.sh


WebSocketSubscriberClient

open index.html from browser
and subscribe to a "key"
whenever there is a data published with the "key" from the WebhookCallback, WebSocketPushServer will push it to this client.

About

A generic Webhook callback to receive data from interested server, and a WebSocket server that dispatches the data to WebSocket subscribers who are interested with a certain type of data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published