Skip to content
Sign upLog in

How do I stop my nodejs repl from falling asleep?

Profile icon
Will_builder8

I tried using Uptime robot, but it still falls asleep after a while! How do I fix this?

You are viewing a single comment. View All
Profile icon
vedprad1

It doesn't seem to be down. There is probably a problem in your code, then.
While this may not solve the problem, I do notice that you are missing a lot of semicolons. You should fix that.

Profile icon
Will_builder8

@vedprad1
i dont nee dto put semicolons in nodejs i thought

Profile icon
Zavexeon

@Will_builder8 Semicolons are still necessary in Node. Node is just plain old Javascript with built-in libraries. The syntax is the same.