Connect to socket in index.coffee