Possible to prevent letting client go to lock screen after inactivity?

Hi all,

i wrote an node app using electron for windows 10. This app communicates via websocket to an external service and waits for new data to come in.

This works like a charm until the desktop gets into lock screen after a while. Then the whole application seems to stop.

Is there
a.) a way to prevent a client going to lock screen
b.) a way to have the application up and running in background while the screen is locked?