This is the code for a project I made, can be found at:
http://www.whatimade.today/esp8266-on-websockets-mdns-ota-and-leds/
The webPage folder is a web page which controls the ESP8266 through a websocket
The LedStrip12V folder is the code on the ESP8266 which receive data and control the strip