update
This commit is contained in:
parent
af6f38b2da
commit
390f4b4c14
@ -52,7 +52,7 @@ sensehat.led.loadImage('images/heart.png')
|
||||
// socketio 服务
|
||||
const io = require('socket.io')(server, { cors: { origin: '*' } })
|
||||
io.on('connection', (client) => {
|
||||
client.on('operation', ({ action, x, y, color, pixels }) => {
|
||||
client.on('action', ({ action, x, y, color, pixels }) => {
|
||||
switch (action) {
|
||||
case 'clear':
|
||||
sensehat.led.clear()
|
||||
|
Loading…
Reference in New Issue
Block a user