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
-
1:09:13
Man in America
7 hours agoSICK: Xi & Putin Caught Plotting Organ Transplants for “Eternal Life”
31.1K12 -
LIVE
Drew Hernandez
8 hours agoMASS CONFUSION AROUND CHARLIE'S MURDER
1,651 watching -
1:01:40
HotZone
6 days ago $2.39 earned"Prepare for WAR" - Confronting the URGENT Threat to America
37.4K15 -
20:23
Scammer Payback
9 hours agoTerrifying Scammers with File Deletions
19.7K2 -
16:22
The Gun Collective
5 hours agoWOW! 17 New Guns JUST GOT RELEASED!
21.3K9 -
1:13:57
Glenn Greenwald
6 hours agoYoung Men and Online Radicalization: Dissecting Internet Subcultures with Lee Fang, Katherine Dee, and Evan Barker | SYSTEM UPDATE #516
162K64 -
1:14:57
Sarah Westall
3 hours agoCEO of Crowds on Demand: The Fake World of Social Media, Protests & Movements w/ Adam Swart
43.2K4 -
4:03:25
Geeks + Gamers
6 hours agoTuesday Night's Main Event
66.3K2 -
40:36
RiftTV
5 hours agoHow We Got 400 Leftists FIRED for MOCKING Charlie Kirk | The Rift | Guest: Olivia Krolczyk
67.5K53 -
1:28:58
Badlands Media
19 hours agoBadlands Story Hour Ep 134: Godzilla Minus One
38.4K1