How to make esp8266 websocket without internet?

Make complete esp8266 websocket 2 relays project work without internet, including ap mode and also station mod, control all through mobile app with build with mit app Inventors, any buddy intrested and having any ideas regarding this pleas give me suggestions to me.