Proper Custom Networking

My team is making online simulation. There is a server written c++ and client (2d version) made with Javascipt (not important). They are communicating with TCP and UDP connection. And I want to make 3d client version with the unreal. The server will be common for 2d client and 3d client. Unreal has own networking solution, but we cannot use for this. Is there any proper solution for communication with “not-Unreal-Server”. (Simulation will be realtime battle.)