Meteor/DDP is an open source platform for building modern web apps using a single language (JavaScript). It uses EJSON instead of HTML and runs code on both the client and server. Data is synced between client and server using DDP (Distributed Data Protocol), which allows for remote procedure calls, subscriptions to documents, and latency compensation through reactivity and pub/sub.
The document describes code for a sliding block game. It defines functions for game objects to handle sliding completion, set the game layer, and start the game. When an object finishes sliding, it notifies the game layer with its previous and target positions. The game layer initializes random number generation and places game objects randomly on the board to start the game.
This document describes the Distributed Data Protocol (DDP) used by Meteor to manage data and remote procedure calls between a client and server. It discusses DDP connection establishment, ping/pong messages, calling remote methods, and managing subscriptions and data transmission with message types like added, removed, and ready. Tools for analyzing DDP traffic and libraries for building DDP clients in various languages are also mentioned.
Meteor/DDP is an open source platform for building modern web apps using a single language (JavaScript). It uses EJSON instead of HTML and runs code on both the client and server. Data is synced between client and server using DDP (Distributed Data Protocol), which allows for remote procedure calls, subscriptions to documents, and latency compensation through reactivity and pub/sub.
The document describes code for a sliding block game. It defines functions for game objects to handle sliding completion, set the game layer, and start the game. When an object finishes sliding, it notifies the game layer with its previous and target positions. The game layer initializes random number generation and places game objects randomly on the board to start the game.
This document describes the Distributed Data Protocol (DDP) used by Meteor to manage data and remote procedure calls between a client and server. It discusses DDP connection establishment, ping/pong messages, calling remote methods, and managing subscriptions and data transmission with message types like added, removed, and ready. Tools for analyzing DDP traffic and libraries for building DDP clients in various languages are also mentioned.