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
iCkEdMeL
35 minutes agoICE SHOOTS Popular TikToker ‘Richard’ During Raid in South L.A.?! 😳 What Really Happened LIVE
406 watching -
1:05:27
DeVory Darkins
2 hours ago $27.77 earnedTrump scores HISTORIC IMMIGRATION WIN as Democrats STUNNED by ballroom renovations
98.8K42 -
The Rubin Report
1 hour agoDark Future Predictions & Exposing the Truth About Australia’s Past | Tony Abbott
8.83K4 -
1:57:45
The Charlie Kirk Show
3 hours agoThis is What Democracy Looks Like + Oxford Union Election Fraud? | Dr. Orr, Ogoloma, Harmon | 10.21
60.4K21 -
26:07
Lady Decade
10 hours agoGaming Feminists Just Discovered Islam - & It’s Not Going Well
14.3K5 -
3:52
Michael Heaver
2 hours agoErupting UK Voters Send FEROCIOUS Message
26 -
1:05:52
Timcast
3 hours agoJudge Rules DHS Agents CAN BE ARRESTED, Trump WINS On Right To Deploy National Guard
124K102 -
2:01:37
Steven Crowder
5 hours agoWe Have the Proof: These are the Immigrants Destroying America and The West
333K286 -
LIVE
Side Scrollers Podcast
1 day ago🔴SIDE SCROLLERS FUND-A-THON🔴DAY 2🔴100% REVENUE HELPS CHANGE CULTURE!
1,295 watching -
1:32:53
Rebel News
2 hours agoCarney 'controlling' Trump, Alberta municipal elxns, Too many new Canadians | Rebel Roundup
20.2K10