How to send a message to node.js server?

How would I send a command to Node.js

I have a jquery / javascript page which detects on keypress W,A,S Or D and then triggers an event to change the canvas.

The next step in this is to then trigger a event on a Node.js server using (I think) Websockets.

Most tutorials I have found are the other way around with sending data to the client.

Does anyone have places with tutorials on how I would do this?

Thanks - Ryan

Use web sockets, tutorial is here http://socket.io/

You can do this with normal ajax calls to Node.js. If you want something more fancy checkout socket.io.