Shutdown emulator and goto your emulator_settings > websockets.whitelist and make it *.url.net and then do ws.nitro.ip.header and make that CF-Connecting-IP
Theres quite a few things you would have to do. Its not as hard, but there's a emulator already out there that has this all worked out by Skeletor on Github.
https://github.com/dank074/PlusEMU
If you run into any issues feel free to ask.