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
-
LIVE
vivafrei
1 hour agoLiquid Death-Gate! Text Message-Gate! Ostrich-Gate! AN
4,211 watching -
LIVE
Right Side Broadcasting Network
6 hours agoLIVE: President Trump Hosts a Press Conference with FBI Director Kash Patel - 10/15/25
10,504 watching -
44:24
Clownfish TV
2 hours agoCNN is Angry 'The Male Gaze' Returned! TRADWIVES and SYDNEY SWEENEY are Blamed?! | Clownfish TV
3114 -
LIVE
The HotSeat
49 minutes agoAmericans Are Turning Back to God — While Terror Rises Again in Gaza
413 watching -
LIVE
Owen Shroyer
37 minutes agoOwen Report - 10-15-2025 - Government Shutdown Political Slop Show Continues
683 watching -
1:26:01
The Quartering
2 hours agoYoung Republican Smear, Woke Sidewalks Washed Away, Major Changes To X & More
75.5K31 -
LIVE
Dr Disrespect
5 hours ago🔴LIVE - DR DISRESPECT - BATTLEFIELD 6 - THE PERFECT WEAPON
1,614 watching -
LIVE
Darkhorse Podcast
3 hours agoThe 296th Evolutionary Lens with Bret Weinstein and Heather Heying
266 watching -
LIVE
StoneMountain64
1 hour agoI can't stop playing BATTLEFIELD 6
39 watching -
Jeff Ahern
1 hour agoNever Woke Wednesday with Jeff Ahern
4.58K1