# UEWebsocket **Repository Path**: tiax/UEWebsocket ## Basic Information - **Project Name**: UEWebsocket - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-05-09 - **Last Updated**: 2021-03-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # UEWebsocket 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. 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 this plugin tested on 4.24,for old engine version, please download the right version from branch or tag. # Install 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](https://github.com/feixuwu/UnrealEngine4-Admob). currently, this plugin automatic create a ca file, so you can use wss. If you have any problem, please email me:feixuwu@outlook.com. # Usage ★ Connect To Server ![ScreenShot](docs/connect.PNG) ★ Bind Event, Send And Receive Data ![ScreenShot](docs/bind.PNG) ★ 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 ![ScreenShot](docs/objtojson.PNG) ★ Json to Object ![ScreenShot](docs/jsontoobj.PNG) ★ ssl support this plugin support wss, it will automatic create ca file, the ca content is an array in WebSocketCA.cpp file. # License 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.