Premium Only Content

57 minutes of OpenSwoole - WebSocket - Part 2
57 minutes of OpenSwoole - WebSocket - Part 2
At this video we will (on our sample app):
- Build WebSocket Server Command
- Serve HTTP and WebSocket with one Server
- Identify connected users
- Implement real-time communication
App changes:
- added websocket server command
details:
- with static files enabled
- with user identification
- token structure adjusted to count/limit uses
- ui changes
Previous part: https://youtu.be/Vgw5Ibqc15k
Source: https://github.com/Jacked-PHP/sample-swoole/tree/76702d9e7642ec8b849fd82381a10f3067f5a9c3
--------------------------
Topics:
--------------------------
00:00 Initial Description
01:27 WebSocket Command
09:10 Dynamic WebSocket Settings
13:48 User Identification
26:58 Single use Token
30:54 Serving static files
34:34 Token structure adjustment and user identification complementation
44:49 Building the User Interface
52:57 Running the server
53:45 Adding a second user for further tests
--------------------------
References
--------------------------
Video where we covered Plates template engine: https://youtu.be/Xdz_-u6cGTU
Video where we covered JWT tokens: https://youtu.be/O8EVJrKtbGg
--------------------------
Music
--------------------------
https://uppbeat.io/t/ben-johnson/cant-stop-chasing-you
License code: YXVXZ1KCWTAGZE1S
https://uppbeat.io/t/matrika/smack-that
License code: QYBHFMBRLTDGRLRX
https://uppbeat.io/t/hartzmann/bamboo
License code: GR0BHUSUJXU5ECBU
-
2:42:59
TimcastIRL
10 hours agoTrump SLAMS Biden Over Boulder TERROR Attack, Protecting Illegals & Leftists | Timcast IRL
192K49 -
LIVE
TylerTodayNews
3 hours ago $0.02 earnedHorror game with friends! Then fighting the galactic war | REPO & Helldivers 2 | Tyler Today Games
292 watching -
LIVE
TheBeardedBrent
1 hour ago🔴LIVE🔥 | WARZONE | THE CASUAL KING | ROAD TO 50 SUBS!!🔥
120 watching -
2:57:28
Barry Cunningham
10 hours agoTRUMP WORLD END OF THE DAY NEWS AND SPECIAL GUEST JOHN AMANCHUCKWU!
87.1K72 -
8:39:34
SpartakusLIVE
11 hours agoSPECIALIST Easter Egg ALL DAY || Duos w/ StevieT
52.6K1 -
1:14:47
FreshandFit
9 hours agoTop 5 Business Credit Cards
88.9K8 -
5:32:23
iCheapshot
9 hours ago $2.97 earnedPart 2 of a12cat34dog's Ben and Ed No Rage Quit Challenge!
50.9K -
1:49:53
Glenn Greenwald
13 hours agoDOGE: Promises vs. Reality; Ukraine's Drone Attacks on Russian Air Bases; Gaza Ceasefire Deal Developments | SYSTEM UPDATE #463
146K92 -
2:13:34
RiftTV/Slightly Offensive
12 hours agoZelensky Declares WAR on RUSSIA.. Trump FUMING Over Surprise ATTACK | The Rift | Guest: Sarah Stock
78.8K98 -
4:01:13
a12cat34dog
9 hours ago2011 GAME PREDICTS 2027 :: Homefront :: AMERICA HAS FALLEN {18+}
49.1K3