Implementing Websockets in UE4 ported game

214 views
Skip to first unread message

alexs...@digiplaygaming.com

unread,
Apr 17, 2019, 3:07:28 PM4/17/19
to emscripten-discuss
Hey there, so we have successfully ported an Unreal Engine 4 game to the web, and single player works great. There is an option in the menu to set up a a dedicated server, or to join one that is already hosted. We are wondering about how to set up HTTP networking via our game, using Emscripten. We have come across a few plugins that use libwebsockets to do it. Also came across HumbleNet, which is a cross-platform networking library that uses Websockets and WebRTC. Can anyone walk us through how to implement networking so that we can launch online matchmaking as a feature in our web game? Many thanks :)

Rick Battagline

unread,
Apr 18, 2019, 6:06:12 PM4/18/19
to emscripten-discuss
I'm not sure what has been ported to emscripten in terms of library support, but worst case scenario you could write your networking code in javascript and make calls to that using EM_ASM.  Is HumbleNet a JavaScript library?

Alex St. Louis

unread,
Apr 18, 2019, 9:25:33 PM4/18/19
to emscripte...@googlegroups.com
Hey Rick, so we've actually found that we need to make a dedicated server, and link it through the HTML5 networking plugin in UE4. HumbleNet is a cross-platform networking library that utilizes WebSockets and WebRTC to enable multiplayer gaming. It doesn't have integration with UE4, so for now we're setting up the aforementioned plugin. Will keep you posted!

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rick Battagline

unread,
Apr 18, 2019, 10:06:24 PM4/18/19
to emscripten-discuss
Would love to hear more about it!
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages