import { Meteor } from "meteor/meteor";
import Players from "../collections/Players.js";
Meteor.publish("players", (roomId) => {
if (roomId === undefined) {
return [];
}
return Players.find({ roomId });
});