Adds method to start Wifi socket from GlobalState
Makes changes to parse message into a JSON object rather than a JSON array