Www.wayfare.ro. Websockets 4 Progress Valentin Duricu valentin.duricu@wayfare.ro

Preview:

Citation preview

www.wayfare.ro

Websockets 4 ProgressValentin Duricu

valentin.duricu@wayfare.ro

About me•Progress OpenEdge developer

at Wayfare ~ 2 years

•4 years web development experience

•Some projects related to OpenEdgeCloud Developer Studio (cloud-studio.ro)OpenEdge mode for ACE Editor (bit.ly/1iqCa6u)

•Hobbies: Photography, Recreational Gaming

•Contact me at valentin.duricu@wayfare.ro

•More about me: valentin.duricu.ro

THE CHALLENGES

Data has to be available as soon as possible

Data changed => Changes must be seen right away

Desktop Applications: Observer / Publish-subscribe pattern

Web Applications: Comet protocol – Ajax with long polling, dependent on the browser

THE SOLUTION

WebSockets•Protocol providing full-duplex communication for web

applications

•Single TCP connection

•Interpreted by HTTP servers an Upgrade request

•Can be implemented over standard sockets

•Available in browsers with HTML 5 support

THE IMPLEMENTATION

Web Application OpenEdge Backend

HTTP Server

Web Application OpenEdge Backend

HTTP Server

WebSockets

Java 8 + Tomcat 8

.Net + IISNode.JS + Socket.IO

ProgressOpen Client API

THANK YOU

Links•Contact me at valentin.duricu@wayfare.ro

•More about me: valentin.duricu.ro

•Source code: valentin.duricu.ro/upload/PUGOE.tar.bz2