mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 19:41:37 +01:00
13 lines
277 B
JavaScript
13 lines
277 B
JavaScript
App.timeline = App.cable.subscriptions.create("TimelineChannel", {
|
|
connected: function() {
|
|
console.log('Connected');
|
|
},
|
|
|
|
disconnected: function() {
|
|
console.log('Disconnected');
|
|
},
|
|
|
|
received: function(data) {
|
|
console.log(JSON.parse(data.message));
|
|
}
|
|
});
|