You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of my issue is while I'm learning JavaScript, clearly, I'm not a competent yet as it seems I should be.
My goal is to have a server receive log messages from clients, and for now, to log them to a file. Right now, I prefer the files to be human-readable (not JSON).
I'll put my code below, and perhaps someone can tell me what I'm doing wrong.
Right now, the server URL will be "localhost:8081".
The list of stuff I'm not figuring out is long. Here is a short list:
Do I use the http.createServer method with .listen to create an HTTP server that listens on port 8081? If not, how do I do this?
If I use the http.createServer, the first argument is the request function, that needs to receive messages and send them to the transport. Are there any examples both of functional request functions, and the invoking of them as a parameter to http.createServer?
I know I'll have more questions later, but this will get me started.
The text was updated successfully, but these errors were encountered:
Part of my issue is while I'm learning JavaScript, clearly, I'm not a competent yet as it seems I should be.
My goal is to have a server receive log messages from clients, and for now, to log them to a file. Right now, I prefer the files to be human-readable (not JSON).
I'll put my code below, and perhaps someone can tell me what I'm doing wrong.
Right now, the server URL will be "localhost:8081".
The list of stuff I'm not figuring out is long. Here is a short list:
I know I'll have more questions later, but this will get me started.
The text was updated successfully, but these errors were encountered: