Client server communication

From Zangshin

Jump to: navigation, search

Core components:

  • ZangClient (JavaScript)
  • ZangServer (PHP)

Works on a basic messaging system

Human => Client (Pusher client state), => Server Scrip (message stack) => Data Base

Example of 3 people in a room and one attacks another:

  • Client A. Creates and "Action Message" that gets sent to Server A.
    • Server A. Validates Actions
  • Server A. sends and "update message" to the "world State"
  • Server A. sends and "update message" to the Server B. and Server C.
  • Server A. sends and "update message" to the Client A.
  • Pusher B. request and "Update Message"
  • Pusher B. Sends "Update message" to Client B.
  • Pusher C. Request "Update Message"
  • Pusher C. sends "Update Message" Client C.
Personal tools