Lonce Wyse
Communication & New Media
lonce.wyse@cnm.nus.sg
Changing Data
Server Code
Changing Data
Server Code
Server Code
Typically involves a DATABASE from which the webpages that are served are created at the time they are requested.
Q: Why do github.io (and others) only host static pages?
"Chat room" model
Socket connection established for each site visitor
Any messages server receives, are 'broadcast' to all other sockets.
Socket enables real-time two-way communication
Each client gets a different socket number, or "id" to use once the connection is established.
1
2