|
@ -196,7 +196,7 @@ socket.on('battery', (data) => { |
|
|
ctx.font = "24px Arial"; |
|
|
ctx.font = "24px Arial"; |
|
|
ctx.fillStyle = "blue"; |
|
|
ctx.fillStyle = "blue"; |
|
|
//ctx.fillText("Hello World", canvas.width/3, 30); |
|
|
//ctx.fillText("Hello World", canvas.width/3, 30); |
|
|
socket.emit('get_stats', { "type": ["battery"] }); |
|
|
//socket.emit('get_stats', { "type": ["battery"] }); |
|
|
|
|
|
|
|
|
$('form#message').submit(function(event) { |
|
|
$('form#message').submit(function(event) { |
|
|
socket.emit('text', {data: $('#message_data').val()}); |
|
|
socket.emit('text', {data: $('#message_data').val()}); |
|
|