diff --git a/server.js b/server.js index 45142c0..c7bd4fb 100644 --- a/server.js +++ b/server.js @@ -63,7 +63,7 @@ io.on('connection', (client) => { case 'clear': if (color == undefined) color = [0, 0, 0] sensehat.led.clear(color) - client.emit('action', { action: 'clear', color }) + io.emit('action', { action: 'setPixels', pixels }) break // case 'flash': // if (color == undefined) color = [255, 255, 255]