]>
git.r.bdr.sh - rbdr/sorting-hat-renderer/blob - lib/services/data.js
cc6c5eef3840891d9626b8adc8160b7b8be7befe
3 kSocketLocation: 'ws://localhost:1987',
13 internals
.socket
= new WebSocket(internals
.kSocketLocation
);
14 internals
.socket
.addEventListener('message', (data
) => {
16 Object
.assign(internals
.data
, JSON
.parse(data
.data
));
24 if (!internals
.socket
) {
25 internals
.initSocket();
28 return internals
.data
;