12 lines
215 B
JavaScript
12 lines
215 B
JavaScript
import * as server from './server.js';
|
|
import * as lights from './lights.js';
|
|
|
|
|
|
server.recv(
|
|
(res) => {
|
|
lights.set_pattern(JSON.parse(res));
|
|
},
|
|
(res) => {
|
|
console.log(`error callback: ${res}`);
|
|
}
|
|
);
|