count-anything/app/javascript/channels/count_channel.js
Louis Vallat 1ab28933e7
feat: added navbar
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2023-02-04 14:22:05 +01:00

17 lines
417 B
JavaScript

import consumer from "./consumer"
consumer.subscriptions.create("CountChannel", {
connected() {
// Called when the subscription is ready for use on the server
console.warn("Connected to CountChannel.");
},
disconnected() {
// Called when the subscription has been terminated by the server
},
received(data) {
// Called when there's incoming data on the websocket for this channel
}
});