Skip to content
Snippets Groups Projects
Commit 8b905dc1 authored by Aymeric Bernard's avatar Aymeric Bernard
Browse files

panel_data0 socket to receive dummy data

parent ce814c33
Branches
No related tags found
No related merge requests found
......@@ -21,4 +21,35 @@ io.of('/').on('connection', (socket) => {
.then(res => socket.emit('panel_data', res))
.catch(console.log);
});
// TEMP Respond to panel_data message by fetching the info from the server
socket.on('panel_data0', () => {
socket.emit('panel_data', {
version: '0.0.4',
ttl: 300000,
rows: [
{
type: 1,
image: 'https://people.via.ecp.fr/~bebert/toddy.jpg',
text: [
{ text: 'What I want to display', style: { color: '#000000' } },
{ text: '42', style: { color: '#BB8800', fontWeight: 'bold' } },
],
},
{
type: 0,
text: [
{ text: 'Some text', style: { color: '#000000' } },
{ text: '66', style: { color: '#BB8800', fontWeight: 'bold' } },
],
},
{
type: 2,
image: 'https://people.via.ecp.fr/~bebert/chatenay.jpg',
heightFactor: 3,
text: [{ text: 'Nope' }],
},
],
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment