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
2 weeks ago 00:15:02 1
2,000 Year Old Telephone In Chimu?
2 weeks ago 00:03:33 1
पर्यटन (337) | NIOS TMA Ready To Upload Handwritten Assignment File | Class 12 Session 2025
2 weeks ago 00:20:19 1
Americans Find Heartwarming Stories on Chinese App RedNote
2 weeks ago 00:36:09 1
Why Fun Projects Are the Key to Saving This Building
2 weeks ago 01:05:38 1
SKINWALKING OWLS, WATER SPIRITS, BLUE LADIES AND SILVER UFOS (SN 18 EP 33) TRUE PARANORMAL STORIES
2 weeks ago 00:31:53 4
Tokyo Xtreme Racer - Customizing and Fully Upgrading 350Z
2 weeks ago 00:03:49 1
Battling a Dead Battery? TOPDON BT100 is Your Ultimate Weapon! - YouTube
2 weeks ago 00:04:36 1
Бессмертный хит. Сидни Ром “Hearts“ (1982г)
2 weeks ago 00:03:12 1
Spoofing Pokermon GO - How to Get Pokemon GO Hack iOS & Android with Joystick, Teleport 2025
2 weeks ago 00:02:42 1
Pokemon TCG Pocket Hack iOS & Android - How to Get Poke God, Free Tickets with Pokemon TCG MOD APK
3 weeks ago 00:00:58 1
TrustHerb Sea Salt: The Natural Secret to Better Health and Flavor! #seasalt #PureSeaSalt #trustherb
3 weeks ago 00:07:15 1
January 2024 Fino Payments Bank |Distributor Incentive Scheme | How to Earn 50K Plus Income in Hindi
3 weeks ago 00:32:17 2
The Dark World of Megachurches
3 weeks ago 00:07:16 1
Новости ВИП прорубь.Недорого
3 weeks ago 00:02:32 2
Dragon Ball Legends Hack/MOD APK iOS & Android - How to Get Unlimited Chrono Crystals in 2025
3 weeks ago 00:44:09 1
How Important To Be Who We Say We Are
3 weeks ago 00:00:20 2
Pro tip: How to easily install blocking
3 weeks ago 01:21:42 2
The Pope, the Environmental Crisis, and Frontline Leaders | The Letter: Laudato Si Film
3 weeks ago 00:02:15 1
Coin Master Hack iOS & Android - How to Get Coin Master Free Unlimited Spins 2025
3 weeks ago 00:27:17 8
PVM НЕ НУЖЕН! RetroScaler2X – RCA, S-Video, YPbPr и RGB? ОБЗОР ЛАЙНДАБЛЕРА
3 weeks ago 01:01:55 3
GREY ALIENS, BLACK SHADOWS AND PALE WHITE CREATURES (SN 18 EP 31) REAL PARANORMAL EXPERIENCES
3 weeks ago 00:11:54 1
Taj Experience | Taj Holiday Village Resort & Spa | Goa | The Offbeat Couple
3 weeks ago 00:03:38 1
Tired of Dry Air and Sleepless Nights? Here’s the Smart Humidifier That Has Your Back! - YouTube
3 weeks ago 00:22:17 1
Как обновить навигацию на MMI 3G+ — Audi A1/A2/A3/A4/A5/A6/A7/A8/Q2/Q3/Q5/Q7/TT (NAVI UPDATE)