add socket.io config, fixes #85 and #143