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
-
LIVE
Tundra Gaming Live
4 hours agoThe Worlds Worst Horror Streamer Has Heart Attack Playing Phasmophobia
447 watching -
LIVE
JoBlo Originals
1 hour agoFriday Night Flicks!
670 watching -
5:09:20
Nerdrotic
6 hours agoAgatha All Along Geyest Show EVER! Rings of Power Girl POWER! - Friday Night Tights #320 Jonny Law
55K12 -
Edge of Wonder
2 hours agoPager Explosions: How Technology Can Be Used Against Us
12.5K2 -
LIVE
Akademiks
8 hours agoDiddy Arrest Footage LEAKED! Police Say He's ON S*ICIDE watch after Being Locked up in MDC BROOKLYN
3,606 watching -
11:44:20
Total Horse Channel
13 hours ago2024 WDAA World Championship Show | Friday | Arena One
16.7K2 -
4:16
steveinman
3 hours agoAnimals Gone Wild Compilation
16.6K4 -
2:22:56
WeAreChange
6 hours agoDiddy Will Get EPSTEINED?! The Power Brokers Are LOSING IT
57.4K29 -
1:56:20
Twins Pod
1 day agoWar Hero or War Criminal? | Twins Pod - Episode 31 - Eddie Gallagher
94.2K19 -
2:00:23
2 MIKES LIVE
8 hours ago2 MIKES LIVE #119 Open Mike Friday!
14K1