If you are lazy like I am, this is a guide and some of the software to turn your raspberry pi into an access point that hosts an MQTT broker using Mosquitto and websockets.
Link to Raspbian: https://www.raspberrypi.org/downloads/raspbian/
Link to win32imager: https://sourceforge.net/projects/win32diskimager/
sudo raspi-config
sudo reboot
Remeber to change the password on the Raspberry Pi. This is important! Makes it so that people don't hack into it
passwd pi
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install rpi-update -y
sudo rpi-update
sudo reboot
sudo apt-get install git -y
git clone https://github.com/chistogo/RPI-MQQT-AP.git
#You might have to change the the files to make them executable. Just use chmod +x FILE_NAME_HERE.sh
#Also run the scripts with sudo