Back to the full WebSockets listWhat are WebSockets?


GitHubStarsLast commitProject createdClosed vsOpen issues
4 days ago
2 years ago
38 / 30


unreal engine 4 websocket plugin(support ssl) for both c++ and blueprint developer.

This plugin is for unreal engine 4 c++ and blueprint developers, you can easily use c++ or blueprint to connect to remote server and send receive messages.

Unreal network is great for FPS or moba and IO games, but there's some games, you need to process network by yourself, this plugin is for these people, you don't need to write any c++ code, the plugin support blueprint api to make json string from message object, and can also decode json to message object.

Even the io game, we still need to connect to non dedicated server, I first write this plugin for my poker game, and then I use this plugin in a simple .io shoot game, here is the demo webgl, you can open it with firefox(I use the latest firefox for test), please confirem your browser support webgl.

There's two level in the demo project, one for test websocket connect and send receive, The other level is test message Object serialize to json string, and from json string to message object. I did not use struct, because change a value of a struct in blueprint is not convenient.

Supported Platform

★ 1. Win64

★ 2. Mac

★ 3. Android

★ 4. IOS

★ 5. Linux

★ 6. UWP

★ 7. Win32

★ 8. HTML5(NEW!!)

this plugin tested on 4.22 4.21 with vs2017/vs2019(vs2015 may build fail).


This is a normal plugin, if you are a beginner and don't know how to install it, please watch the video on my another plugin.

currently, this plugin automatic create a ca file, so you can use wss. If you have any problem, please email


★ Connect To Server


★ Bind Event, Send And Receive Data


★ Generate message class

When you work for a large game project, you can't write all message data class yourself, you need to use tools to generate message class. Under the ProtoTool/ there's a tool to generate cpp code for unreal engine 4 and d.ts for nodejs type info. I like use nodejs as my game server, the client and server communicate with json message. The proto write with js format, there's a example "message.js", you can run the "generatetue4.bat" to generate class.

★ Object to json


★ Json to Object


★ ssl support

this plugin support wss, it will automatic create ca file, the ca content is an array in WebSocketCA.cpp file.


This is an open source project, you can use it free. If you think this project useful, please give me a star to let me know it is useful, so I'll continue make it better.