Registering sockets. Fixing node env.