SlideShare uma empresa Scribd logo
1 de 7
Baixar para ler offline
peno3 Server
REST API
Socket.IO
REST API
Store / Get Non-Volatile Data
User info
Road condition
Game State
…
Socket.IO
Send/receive Volatile Data
Live communication
Notifications
Messages
…
Live Between Devices
(nothing is saved server side)
REST API
HTTP PUT / GET
http://daddi.cs.kuleuven.be/peno3/data/GROUPID
http://daddi.cs.kuleuven.be/peno3/data/GROUPID/SESSIONID
http://daddi.cs.kuleuven.be/peno3/data/GROUPID/SESSIONID/FIELD/VALUE
curl -H 'Content-Type: application/{“datagoes":"here"}' http://daddi.cs.kuleuven.be/peno3/data/GROUPID/SESSIONID
Socket.IO
var socket = io('http://daddi.cs.kuleuven.be', {path: '/peno3/socket.io'});
socket.emit("broadcast", {groupid:"Z1", sessionid:"1", data:{"message": "this is a message",
"interesting":"it is not"}});
socket.on("broadcasted", function(msg){
   console.log(msg);
})
http://daddi.cs.kuleuven.be/peno3/send.html
Socket.IO
http://daddi.cs.kuleuven.be/peno3/receive.html
var socket = io();
socket.emit("register", {groupid:"Z1", sessionid:1});
socket.on("broadcastReceived", function(data) {
   console.log("received " +JSON.stringify(data));
});
socket.on("registered", function(msg){
   console.log(msg);
})

Mais conteúdo relacionado

Mais procurados

Mais procurados (15)

Using the Power to Prove
Using the Power to ProveUsing the Power to Prove
Using the Power to Prove
 
01 linux basics
01 linux basics01 linux basics
01 linux basics
 
Issues chmk (1)
Issues chmk (1)Issues chmk (1)
Issues chmk (1)
 
PHP
PHP PHP
PHP
 
My_sql_with_php
My_sql_with_phpMy_sql_with_php
My_sql_with_php
 
What is suid, sgid and sticky bit
What is suid, sgid and sticky bit  What is suid, sgid and sticky bit
What is suid, sgid and sticky bit
 
Linux Command Line
Linux Command LineLinux Command Line
Linux Command Line
 
Unix Programming with Perl 2
Unix Programming with Perl 2Unix Programming with Perl 2
Unix Programming with Perl 2
 
Transformation jsontoxmlesb
Transformation jsontoxmlesbTransformation jsontoxmlesb
Transformation jsontoxmlesb
 
Transformation jsontoxmlesb
Transformation jsontoxmlesbTransformation jsontoxmlesb
Transformation jsontoxmlesb
 
xsvutils overview
xsvutils overviewxsvutils overview
xsvutils overview
 
More Depth Commands In Linux - By Vishnu
More Depth Commands In Linux - By VishnuMore Depth Commands In Linux - By Vishnu
More Depth Commands In Linux - By Vishnu
 
Ch3(working with file)
Ch3(working with file)Ch3(working with file)
Ch3(working with file)
 
File Handling in C Programming
File Handling in C ProgrammingFile Handling in C Programming
File Handling in C Programming
 
Unlocking Museum Systems with Open Source
Unlocking Museum Systems with Open SourceUnlocking Museum Systems with Open Source
Unlocking Museum Systems with Open Source
 

Destaque

Library volunteer training
Library volunteer trainingLibrary volunteer training
Library volunteer training
vjauregui
 
соц-дем 08-09'11 (NashKiev.UA)
соц-дем 08-09'11 (NashKiev.UA) соц-дем 08-09'11 (NashKiev.UA)
соц-дем 08-09'11 (NashKiev.UA)
NashKiev.UA
 
Produkty Xyngular
Produkty XyngularProdukty Xyngular
Produkty Xyngular
xyngularian
 
Birthday Week and Book Day
Birthday Week and Book DayBirthday Week and Book Day
Birthday Week and Book Day
NurseryTeam
 

Destaque (20)

Serious Play: Cognitive Aspects (module)
Serious Play: Cognitive Aspects (module)Serious Play: Cognitive Aspects (module)
Serious Play: Cognitive Aspects (module)
 
Art through the_information_age
Art through the_information_ageArt through the_information_age
Art through the_information_age
 
Wheelchairs - Africa and Americas
Wheelchairs - Africa and AmericasWheelchairs - Africa and Americas
Wheelchairs - Africa and Americas
 
Dgroups @ picnic comm2012
Dgroups @ picnic comm2012Dgroups @ picnic comm2012
Dgroups @ picnic comm2012
 
Press release air conditioners europe
Press release air conditioners   europePress release air conditioners   europe
Press release air conditioners europe
 
Library volunteer training
Library volunteer trainingLibrary volunteer training
Library volunteer training
 
соц-дем 08-09'11 (NashKiev.UA)
соц-дем 08-09'11 (NashKiev.UA) соц-дем 08-09'11 (NashKiev.UA)
соц-дем 08-09'11 (NashKiev.UA)
 
Exploring Inquiry-Based Learning Analytics through Interactive Surfaces
Exploring Inquiry-Based Learning Analytics through Interactive SurfacesExploring Inquiry-Based Learning Analytics through Interactive Surfaces
Exploring Inquiry-Based Learning Analytics through Interactive Surfaces
 
High-Gravity Distributed Agile Teams
High-Gravity Distributed Agile TeamsHigh-Gravity Distributed Agile Teams
High-Gravity Distributed Agile Teams
 
First Prese
First PreseFirst Prese
First Prese
 
Facts about Teen Challenge (Singapore)
Facts about Teen Challenge (Singapore)Facts about Teen Challenge (Singapore)
Facts about Teen Challenge (Singapore)
 
Fertilizer mixtures - Europe
Fertilizer mixtures - EuropeFertilizer mixtures - Europe
Fertilizer mixtures - Europe
 
Week8
Week8Week8
Week8
 
Sismicadita
SismicaditaSismicadita
Sismicadita
 
Medical dressings - Asia
Medical dressings - AsiaMedical dressings - Asia
Medical dressings - Asia
 
Vaccine markets in Europe
Vaccine markets in EuropeVaccine markets in Europe
Vaccine markets in Europe
 
Potassic fertilizers asia
Potassic fertilizers   asiaPotassic fertilizers   asia
Potassic fertilizers asia
 
Potassic fertilizers - Europe
Potassic fertilizers - EuropePotassic fertilizers - Europe
Potassic fertilizers - Europe
 
Produkty Xyngular
Produkty XyngularProdukty Xyngular
Produkty Xyngular
 
Birthday Week and Book Day
Birthday Week and Book DayBirthday Week and Book Day
Birthday Week and Book Day
 

Semelhante a Peno3server

[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
CODE BLUE
 
Application Layer and Socket Programming
Application Layer and Socket ProgrammingApplication Layer and Socket Programming
Application Layer and Socket Programming
elliando dias
 
Lab manual cn-2012-13
Lab manual cn-2012-13Lab manual cn-2012-13
Lab manual cn-2012-13
Sasi Kala
 
Networking
NetworkingNetworking
Networking
Tuan Ngo
 

Semelhante a Peno3server (20)

Going real time with Socket.io
Going real time with Socket.ioGoing real time with Socket.io
Going real time with Socket.io
 
Os 2
Os 2Os 2
Os 2
 
Basic socket programming
Basic socket programmingBasic socket programming
Basic socket programming
 
Arduino and the real time web
Arduino and the real time webArduino and the real time web
Arduino and the real time web
 
Decoder API- Haiwei- 2019.01.08
Decoder API- Haiwei- 2019.01.08Decoder API- Haiwei- 2019.01.08
Decoder API- Haiwei- 2019.01.08
 
Building Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEisBuilding Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEis
 
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
 
Unit 8 Java
Unit 8 JavaUnit 8 Java
Unit 8 Java
 
112 portfpres.pdf
112 portfpres.pdf112 portfpres.pdf
112 portfpres.pdf
 
Spacebrew & Arduino Yún
Spacebrew & Arduino YúnSpacebrew & Arduino Yún
Spacebrew & Arduino Yún
 
Sockets
Sockets Sockets
Sockets
 
Application Layer and Socket Programming
Application Layer and Socket ProgrammingApplication Layer and Socket Programming
Application Layer and Socket Programming
 
Arduino práctico ethernet
Arduino práctico   ethernetArduino práctico   ethernet
Arduino práctico ethernet
 
Lab manual cn-2012-13
Lab manual cn-2012-13Lab manual cn-2012-13
Lab manual cn-2012-13
 
[WSO2 Integration Summit Madrid 2019] Integration + Ballerina
[WSO2 Integration Summit Madrid 2019] Integration + Ballerina[WSO2 Integration Summit Madrid 2019] Integration + Ballerina
[WSO2 Integration Summit Madrid 2019] Integration + Ballerina
 
Node worshop Realtime - Socket.io
Node worshop Realtime - Socket.ioNode worshop Realtime - Socket.io
Node worshop Realtime - Socket.io
 
Network programming using python
Network programming using pythonNetwork programming using python
Network programming using python
 
Real Time Communication using Node.js and Socket.io
Real Time Communication using Node.js and Socket.ioReal Time Communication using Node.js and Socket.io
Real Time Communication using Node.js and Socket.io
 
Networking
NetworkingNetworking
Networking
 
JSR 82 (bluetooth obex)
JSR 82 (bluetooth obex)JSR 82 (bluetooth obex)
JSR 82 (bluetooth obex)
 

Mais de Sven Charleer

Mais de Sven Charleer (20)

Game UX Summit - Designing for the Audience
Game UX Summit - Designing for the AudienceGame UX Summit - Designing for the Audience
Game UX Summit - Designing for the Audience
 
Don't Let the Data Do the Talking: Better Data Visualisation through UX Design
Don't Let the Data Do the Talking: Better Data Visualisation through UX DesignDon't Let the Data Do the Talking: Better Data Visualisation through UX Design
Don't Let the Data Do the Talking: Better Data Visualisation through UX Design
 
Data driven dialogue through collaborative dashboards
Data driven dialogue through collaborative dashboardsData driven dialogue through collaborative dashboards
Data driven dialogue through collaborative dashboards
 
Real-time dashboards to support eSports spectators - CHI PLAY '18 Melbourne
Real-time dashboards to support eSports spectators - CHI PLAY '18 MelbourneReal-time dashboards to support eSports spectators - CHI PLAY '18 Melbourne
Real-time dashboards to support eSports spectators - CHI PLAY '18 Melbourne
 
Designing and Evaluating Student-facing Learning Dashboards: Lessons Learnt (...
Designing and Evaluating Student-facing Learning Dashboards: Lessons Learnt (...Designing and Evaluating Student-facing Learning Dashboards: Lessons Learnt (...
Designing and Evaluating Student-facing Learning Dashboards: Lessons Learnt (...
 
Preliminary PhD Defence - Student-facing Dashboards
Preliminary PhD Defence - Student-facing DashboardsPreliminary PhD Defence - Student-facing Dashboards
Preliminary PhD Defence - Student-facing Dashboards
 
Studie Traject Begeleiding, Learning Dashboards
Studie Traject Begeleiding, Learning DashboardsStudie Traject Begeleiding, Learning Dashboards
Studie Traject Begeleiding, Learning Dashboards
 
Creating Effective Learning Analytics Dashboards: 
Lessons Learnt
Creating Effective Learning Analytics Dashboards: 
Lessons LearntCreating Effective Learning Analytics Dashboards: 
Lessons Learnt
Creating Effective Learning Analytics Dashboards: 
Lessons Learnt
 
Faceted Search on Coordinated Tablets and Tabletop: a Comparison
Faceted Search on Coordinated Tablets and Tabletop: a ComparisonFaceted Search on Coordinated Tablets and Tabletop: a Comparison
Faceted Search on Coordinated Tablets and Tabletop: a Comparison
 
Intro to Learning Analytics
Intro to Learning AnalyticsIntro to Learning Analytics
Intro to Learning Analytics
 
PENO3
PENO3PENO3
PENO3
 
PoPI: Glyph Designs for Collaborative Filtering on Interactive Tabletops
PoPI: Glyph Designs for Collaborative Filtering on Interactive TabletopsPoPI: Glyph Designs for Collaborative Filtering on Interactive Tabletops
PoPI: Glyph Designs for Collaborative Filtering on Interactive Tabletops
 
Leren, Doceren en Technologie: Visual Learning Analytics Workshop
Leren, Doceren en Technologie: Visual Learning Analytics WorkshopLeren, Doceren en Technologie: Visual Learning Analytics Workshop
Leren, Doceren en Technologie: Visual Learning Analytics Workshop
 
Science 2.0 and 
Visual Data Exploration using Augmented Reality
Science 2.0 and 
Visual Data Exploration using Augmented RealityScience 2.0 and 
Visual Data Exploration using Augmented Reality
Science 2.0 and 
Visual Data Exploration using Augmented Reality
 
PenO 3 2014 sessie 2
PenO 3 2014 sessie 2PenO 3 2014 sessie 2
PenO 3 2014 sessie 2
 
LARAe: Learning Analytics Reflection & Awareness environment (ARTEL14@ECTEL2014)
LARAe: Learning Analytics Reflection & Awareness environment (ARTEL14@ECTEL2014)LARAe: Learning Analytics Reflection & Awareness environment (ARTEL14@ECTEL2014)
LARAe: Learning Analytics Reflection & Awareness environment (ARTEL14@ECTEL2014)
 
Learning Dashboard @ Visual Learning Analytics workshop - LASI2014 @ Harvard
Learning Dashboard @ Visual Learning Analytics workshop - LASI2014 @ HarvardLearning Dashboard @ Visual Learning Analytics workshop - LASI2014 @ Harvard
Learning Dashboard @ Visual Learning Analytics workshop - LASI2014 @ Harvard
 
Learning Dashboards
Learning DashboardsLearning Dashboards
Learning Dashboards
 
Learning Dashboards
Learning DashboardsLearning Dashboards
Learning Dashboards
 
LARA.emo #mume13
LARA.emo #mume13LARA.emo #mume13
LARA.emo #mume13
 

Último

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 

Último (20)

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 

Peno3server

  • 3. REST API Store / Get Non-Volatile Data User info Road condition Game State …
  • 4. Socket.IO Send/receive Volatile Data Live communication Notifications Messages … Live Between Devices (nothing is saved server side)
  • 5. REST API HTTP PUT / GET http://daddi.cs.kuleuven.be/peno3/data/GROUPID http://daddi.cs.kuleuven.be/peno3/data/GROUPID/SESSIONID http://daddi.cs.kuleuven.be/peno3/data/GROUPID/SESSIONID/FIELD/VALUE curl -H 'Content-Type: application/{“datagoes":"here"}' http://daddi.cs.kuleuven.be/peno3/data/GROUPID/SESSIONID
  • 6. Socket.IO var socket = io('http://daddi.cs.kuleuven.be', {path: '/peno3/socket.io'}); socket.emit("broadcast", {groupid:"Z1", sessionid:"1", data:{"message": "this is a message", "interesting":"it is not"}}); socket.on("broadcasted", function(msg){    console.log(msg); }) http://daddi.cs.kuleuven.be/peno3/send.html
  • 7. Socket.IO http://daddi.cs.kuleuven.be/peno3/receive.html var socket = io(); socket.emit("register", {groupid:"Z1", sessionid:1}); socket.on("broadcastReceived", function(data) {    console.log("received " +JSON.stringify(data)); }); socket.on("registered", function(msg){    console.log(msg); })