Files
gitlink-forgeplus/app/assets/javascripts/channels/mirror_project.js
2020-07-02 15:49:22 +08:00

14 lines
394 B
JavaScript

App.mirror_project = App.cable.subscriptions.create("MirrorProjectChannel", {
connected: function() {
// Called when the subscription is ready for use on the server
},
disconnected: function() {
// Called when the subscription has been terminated by the server
},
received: function(data) {
// Called when there's incoming data on the websocket for this channel
}
});