Download Core to create games for FREE:
Join the Game Creator Challenge:
In this video, we go over how to use the WebSockets module in an Unreal Engine game. The WebSockets module includes only client functionality. Therefore, we use the module to establish a connection between Unreal clients and a sample NodeJS server, send and receive messages over that connection, and close that connection. Since the WebSockets module is not natively exposed to blueprints, we wrote some C code in the GameInstance and Character classes in order to not only connect to and disconnect from a server but also send messages to the server and implement event handlers in the IWebSocket interface. At the end of the video, we test multiple packaged clients simultaneously by having them all connect to the same server and send messages to each other via WebSockets.
*****IMPORTANT LINKS*****
More information about the WebSocket protocol:
Unreal Engine project code that was used in this video:
WebSocket server code that was used in this video:
Download and install NodeJs:
Download and install Git:
How to expose C code to blueprints:
Cool things you can make with WebSocket:
Unreal Engine API Reference for the WebSockets module:
*****IMPORTANT COMMANDS*****
cd [directory-path]
cd “[path-with-spaces]“
git clone
npm install
node server
To end the server: Ctrl-C
Windows: cls
Linux: clear
-WINDOWED
To fit make a window to take up either half or a quarter of the screen on Windows: Windows key any arrow key
How to support the channel:
Get a shirt or sweatshirt with free shipping (Use code “SHIP“ at checkout):
Become a member:
Support us on Patreon:
Donate to our PayPal:
Sponsor us on Github:
Social media links:
Discord:
Twitter:
Instagram:
Facebook:
0:00 Intro
1:09 Sponsor
2:33 Creating a WebSocket connection
10:04 Adding WebSocket event handlers
14:34 Sending data from client to server
18:10 Testing with multiple packaged clients simultaneously
20:40 Outro
#unrealengine #websocket #ue5
1 view
367
99
1 day ago 00:12:12 0
Tommy Robinson CALLS Out Piers Morgan For Lying About Him Then THIS Happens!
2 days ago 00:02:09 0
Monopoly GO Hack iOS & Android - How to Get Monopoly GO Free Dice Rolls 2025
3 days ago 00:02:13 0
Coin Master Hack iOS & Android - How to Get Coin Master Unlimited Spins 2025
3 days ago 00:08:26 3
Russian Su-34 AIRSTRIKE on Kherson! FAB-500 Bombs DESTROY ENEMY Military Hangar
3 days ago 00:02:10 0
Delta Executor Mobile iOS & Android - NO KEY Roblox Executor Mobile 2025
4 days ago 00:17:14 0
Five Nights at Freddy’s | CAMSHOW JUMPSCARE! | (Night 6) Indie Horror Game w/ facecam
4 days ago 00:15:53 0
How to crochet daffodil flower | Crochet with Pampino
5 days ago 00:21:15 0
I Spent $5,000,000 So You Can Go To Space For FREE
5 days ago 00:00:00 4
TEYU S&A Chiller Live Stream in May
5 days ago 00:02:08 0
8 Ball Pool Hack/MOD APK iOS & Android - How to Get 8 Ball Pool Aim Hack Tool 2025
5 days ago 00:18:08 1
Vanessa Trump’s Stunning Transformation Since She Left Don Jr. Is Causing A Stir