I created a simple web socket in javascript I'm using Nodejs to run it. Every time I start it up, it doesn't work right off. I have to close the connection, edit the js file, save it, change the js file back to how it was to begin with, run it again and it works. I'm not actually changing the js file? So why does it not work at first and then it works after messing with it?
To expand on my previous question. I've been able to create the web socket. This is being used to create a log file for Minecraft education edition (since that doesn't make any logs.)
I think my problem is I do not know how to properly set up the subscription to the messages.