Unless you are using the ESP8266 bare IC on your own PCB I would strongly recommend you buy modules with built in antenna sockets. Retro-fitting one to an existing device would be problematic and matching the antenna impedance without suitable VNA equipment would be almost impossible.