SlideShare una empresa de Scribd logo
1 de 29
Descargar para leer sin conexión
WebSocket in
TYPO3 Flow
WebSocket
By: Ninja Bug
28th February 2014
Agenda
I. Team Introduction
II. TYPO3 Flow
III. WebSocket
IV. Config WebSocket to Flow
V. Demo
VI. Conclusion
Team Introduction

3
29
Ninja Bug
■ Form in 2013
■ 3 core team
■ First generation of agile team at Web
Essentials
■ Deliver working software
■ Working with TYPO3, TYPO3 Flow,
TYPO3 Neos ...

4
29
Ngeth Chanthorn
■ Certified TYPO3 Integrator
■ From Samrong, Takeo
■ Like TYPO3 Coding,
Typoscript Code
■ Working at Web Essentials
■ Email: chanthorn@web-essentials.asia
5
29
Nim Chanthou
■ Web Developer
■ From Samrong, Takeo
■ Like Playing Pool,
Football, PHP code
■ Working at Web Essentials
■ Email: chanthou@web-essentials.asia
6
29
John Odom
■ Web Developer
■ From Phnom Penh
■ Like Javascript, PHP
Google and Facebook API
■ Working at Web Essentials
■ Email: odom@web-essentials.asia
7
29
TYPO3 Flow
■ What is TYPO3 Flow?
■ Why TYPO3 Flow?
■ Requirements
■ Structure
8
29
What is TYPO3 Flow?
■ PHP-based Web Application Platform
■ Creates excellent web solutions
■ Fast results!
■ Keep your head clear and let you focus on the
essentials part
■ Reliable foundation for complex applications
9
29
Why TYPO3 Flow?
■ Well-suited for enterprise-grade applications
■ Easy-to-read source code
■ Stability, Secure code
■ User experience
■ Backed by one of the biggest PHP
communities (6000 + contributors)
10
29
Requirements
Supported Operating System:
■ Linux
■ Mac OSX
■ Windows

11
29
Requirements
Supported HTTP server platforms:
■ Apache with mod_rewrite
module enabled

12
29
Requirements
PHP:
■ Requires PHP 5.3.2 or higher
Supported Database Systems:
■ All systems supported by Doctrine DBAL can
be used with TYPO3 Flow
13
29
Directory Structure
Configuration/

The global configuration folder, grouped by contexts

Data/

Persistent and temporary data, including caches

Packages/

Contains sub directories which in turn
contain package directories

Packages/Framework/

The Framework directory contains packages of the TYPO3 Flow
distribution.

Packages/Application/

The Application directory contains your own / application specific
packages.

Packages/Libraries/

The Libraries directory contains 3rd party packages.

Web/

Public web root
3
14
29
29
WebSocket
■
■
■
■
■
■
■

What is WebSocket?
Why use WebSocket?
Where is it use?
Browser Support
Basically work
PHP WebSocket (Server Side)
Javascript API (Client Side)

15
29
What is WebSocket?
■ Supported in HTML5 browsers
■ Communication Protocol
■ Real time interaction
■ Full Duplex communication channel

16
29
Why WebSocket?

17
29
Where is it use?
■ Chat Application
■ Online Game
■ Streaming Application
- Real time news
- Real time alert
■ Other

18
29
Browser Support
■ Chrome 4+
■ Safari 5+
■ Firefox 4+
■ Opera 10.7+
■ IE 10+
19
29
Basically Work

20
29
PHP WebSocket (Server Side)
■ Handshake
■ Unmasking/Encoding
data frame
■ Pushing data

21
29
Javascript API (Client Side)
■ Connection
■ Receive
■ Leave

22
29
Javascript API (Client Side)
websocket = new WebSocket(‘ws://address:
port’);
websocket.onopen = function(evt) {}
websocket.onmessage = function(evt) {
// use evt.data
}
websocket.onclose = function(evt) {}
websocket.onerror = function(evt) {}

23
29
Config WebSocket to Flow
Understand Structure of TYPO3 Flow

Where we put our package.
(Flow.WebSocket)

24
29
Config WebSocket to Flow
Understand Structure of Flow Package
Where we put WebSocket
Library

HTML Template

Javascript Function
25
29
Demo
Hi! Could you go to
simple chat
application with
me?
Okay! Lets go!

26
29
Conclusion
■ TYPO3 Flow is a framework base on PHP
which easy to use and control
■ WebSocket is a new feature of HTML5
which mostly use for real time
interaction
27
29
What … ?
How … ?
When … ?
Why … ?
... ?

28
29
References
TYPO3 Flow
■ http://flow.typo3.org/home
https://github.com/chanthornngeth/Distribution.git
WebSocket
■ http://srchea.com/blog/tag/websocket/
■ http://www.php.net/manual/en/book.sockets.php
■ http://www.slideshare.net/PaulFryer/web-sockets-8963751
■ https://code.google.com/p/pywebsocket/
■ Book: HTML5 Solutions (Chapter 9: HTML5 WebSocket)

29
29

Más contenido relacionado

Similar a TYPO3 Flow - Web Sockets

Contributing to the Odoo Community Association (OCA)
Contributing to the Odoo Community Association (OCA)Contributing to the Odoo Community Association (OCA)
Contributing to the Odoo Community Association (OCA)Camptocamp
 
Contributing to the Odoo Community Association
Contributing to the Odoo Community AssociationContributing to the Odoo Community Association
Contributing to the Odoo Community Associationafayolle
 
Fluent 2018: Tracking Performance of the Web with HTTP Archive
Fluent 2018: Tracking Performance of the Web with HTTP ArchiveFluent 2018: Tracking Performance of the Web with HTTP Archive
Fluent 2018: Tracking Performance of the Web with HTTP ArchivePaul Calvano
 
TYPO3 - The Enterprise Open Source CMS - Rania Marou - FOSSCOMM 2015
TYPO3 - The Enterprise Open Source CMS - Rania Marou - FOSSCOMM 2015TYPO3 - The Enterprise Open Source CMS - Rania Marou - FOSSCOMM 2015
TYPO3 - The Enterprise Open Source CMS - Rania Marou - FOSSCOMM 2015Rania Marou
 
Getting started with MariaDB and Python
Getting started with MariaDB and PythonGetting started with MariaDB and Python
Getting started with MariaDB and PythonMariaDB plc
 
2015-09-16 georchestra @ foss4g2015 Seoul
2015-09-16 georchestra @ foss4g2015 Seoul2015-09-16 georchestra @ foss4g2015 Seoul
2015-09-16 georchestra @ foss4g2015 Seoulfvanderbiest
 
geOrchestra, a free, modular and secure SDI
geOrchestra, a free, modular and secure SDIgeOrchestra, a free, modular and secure SDI
geOrchestra, a free, modular and secure SDICamptocamp
 
WebSockets in Bravo Dashboard – Exove
WebSockets in Bravo Dashboard – ExoveWebSockets in Bravo Dashboard – Exove
WebSockets in Bravo Dashboard – ExoveExove
 
The Latest and Greatest from OpenNTF and the IBM Social Business Toolkit, #dd13
The Latest and Greatest from OpenNTF and the IBM Social Business Toolkit, #dd13The Latest and Greatest from OpenNTF and the IBM Social Business Toolkit, #dd13
The Latest and Greatest from OpenNTF and the IBM Social Business Toolkit, #dd13Dominopoint - Italian Lotus User Group
 
Research on Web Browsers ppt
Research on Web Browsers pptResearch on Web Browsers ppt
Research on Web Browsers pptSagar Agarwal
 
The Awesome Python Class Part-1
The Awesome Python Class Part-1The Awesome Python Class Part-1
The Awesome Python Class Part-1Binay Kumar Ray
 
Dd13.2013.milano.open ntf
Dd13.2013.milano.open ntfDd13.2013.milano.open ntf
Dd13.2013.milano.open ntfUlrich Krause
 
Web3 File Storage Options
Web3 File Storage OptionsWeb3 File Storage Options
Web3 File Storage OptionsGene Leybzon
 
TriplePlay-WebAppPenTestingTools
TriplePlay-WebAppPenTestingToolsTriplePlay-WebAppPenTestingTools
TriplePlay-WebAppPenTestingToolsYury Chemerkin
 
Identity & Access Management Briefing
Identity & Access Management BriefingIdentity & Access Management Briefing
Identity & Access Management BriefingCharise Arrowood
 
TYPO3 Flow 2.0 in the field - webtech Conference 2013
TYPO3 Flow 2.0 in the field - webtech Conference 2013TYPO3 Flow 2.0 in the field - webtech Conference 2013
TYPO3 Flow 2.0 in the field - webtech Conference 2013die.agilen GmbH
 

Similar a TYPO3 Flow - Web Sockets (20)

Contributing to the Odoo Community Association (OCA)
Contributing to the Odoo Community Association (OCA)Contributing to the Odoo Community Association (OCA)
Contributing to the Odoo Community Association (OCA)
 
Contributing to the Odoo Community Association
Contributing to the Odoo Community AssociationContributing to the Odoo Community Association
Contributing to the Odoo Community Association
 
CollegeDiveIn presentation
CollegeDiveIn presentationCollegeDiveIn presentation
CollegeDiveIn presentation
 
Fluent 2018: Tracking Performance of the Web with HTTP Archive
Fluent 2018: Tracking Performance of the Web with HTTP ArchiveFluent 2018: Tracking Performance of the Web with HTTP Archive
Fluent 2018: Tracking Performance of the Web with HTTP Archive
 
TYPO3 - The Enterprise Open Source CMS - Rania Marou - FOSSCOMM 2015
TYPO3 - The Enterprise Open Source CMS - Rania Marou - FOSSCOMM 2015TYPO3 - The Enterprise Open Source CMS - Rania Marou - FOSSCOMM 2015
TYPO3 - The Enterprise Open Source CMS - Rania Marou - FOSSCOMM 2015
 
Getting started with MariaDB and Python
Getting started with MariaDB and PythonGetting started with MariaDB and Python
Getting started with MariaDB and Python
 
2015-09-16 georchestra @ foss4g2015 Seoul
2015-09-16 georchestra @ foss4g2015 Seoul2015-09-16 georchestra @ foss4g2015 Seoul
2015-09-16 georchestra @ foss4g2015 Seoul
 
geOrchestra, a free, modular and secure SDI
geOrchestra, a free, modular and secure SDIgeOrchestra, a free, modular and secure SDI
geOrchestra, a free, modular and secure SDI
 
TYPO3 v8 LTS in the cloud
TYPO3 v8 LTS in the cloudTYPO3 v8 LTS in the cloud
TYPO3 v8 LTS in the cloud
 
WebSockets in Bravo Dashboard – Exove
WebSockets in Bravo Dashboard – ExoveWebSockets in Bravo Dashboard – Exove
WebSockets in Bravo Dashboard – Exove
 
TYPO3 at UNESCO.org
TYPO3 at UNESCO.orgTYPO3 at UNESCO.org
TYPO3 at UNESCO.org
 
The Latest and Greatest from OpenNTF and the IBM Social Business Toolkit, #dd13
The Latest and Greatest from OpenNTF and the IBM Social Business Toolkit, #dd13The Latest and Greatest from OpenNTF and the IBM Social Business Toolkit, #dd13
The Latest and Greatest from OpenNTF and the IBM Social Business Toolkit, #dd13
 
Research on Web Browsers ppt
Research on Web Browsers pptResearch on Web Browsers ppt
Research on Web Browsers ppt
 
Web Browsers
Web BrowsersWeb Browsers
Web Browsers
 
The Awesome Python Class Part-1
The Awesome Python Class Part-1The Awesome Python Class Part-1
The Awesome Python Class Part-1
 
Dd13.2013.milano.open ntf
Dd13.2013.milano.open ntfDd13.2013.milano.open ntf
Dd13.2013.milano.open ntf
 
Web3 File Storage Options
Web3 File Storage OptionsWeb3 File Storage Options
Web3 File Storage Options
 
TriplePlay-WebAppPenTestingTools
TriplePlay-WebAppPenTestingToolsTriplePlay-WebAppPenTestingTools
TriplePlay-WebAppPenTestingTools
 
Identity & Access Management Briefing
Identity & Access Management BriefingIdentity & Access Management Briefing
Identity & Access Management Briefing
 
TYPO3 Flow 2.0 in the field - webtech Conference 2013
TYPO3 Flow 2.0 in the field - webtech Conference 2013TYPO3 Flow 2.0 in the field - webtech Conference 2013
TYPO3 Flow 2.0 in the field - webtech Conference 2013
 

Último

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 

Último (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

TYPO3 Flow - Web Sockets

  • 1. WebSocket in TYPO3 Flow WebSocket By: Ninja Bug 28th February 2014
  • 2. Agenda I. Team Introduction II. TYPO3 Flow III. WebSocket IV. Config WebSocket to Flow V. Demo VI. Conclusion
  • 4. Ninja Bug ■ Form in 2013 ■ 3 core team ■ First generation of agile team at Web Essentials ■ Deliver working software ■ Working with TYPO3, TYPO3 Flow, TYPO3 Neos ... 4 29
  • 5. Ngeth Chanthorn ■ Certified TYPO3 Integrator ■ From Samrong, Takeo ■ Like TYPO3 Coding, Typoscript Code ■ Working at Web Essentials ■ Email: chanthorn@web-essentials.asia 5 29
  • 6. Nim Chanthou ■ Web Developer ■ From Samrong, Takeo ■ Like Playing Pool, Football, PHP code ■ Working at Web Essentials ■ Email: chanthou@web-essentials.asia 6 29
  • 7. John Odom ■ Web Developer ■ From Phnom Penh ■ Like Javascript, PHP Google and Facebook API ■ Working at Web Essentials ■ Email: odom@web-essentials.asia 7 29
  • 8. TYPO3 Flow ■ What is TYPO3 Flow? ■ Why TYPO3 Flow? ■ Requirements ■ Structure 8 29
  • 9. What is TYPO3 Flow? ■ PHP-based Web Application Platform ■ Creates excellent web solutions ■ Fast results! ■ Keep your head clear and let you focus on the essentials part ■ Reliable foundation for complex applications 9 29
  • 10. Why TYPO3 Flow? ■ Well-suited for enterprise-grade applications ■ Easy-to-read source code ■ Stability, Secure code ■ User experience ■ Backed by one of the biggest PHP communities (6000 + contributors) 10 29
  • 11. Requirements Supported Operating System: ■ Linux ■ Mac OSX ■ Windows 11 29
  • 12. Requirements Supported HTTP server platforms: ■ Apache with mod_rewrite module enabled 12 29
  • 13. Requirements PHP: ■ Requires PHP 5.3.2 or higher Supported Database Systems: ■ All systems supported by Doctrine DBAL can be used with TYPO3 Flow 13 29
  • 14. Directory Structure Configuration/ The global configuration folder, grouped by contexts Data/ Persistent and temporary data, including caches Packages/ Contains sub directories which in turn contain package directories Packages/Framework/ The Framework directory contains packages of the TYPO3 Flow distribution. Packages/Application/ The Application directory contains your own / application specific packages. Packages/Libraries/ The Libraries directory contains 3rd party packages. Web/ Public web root 3 14 29 29
  • 15. WebSocket ■ ■ ■ ■ ■ ■ ■ What is WebSocket? Why use WebSocket? Where is it use? Browser Support Basically work PHP WebSocket (Server Side) Javascript API (Client Side) 15 29
  • 16. What is WebSocket? ■ Supported in HTML5 browsers ■ Communication Protocol ■ Real time interaction ■ Full Duplex communication channel 16 29
  • 18. Where is it use? ■ Chat Application ■ Online Game ■ Streaming Application - Real time news - Real time alert ■ Other 18 29
  • 19. Browser Support ■ Chrome 4+ ■ Safari 5+ ■ Firefox 4+ ■ Opera 10.7+ ■ IE 10+ 19 29
  • 21. PHP WebSocket (Server Side) ■ Handshake ■ Unmasking/Encoding data frame ■ Pushing data 21 29
  • 22. Javascript API (Client Side) ■ Connection ■ Receive ■ Leave 22 29
  • 23. Javascript API (Client Side) websocket = new WebSocket(‘ws://address: port’); websocket.onopen = function(evt) {} websocket.onmessage = function(evt) { // use evt.data } websocket.onclose = function(evt) {} websocket.onerror = function(evt) {} 23 29
  • 24. Config WebSocket to Flow Understand Structure of TYPO3 Flow Where we put our package. (Flow.WebSocket) 24 29
  • 25. Config WebSocket to Flow Understand Structure of Flow Package Where we put WebSocket Library HTML Template Javascript Function 25 29
  • 26. Demo Hi! Could you go to simple chat application with me? Okay! Lets go! 26 29
  • 27. Conclusion ■ TYPO3 Flow is a framework base on PHP which easy to use and control ■ WebSocket is a new feature of HTML5 which mostly use for real time interaction 27 29
  • 28. What … ? How … ? When … ? Why … ? ... ? 28 29
  • 29. References TYPO3 Flow ■ http://flow.typo3.org/home https://github.com/chanthornngeth/Distribution.git WebSocket ■ http://srchea.com/blog/tag/websocket/ ■ http://www.php.net/manual/en/book.sockets.php ■ http://www.slideshare.net/PaulFryer/web-sockets-8963751 ■ https://code.google.com/p/pywebsocket/ ■ Book: HTML5 Solutions (Chapter 9: HTML5 WebSocket) 29 29