mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
12 lines
192 B
JavaScript
12 lines
192 B
JavaScript
import socket from "../socket";
|
|
|
|
const Channel = {
|
|
gameChannel: (gameId) => {
|
|
const channel = socket.channel(`game:${gameId}`, {});
|
|
|
|
return channel;
|
|
},
|
|
};
|
|
|
|
export default Channel;
|