Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Websocket en WAMP in sPHPace
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Davy De Coster
May 26, 2020
Programming
180
0
Share
Websocket en WAMP in sPHPace
Davy De Coster
May 26, 2020
Other Decks in Programming
See All in Programming
dRuby over BLE
makicamel
1
280
AI駆動開発勉強会 広島支部 第一回勉強会 AI駆動開発概要とワークショップ
hayatoshimiu
0
430
今さら聞けないCancellationToken
htkym
0
210
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
650
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
2
1.5k
CSC307 Lecture 17
javiergs
PRO
0
310
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
430
初めてのRubyKaigiはこう見えた
jellyfish700
0
400
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.5k
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
140
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
1
700
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.1k
Featured
See All Featured
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
550
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
150
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
22k
Prompt Engineering for Job Search
mfonobong
0
330
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
200
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
A Soul's Torment
seathinner
6
2.9k
Designing for humans not robots
tammielis
254
26k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Code Review Best Practice
trishagee
74
20k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Transcript
Websocket en WAMP in sPHPace
About
Davy De Coster Backend Developer @ Ocular Twitter: @davydecoster
None
None
Websocket?
Websocket Protocol • Bestaat sinds 2010 – RFC sinds december
2011 (https://tools.ietf.org/html/rfc6455) • Realtime communicatiekanaal • Lage overhead tov polling • ws:// en wss:// • Meerdere subprotocollen • Veel gebruikt: socket.io
Websocket in PHP • Ratchet Package (http://socketo.me/) • Websocket server
in PHP
DEMO
Subprotocollen • Meerdere implementaties (https://www.iana.org/assignments/websocket/websocket.xml)
WAMP?
WAMP • Web Application Messaging Protocol • Crossbar.io • Publish
& Subscribe naar topics (PubSub) • Remote Procedure Call (RPC) • Veel gebruikt bij IoT
Crossbar.io - Connection & security • Python • Realms •
Namespace • Roles • Security • Authentication • Veel platformen kunnen hiermee connecteren • Build in Docker container • Data in args en kwargs
PubSub • Topic = ‘be.ocular.demo’ • Subscribe om events te
ontvangen • Publish om event te sturen
RPC • Registreer procedure op topic (‘be.ocular.doe.iets’) • Procedure is
uniek • Call een topic om de procedure uit te voeren • Procedure kan iets returnen naar caller
WAMP - Schema
WAMP in PHP • Voryx/Thruway (https://github.com/voryx/Thruway) • Non-blocking
DEMO
Real-life voorbeelden
None
None
None
Questions?
Merci!