Skip to content

Unreal Engine 4 Networking over Websockets Plugin

Notifications You must be signed in to change notification settings

zaphodgjd/HTML5Networking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Unreal Engine 4 Networking over Websockets Plugin

  • Provides websocket transport layer for unreal engine 4.
  • Uses libwebsockets for the server side and client side for non HTML5 clients.
  • HTML5 clients use emscripten's sockets abstraction.

How to

  • Clone this in Engine\Plugins\Experimental directory.
  • Add the following section in BaseEngine.ini
[/Script/HTML5Networking.WebSocketNetDriver]
AllowPeerConnections=False
AllowPeerVoice=False
ConnectionTimeout=6000.0
InitialConnectTimeout=6000.0
AckTimeout=10.0
KeepAliveTime=20.2
MaxClientRate=15000
MaxInternetClientRate=10000
RelevantTimeout=5.0
SpawnPrioritySeconds=1.0
ServerTravelPause=4.0
NetServerMaxTickRate=30
LanServerMaxTickRate=35
WebSocketPort=8889
NetConnectionClassName="/Script/HTML5Networking.WebSocketConnection"
MaxPortCountToTry=512

In section [/Script/Engine.Engine] disable comment out NetDriverDefinitions and add

NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/HTML5Networking.WebSocketNetDriver",DriverClassNameFallback="/Script/HTML5Networking.IpNetDriver")

To enable this Net Driver.

Build! and follow existing Unreal Networking documentation to setup servers/clients.

Issues/Todo

Disconnect events on client or server side are not handled properly yet

Copyright 2015 Epic Games.

About

Unreal Engine 4 Networking over Websockets Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.4%
  • C# 1.6%