Soumettre la recherche
Mettre en ligne
WebSockets: um upgrade de comunicação no HTML5
•
3 j'aime
•
1,794 vues
Bruno Borges
Suivre
Conheça a nova tecnologia WebSockets, e como utilizá-la em Java
Lire moins
Lire la suite
Technologie
Actualités & Politique
Affichage du diaporama
Signaler
Partager
Affichage du diaporama
Signaler
Partager
1 sur 24
Télécharger maintenant
Télécharger pour lire hors ligne
Recommandé
Java EE 7 - PulsoConf 2013
Java EE 7 - PulsoConf 2013
Edgar Martinez
Esm rel notes_6.0cp2
Esm rel notes_6.0cp2
Protect724v3
Toad
Toad
Esther Ivon Reyna Palomino
ESM_RelNotes_v5.6.pdf
ESM_RelNotes_v5.6.pdf
Protect724migration
Informatica Command Line Statements
Informatica Command Line Statements
mnsk80
Esm rel notes_v5.2
Esm rel notes_v5.2
Protect724
Présentation webinar Ivanti - Analyse du Patch Tuesday - Janvier 2020
Présentation webinar Ivanti - Analyse du Patch Tuesday - Janvier 2020
Ivanti
[JavaOne] Demystifying WebSockets - Build a Cool, Real-time Multi-player Game...
[JavaOne] Demystifying WebSockets - Build a Cool, Real-time Multi-player Game...
Vivek Ganesan
Recommandé
Java EE 7 - PulsoConf 2013
Java EE 7 - PulsoConf 2013
Edgar Martinez
Esm rel notes_6.0cp2
Esm rel notes_6.0cp2
Protect724v3
Toad
Toad
Esther Ivon Reyna Palomino
ESM_RelNotes_v5.6.pdf
ESM_RelNotes_v5.6.pdf
Protect724migration
Informatica Command Line Statements
Informatica Command Line Statements
mnsk80
Esm rel notes_v5.2
Esm rel notes_v5.2
Protect724
Présentation webinar Ivanti - Analyse du Patch Tuesday - Janvier 2020
Présentation webinar Ivanti - Analyse du Patch Tuesday - Janvier 2020
Ivanti
[JavaOne] Demystifying WebSockets - Build a Cool, Real-time Multi-player Game...
[JavaOne] Demystifying WebSockets - Build a Cool, Real-time Multi-player Game...
Vivek Ganesan
SafePeak Installation guide
SafePeak Installation guide
Vladi Vexler
Esm rel notes_6.0cp1
Esm rel notes_6.0cp1
Protect724v3
Javaeetutorial6
Javaeetutorial6
Mustafa Juma
ESM 5.5 Patch 1 Release Notes
ESM 5.5 Patch 1 Release Notes
Protect724
jfx
jfx
aprydwi
July Patch Tuesday 2020
July Patch Tuesday 2020
Dan Lalli
E10132
E10132
prathap kumar
ESM 6.8c Patch 2 Release Notes
ESM 6.8c Patch 2 Release Notes
Protect724v3
Wowza mediaserver usersguide
Wowza mediaserver usersguide
r00tsecurity
Performance tuning how to write and run correctly sql statement
Performance tuning how to write and run correctly sql statement
Ronald Francisco Vargas Quesada
Sh404sef, Urls, Seo And More
Sh404sef, Urls, Seo And More
Yannick Gaultier
Aplicações HTML5 com Java EE 7 e NetBeans
Aplicações HTML5 com Java EE 7 e NetBeans
Bruno Borges
As novidades do Java EE 7: do HTML5 ao JMS 2.0
As novidades do Java EE 7: do HTML5 ao JMS 2.0
Bruno Borges
Java EE 7 - Novidades e Mudanças
Java EE 7 - Novidades e Mudanças
Bruno Borges
Java API for WebSocket 1.0: Java EE 7 and GlassFish
Java API for WebSocket 1.0: Java EE 7 and GlassFish
Arun Gupta
Introduction to JavaFX on Raspberry Pi
Introduction to JavaFX on Raspberry Pi
Bruno Borges
A Importância do JavaFX no Mercado Embedded
A Importância do JavaFX no Mercado Embedded
Bruno Borges
JavaFX and JEE 7
JavaFX and JEE 7
Vijay Nair
JavaOne Shanghai 2013 - Servlet 3.1 (JSR 340)
JavaOne Shanghai 2013 - Servlet 3.1 (JSR 340)
Shing Wai Chan
Marcin Szałowicz - MySQL Workbench
Marcin Szałowicz - MySQL Workbench
Women in Technology Poland
Con5133
Con5133
Roger Kitain
whats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptx
GabrielSoche
Contenu connexe
Tendances
SafePeak Installation guide
SafePeak Installation guide
Vladi Vexler
Esm rel notes_6.0cp1
Esm rel notes_6.0cp1
Protect724v3
Javaeetutorial6
Javaeetutorial6
Mustafa Juma
ESM 5.5 Patch 1 Release Notes
ESM 5.5 Patch 1 Release Notes
Protect724
jfx
jfx
aprydwi
July Patch Tuesday 2020
July Patch Tuesday 2020
Dan Lalli
E10132
E10132
prathap kumar
ESM 6.8c Patch 2 Release Notes
ESM 6.8c Patch 2 Release Notes
Protect724v3
Wowza mediaserver usersguide
Wowza mediaserver usersguide
r00tsecurity
Performance tuning how to write and run correctly sql statement
Performance tuning how to write and run correctly sql statement
Ronald Francisco Vargas Quesada
Sh404sef, Urls, Seo And More
Sh404sef, Urls, Seo And More
Yannick Gaultier
Tendances
(11)
SafePeak Installation guide
SafePeak Installation guide
Esm rel notes_6.0cp1
Esm rel notes_6.0cp1
Javaeetutorial6
Javaeetutorial6
ESM 5.5 Patch 1 Release Notes
ESM 5.5 Patch 1 Release Notes
jfx
jfx
July Patch Tuesday 2020
July Patch Tuesday 2020
E10132
E10132
ESM 6.8c Patch 2 Release Notes
ESM 6.8c Patch 2 Release Notes
Wowza mediaserver usersguide
Wowza mediaserver usersguide
Performance tuning how to write and run correctly sql statement
Performance tuning how to write and run correctly sql statement
Sh404sef, Urls, Seo And More
Sh404sef, Urls, Seo And More
Similaire à WebSockets: um upgrade de comunicação no HTML5
Aplicações HTML5 com Java EE 7 e NetBeans
Aplicações HTML5 com Java EE 7 e NetBeans
Bruno Borges
As novidades do Java EE 7: do HTML5 ao JMS 2.0
As novidades do Java EE 7: do HTML5 ao JMS 2.0
Bruno Borges
Java EE 7 - Novidades e Mudanças
Java EE 7 - Novidades e Mudanças
Bruno Borges
Java API for WebSocket 1.0: Java EE 7 and GlassFish
Java API for WebSocket 1.0: Java EE 7 and GlassFish
Arun Gupta
Introduction to JavaFX on Raspberry Pi
Introduction to JavaFX on Raspberry Pi
Bruno Borges
A Importância do JavaFX no Mercado Embedded
A Importância do JavaFX no Mercado Embedded
Bruno Borges
JavaFX and JEE 7
JavaFX and JEE 7
Vijay Nair
JavaOne Shanghai 2013 - Servlet 3.1 (JSR 340)
JavaOne Shanghai 2013 - Servlet 3.1 (JSR 340)
Shing Wai Chan
Marcin Szałowicz - MySQL Workbench
Marcin Szałowicz - MySQL Workbench
Women in Technology Poland
Con5133
Con5133
Roger Kitain
whats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptx
GabrielSoche
Architecture performance and tips and tricks for instantis enterprise track 8...
Architecture performance and tips and tricks for instantis enterprise track 8...
p6academy
Oracle Plug-in For Open ModelSphere
Oracle Plug-in For Open ModelSphere
modelspherepro
HTML5 Comprehensive Guide
HTML5 Comprehensive Guide
Alexei Skachykhin
Novidades do Java SE 8
Novidades do Java SE 8
Bruno Borges
Ed presents JSF 2.2 and WebSocket to Gameduell.
Ed presents JSF 2.2 and WebSocket to Gameduell.
Edward Burns
How Scala, Wicket, and Java EE Can Improve Web Development
How Scala, Wicket, and Java EE Can Improve Web Development
Bruno Borges
Java Web Application Security - Denver JUG 2013
Java Web Application Security - Denver JUG 2013
Matt Raible
206520 p6 web services programming interface
206520 p6 web services programming interface
p6academy
MySQL para Desenvolvedores de Games
MySQL para Desenvolvedores de Games
MySQL Brasil
Similaire à WebSockets: um upgrade de comunicação no HTML5
(20)
Aplicações HTML5 com Java EE 7 e NetBeans
Aplicações HTML5 com Java EE 7 e NetBeans
As novidades do Java EE 7: do HTML5 ao JMS 2.0
As novidades do Java EE 7: do HTML5 ao JMS 2.0
Java EE 7 - Novidades e Mudanças
Java EE 7 - Novidades e Mudanças
Java API for WebSocket 1.0: Java EE 7 and GlassFish
Java API for WebSocket 1.0: Java EE 7 and GlassFish
Introduction to JavaFX on Raspberry Pi
Introduction to JavaFX on Raspberry Pi
A Importância do JavaFX no Mercado Embedded
A Importância do JavaFX no Mercado Embedded
JavaFX and JEE 7
JavaFX and JEE 7
JavaOne Shanghai 2013 - Servlet 3.1 (JSR 340)
JavaOne Shanghai 2013 - Servlet 3.1 (JSR 340)
Marcin Szałowicz - MySQL Workbench
Marcin Szałowicz - MySQL Workbench
Con5133
Con5133
whats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptx
Architecture performance and tips and tricks for instantis enterprise track 8...
Architecture performance and tips and tricks for instantis enterprise track 8...
Oracle Plug-in For Open ModelSphere
Oracle Plug-in For Open ModelSphere
HTML5 Comprehensive Guide
HTML5 Comprehensive Guide
Novidades do Java SE 8
Novidades do Java SE 8
Ed presents JSF 2.2 and WebSocket to Gameduell.
Ed presents JSF 2.2 and WebSocket to Gameduell.
How Scala, Wicket, and Java EE Can Improve Web Development
How Scala, Wicket, and Java EE Can Improve Web Development
Java Web Application Security - Denver JUG 2013
Java Web Application Security - Denver JUG 2013
206520 p6 web services programming interface
206520 p6 web services programming interface
MySQL para Desenvolvedores de Games
MySQL para Desenvolvedores de Games
Plus de Bruno Borges
Secrets of Performance Tuning Java on Kubernetes
Secrets of Performance Tuning Java on Kubernetes
Bruno Borges
[Outdated] Secrets of Performance Tuning Java on Kubernetes
[Outdated] Secrets of Performance Tuning Java on Kubernetes
Bruno Borges
From GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX Apps
From GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX Apps
Bruno Borges
Making Sense of Serverless Computing
Making Sense of Serverless Computing
Bruno Borges
Visual Studio Code for Java and Spring Developers
Visual Studio Code for Java and Spring Developers
Bruno Borges
Taking Spring Apps for a Spin on Microsoft Azure Cloud
Taking Spring Apps for a Spin on Microsoft Azure Cloud
Bruno Borges
A Look Back at Enterprise Integration Patterns and Their Use into Today's Ser...
A Look Back at Enterprise Integration Patterns and Their Use into Today's Ser...
Bruno Borges
Melhore o Desenvolvimento do Time com DevOps na Nuvem
Melhore o Desenvolvimento do Time com DevOps na Nuvem
Bruno Borges
Tecnologias Oracle em Docker Containers On-premise e na Nuvem
Tecnologias Oracle em Docker Containers On-premise e na Nuvem
Bruno Borges
Java EE Arquillian Testing with Docker & The Cloud
Java EE Arquillian Testing with Docker & The Cloud
Bruno Borges
Migrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFX
Bruno Borges
Servidores de Aplicação: Por quê ainda precisamos deles?
Servidores de Aplicação: Por quê ainda precisamos deles?
Bruno Borges
Build and Monitor Cloud PaaS with JVM’s Nashorn JavaScripts [CON1859]
Build and Monitor Cloud PaaS with JVM’s Nashorn JavaScripts [CON1859]
Bruno Borges
Cloud Services for Developers: What’s Inside Oracle Cloud for You? [CON1861]
Cloud Services for Developers: What’s Inside Oracle Cloud for You? [CON1861]
Bruno Borges
Booting Up Spring Apps on Lightweight Cloud Services [CON10258]
Booting Up Spring Apps on Lightweight Cloud Services [CON10258]
Bruno Borges
Java EE Application Servers: Containerized or Multitenant? Both! [CON7506]
Java EE Application Servers: Containerized or Multitenant? Both! [CON7506]
Bruno Borges
Running Oracle WebLogic on Docker Containers [BOF7537]
Running Oracle WebLogic on Docker Containers [BOF7537]
Bruno Borges
Lightweight Java in the Cloud
Lightweight Java in the Cloud
Bruno Borges
Tweet for Beer - Beertap Powered by Java Goes IoT, Cloud, and JavaFX
Tweet for Beer - Beertap Powered by Java Goes IoT, Cloud, and JavaFX
Bruno Borges
Integrando Oracle BPM com Java EE e WebSockets
Integrando Oracle BPM com Java EE e WebSockets
Bruno Borges
Plus de Bruno Borges
(20)
Secrets of Performance Tuning Java on Kubernetes
Secrets of Performance Tuning Java on Kubernetes
[Outdated] Secrets of Performance Tuning Java on Kubernetes
[Outdated] Secrets of Performance Tuning Java on Kubernetes
From GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX Apps
From GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX Apps
Making Sense of Serverless Computing
Making Sense of Serverless Computing
Visual Studio Code for Java and Spring Developers
Visual Studio Code for Java and Spring Developers
Taking Spring Apps for a Spin on Microsoft Azure Cloud
Taking Spring Apps for a Spin on Microsoft Azure Cloud
A Look Back at Enterprise Integration Patterns and Their Use into Today's Ser...
A Look Back at Enterprise Integration Patterns and Their Use into Today's Ser...
Melhore o Desenvolvimento do Time com DevOps na Nuvem
Melhore o Desenvolvimento do Time com DevOps na Nuvem
Tecnologias Oracle em Docker Containers On-premise e na Nuvem
Tecnologias Oracle em Docker Containers On-premise e na Nuvem
Java EE Arquillian Testing with Docker & The Cloud
Java EE Arquillian Testing with Docker & The Cloud
Migrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFX
Servidores de Aplicação: Por quê ainda precisamos deles?
Servidores de Aplicação: Por quê ainda precisamos deles?
Build and Monitor Cloud PaaS with JVM’s Nashorn JavaScripts [CON1859]
Build and Monitor Cloud PaaS with JVM’s Nashorn JavaScripts [CON1859]
Cloud Services for Developers: What’s Inside Oracle Cloud for You? [CON1861]
Cloud Services for Developers: What’s Inside Oracle Cloud for You? [CON1861]
Booting Up Spring Apps on Lightweight Cloud Services [CON10258]
Booting Up Spring Apps on Lightweight Cloud Services [CON10258]
Java EE Application Servers: Containerized or Multitenant? Both! [CON7506]
Java EE Application Servers: Containerized or Multitenant? Both! [CON7506]
Running Oracle WebLogic on Docker Containers [BOF7537]
Running Oracle WebLogic on Docker Containers [BOF7537]
Lightweight Java in the Cloud
Lightweight Java in the Cloud
Tweet for Beer - Beertap Powered by Java Goes IoT, Cloud, and JavaFX
Tweet for Beer - Beertap Powered by Java Goes IoT, Cloud, and JavaFX
Integrando Oracle BPM com Java EE e WebSockets
Integrando Oracle BPM com Java EE e WebSockets
Dernier
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Fwdays
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Addepto
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Patryk Bandurski
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
comworks
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
charlottematthew16
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
Fwdays
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
NavinnSomaal
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Florian Wilhelm
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Alex Barbosa Coqueiro
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
Zilliz
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
2toLead Limited
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Zilliz
Dernier
(20)
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
WebSockets: um upgrade de comunicação no HTML5
1.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 132 WebSockets: um upgrade de comunicação no HTML5 Bruno Borges Oracle Product Manager Java Evangelist @brunoborges
2.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 133 Bruno Borges Oracle Product Manager / Evangelist Desenvolvedor, Gamer Entusiasta em Java Embedded e JavaFX Twitter: @brunoborges
3.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 134 Java EE 7 está pronto!
4.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 135 Java EE 7 Escopo ● Produtividade de Desenvolvimento – Menos código Boilerplate – Funcionalidades mais ricas – Mais convenções e defaults ● Suporte a HTML5 – WebSocket – JSON – HTML5 Forms JSR 342
5.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 136 Java EE 7 EJB 3.2 Servlet 3.1 CDI Extensio ns Batch 1.0 Web Fragment s JCA 1.7JMS 2.0JPA 2.1 Managed Beans 1.0 Concurrency 1.0 Common Annotations 1.1 Interceptors 1.2, JTA 1.2 CDI 1.1 JSF 2.2, JSP 2.3, EL 3.0 JAX-RS 2.0, JAX-WS 2.2 JSON 1.0 WebSock et 1.0
6.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 137 Construindo aplicações HTML5 com WebSockets Java API WebSocket 1.0 – JSR 356 RFC 6455 W3C Web Sockets API – JavaScript objects
7.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 138 HTTP vs WebSockets Protocolo HTTP é half-duplex Gambiarras – Polling – Long polling – Streaming WebSocket resolve o problema de uma vez por todas – Full-duplex
8.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 139 WebSockets Handshake Cliente solicita um UPGRADE Server confirma (Servlet 3.1) Cliente recebe o OK Inicia a sessão WebSocket http://farata.github.io/slidedecks/state_of_websocket/slides.html#13.4
9.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1310 WebSockets API for Javascript var ws; if (window.WebSocket) { ws = new WebSocket("ws://echo.websocket.org"); ws.onopen = function () { console.log("onopen"); }; ws.onmessage = function (e) { // e.data contains received string. console.log("echo from server : " + e.data); }; ws.onclose = function () { console.log("onclose"); }; ws.onerror = function () { console.log("onerror"); }; } else { console.log("WebSocket not supported in your browser"); } if (ws.readyState === 1) ws.send("Hello WebSocket!");
10.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1311 WebSockets Facts WS não funciona por proxies Suporte incompleto em browsers Desafios de configurar WebSocket com LBRs
11.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1312 WebSockets e Browsers
12.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1313 WebSockets só roda em navegadores Web?
13.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1314 Clientes além de Navegadores iOS – SocketRocket Android – Async HTTP Client – AutobahnAndroid Java libs and JavaFX – WebView HTML5 component
14.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1315 Ping Pong Serve para manter a conexão ativa Programaticamente possível interceptar – Server – Client
15.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1316 Java API for WebSockets 1.0 API para definir WebSockets, tanto Client como Server – Annotation-driven (@ServerEndpoint) – Interface-driven (Endpoint) – Client (@ClientEndpoint) SPI para data frames – Negociação handshake na abertura do WebSocket Integração com o Java EE Web container
16.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1317 Java API for WebSockets 1.0 import javax.websocket.*; import javax.websocket.server.*; @ServerEndpoint(“/hello”) public class HelloBean { @OnMessage public String sayHello(String name) { return “Hello “ + name; } }
17.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1318 Java API for WebSockets 1.0 @ServerEndpoint(“/chat”) public class ChatBean { @OnOpen public void onOpen(Session peer) { peers.add(peer); } @OnClose public void onClose(Session peer) { peers.remove(peer); } @OnMessage public void message(String msg, Session client) { peers.forEach(p > p.getRemote().sendMessage(msg)); } }
18.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1319 DEMO WebSockets
19.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1320 Casos de Uso para WebSockets Placar de jogos Controlar equipamentos pela Web Chat MMORPG Atualização de Social Streams em tempo real Ferramentas em geral com auto refresh
20.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1321 Perguntas?
21.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1322 Créditos: Fara Systems Conteúdo de WebSockets extraído de: farata.github.io/slidedecks/state_of_websocket/slides.html#1.0
22.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1323 OBRIGADO! @brunoborges blogs.oracle.com/brunoborges
23.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1324 The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
24.
Copyright © 2012,
Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1325
Télécharger maintenant