WebSocket Client C++ HowTo
i am trying to let my GameClient open a WebSocket Connection. I found the libwebsockets package inside the Engine. But in the description of the Header file ther is written that its just a websocket server.
How else i can add websocket client functionality to my game ?
asked Jul 29 '15 at 07:53 PM in C++ Programming
You can find a Websocket implementation for the libwebsocket library located in Engine/Source/ThirdParty/WebSockets.
Part of the private classes of that library are an implementation of a WebSocket in C++. You can copy that class to your project, rename it and use the websocket connection. This will limit your project to Windows and maybe HTML5.
At least I did something similar half a year ago with Unreal 4.8, but my projects are now outside of my reach. I hope this helps. Good luck!
answered Nov 12 '15 at 02:49 PM
Unfortunatelly as far as I know the UE4 don't have any good implementation for a websocket client.
I've written the new engine module that deal with it using the libwebsockets built from libwebsockets git.
The libwebsockets itself is quite low level stuff, but this file https://github.com/davidgaleano/libwebsockets/blob/master/test-server/test-client.c can help You understand how to do it.
Unfortunatelly I can't help more. NDA, this stuf... :(
answered Jul 30 '15 at 07:52 AM
hello, any update on websocketpp? I use websocketpp Cinder block( https://github.com/wieden-kennedy/Cinder-WebSocketPP ), I would like to have an Unreal websocket client... thank you
answered Nov 06 '15 at 10:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here