12
Realtime with WebSockets Giancarlo “JC” Gomez Adobe ColdFusion Summit 2014

Real Time With Web Sockets

Embed Size (px)

DESCRIPTION

Real Time With Web Sockets

Citation preview

Page 1: Real Time With Web Sockets

Realtime with WebSockets

Giancarlo “JC” Gomez Adobe ColdFusion Summit 2014

Page 2: Real Time With Web Sockets

Who am I• Proud father of 3

• Web / ColdFusion Developer since 1999

• Freelance Consultant since 2001

• South Florida ColdFusion User Group Co-Manager

• Owner Fuse Developments, Inc and CrossTrackr, Inc.

Page 3: Real Time With Web Sockets

What will we talk about?• What are WebSockets?

• WebSockets in ColdFusion (10 and 11)

• How to use WebSockets in ColdFusion?

• Real world issues and workarounds

• Q & A

Page 4: Real Time With Web Sockets

What is a WebSocketWebSocket is a protocol providing full-duplex communications channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011, and the WebSocket API in Web IDL is being standardized by the W3C.Sourcehttp://en.wikipedia.org/wiki/WebSocket

WebSocket is a protocol for two-way communication with a remote host over TCP protocol exposed through JavaScript interface in HTML 5 compliant browsers. WebSocket facilitates communication between hosts in both the directions simultaneously.Sourcehttps://wikidocs.adobe.com/wiki/display/coldfusionen/What+is+WebSocket

Page 5: Real Time With Web Sockets

MAGIC

Page 6: Real Time With Web Sockets

WebSockets in ColdFusionColdFusion 10!

• Support over defined port( 8575 )

• Flash fallback

• Set Max Data Size( 1024 Kb )

• Connection Limit in Standard( 100 )

ColdFusion 11!

• No Connection Limits

• Proxy Support Great when behind a firewall - can now accept connections on port 80

• SSL SupportIE would not allow non secure connection if page is secure

• Cluster SupportEnterprise Only

Page 7: Real Time With Web Sockets

How to use …• Enable in Admin

• Add 1 Line in your Application.cfc

• Use the cfwebsocket tag

• Write some JavaScript

Page 8: Real Time With Web Sockets

DEMO

Page 9: Real Time With Web Sockets

Real World Issues

• Network Connections

• Application Reload

• Server Uptime

Page 10: Real Time With Web Sockets

DEMO

Page 11: Real Time With Web Sockets

Q & A

Page 12: Real Time With Web Sockets

http://giancarlogomez.com !

[email protected]

@GiancarloGomez

https://github.com/GiancarloGomez

https://www.linkedin.com/in/GiancarloGomez