added settings and functions to allow for socketio to work
added code to use socketio from the frontent