UE4 is based in part on the work of the libwebsockets project (http://libwebsockets.org). Source code for the version of libwebsockets used in UE4 can be obtained at https://github.com/EpicGames/ThirdParty