OpenDeck/sockets/getType.js

9 lines
181 B
JavaScript
Raw Normal View History

const types = require("../types").types;
module.exports = socket => {
return () => {
socket.emit("getType", Object.values(types).map(t => t.staticToJSON()));
}
};