typedef haxe.remoting.Socket = Socket

import haxe.remoting.SocketProtocol;

Available on all platforms