cape_sockets: copied from cape_bacon
cape_sockets: replaced with getPlatform