Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
define: {}
});
Server.List = can.List.extend({
Map: Server
}, {});
export const serverConnection = superMap({
url: '/amity/servers',
idProp: 'name',
Map: Server,
List: Server.List,
name: 'server'
});
tag('server-model', serverConnection);
socket.on('servers created', server => serverConnection.createInstance(server));
socket.on('servers updated', server => serverConnection.updateInstance(server));
socket.on('servers removed', server => serverConnection.destroyInstance(server));
console.log(serverConnection.getList);
export default Server;