Can you change a server side variable through client side? Node.js
Voters
JustARatherRidi (191)
Sure you can, but it depends on what sort of server you've got running and what data you're looking to send. Could you perhaps share a link to your code?
Ask coding questions
Sure you can, but it depends on what sort of server you've got running and what data you're looking to send. Could you perhaps share a link to your code?
I'm not sure how, at first glance, how to change server variables but the first thing I would try is build some sort of interface to change the server:
example:
client:
server:
@mwilki7 : Oh, so I need to use
socket.io
. Well, I am not that familiar with that. Do you know any good resources to learnsocket.io
?@AAnonymity Here's a skeleton for a simple chat room that I found online
https://repl.it/@mwilki7/NodeJS-Chatroom