1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/assets/js/services/channel.js

12 lines
192 B
JavaScript

import socket from "../socket";
const Channel = {
gameChannel: (gameId) => {
const channel = socket.channel(`game:${gameId}`, {});
return channel;
},
};
export default Channel;