Refresh socket (server action) from cron job

I can’t seem to refresh a socket from a cron job. I tried it by executing a library action, and by just putting it in the cron job.

It does work when I create a test API action and put the refresh in there:

Community Page
Last updated: