• Welcome to Randomland - The Forum. Please login or sign up.
 

Client Ports for Brad's RPG (Ideas and Related Ramblings)

Started by zourtney, Jan 28, 2010, 10:00 AM

Previous topic - Next topic

Nick

I finally decided on a server for the websocket stuff. I am going to go with Node.io and Socket.io for its multi-client support (it has all sorts of fallbacks for older browsers and IE)

Took most of my lunch compiling it :-\

I will  try to get a basic back-and-forth with a single client tomorrow.

Nick

I played around with node.js and socket.io a bit more and got some client-server communication going.

Then I opened a socket from the node.js server to Brads game and sent :
            gameSocket.write("echo\r\n\r\n"); //I got the end of line from some website. Not sure what to send yet.

I got no response that I could tell from the node.js side, but Brads game saw the connection...

        Clients: 1
    [2]     type:   21536
    [4]     /:      DUDE THIS IS ONE WEIRD DELIMITER
    Client 0 Disconnected


So I can now send arbitrary text and JS objects back and forth from the browser client and the node server and I can send weird delimiters to Brads game!!

Brad

Haha nice job! The actual specs for the game packet should be somewhere in with the server source if you want to look them up.

Keep up the good work.