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
Davy De Coster
May 26, 2020
Programming
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Websocket en WAMP in sPHPace
Davy De Coster
May 26, 2020
Other Decks in Programming
See All in Programming
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
130
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
110
全PRの83%がAIレビューだけでマージできるようになった開発組織はその後どうなったか
athug
0
330
今さら聞けない .NET CLI
htkym
0
100
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
420
数百円から始めるRuby電子工作
tarosay
0
100
Built Our Own Background Agent at LayerX #aidevex_findy
layerx
PRO
8
3.2k
광주소프트웨어마이스터고등학교 DevFest 특강 - 바이브 코딩 시대에서 주니어 개발자로 살아남는 방법
utilforever
1
150
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
0
120
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
540
Embedded SREと共に達成した会員管理システムのAWS移行 - SRE NEXT 2026 ランチスポンサーセッション
niftycorp
PRO
1
3k
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
210
Featured
See All Featured
Odyssey Design
rkendrick25
PRO
2
730
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
57k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
740
ラッコキーワード サービス紹介資料
rakko
1
4M
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Writing Fast Ruby
sferik
630
63k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3.9k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
760
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
250
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
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!