
Learn to build a real-time web app by integrating Wordpress and socket.io, featuring a school dashboard where player scores update live across all clients from the server.
Explore a finished real-time score dashboard for a four-player online game, and see how socket.io pushes player scores to all clients, updating posts in real time across multiple windows.
Explore typical http request and response patterns, the client-server architecture, and how real-time updates push server changes to the WordPress-based browser experience.
Explore how real-time applications establish a client–server socket connection through an initial handshake, enabling immediate message exchange and live data updates like trading prices and multiplayer scores.
Explore the network architecture for real-time web apps using Socket.IO on a Node.js server. Understand how the messaging library enables event-based client–server communication and data sharing.
Learn how to set up and use socket.io for event-based communication between client and server, including publisher-subscriber patterns, custom events, and automatic reconnection with practical code examples.
Learn how to implement a socket on the client side, create and connect a client socket, listen for a named event, and handle the empty reply on the socket.
Explore zeroMQ, a cross-platform, high-performance open-source messaging library written in C++, with language bindings and diverse sockets; learn to create a context, a push socket, connect, and send messages.
Build a WordPress sample by creating a 2017 child theme with functions.php, style.css, and a screenshot.png in wp-content/themes, then activate it via the WordPress admin and manage categories and posts.
Understand the WordPress template hierarchy and learn to create a single page template that displays content, using the hierarchy to guide file selection and fallbacks.
Create a WordPress application for player scores by looping through posts, extracting post titles and content to display player names and scores in a dashboard with minimal styling.
Create a WordPress plugin that sends updated post data in real time via a socket connection, retrieving post title and content and pushing updates to clients.
Install nodejs, the javascript runtime, from the official site for windows, mac, or linux; verify the installation by typing node -v in a command prompt and prepare for socket io.
Install socket.io and its dependencies using npm, configure express, and verify installed modules in package.json to create a maintainable node app.
Create and wire a Socket.IO server with Express to receive messages from a WordPress plugin, bind it to port 3000, and enable real-time bidirectional communication with clients.
Create a socket.io client for WordPress by adding the client library to the dashboard and opening a socket connection, then handle events like latest score with publish-subscribe.
Explore how to create a WordPress plugin, enqueing javascript, and activate the plugin to register and run javascript within real-time web apps.
Install the ZeroMQ core library and the PHP binding on Windows, download and unzip the zip, copy the libs to the target directories, and enable the extension.
This lecture guides Linux installation of the ZMQ core library and its PHP bindings, detailing downloading, configuring, building, and finalizing the setup to enable real-time messaging in web apps.
Test and validate a zmq socket connection between wordpress and node, verify message delivery from post updates to the console, and ensure real-time updates flow through the socket.
Test the socket.io connection by editing the socket file, running the app, and checking the browser console to confirm messages from the server are received by the client.
Update the socket.io client and test a complete application by modifying files, handling messages, and reflecting player scores in real-time on the dashboard.
Install forever globally with npm, start the Node.js app as a background service, monitor the dashboard, and use forever list to stop when needed.
In non real time application, client needs to refresh the page or poll the database to get the latest content from database.
For example client request to server to check the stock price. Once server has sent response of latest stock price. Client will always see that price and it will never get real time stock price. To get the latest stock price client has to either
1. Poll the server in regular interval to check if stock price is changed or not, or
2.User needs to continuously keep pressing refresh button to get latest data from server.
Option 1 is unnecessary putting load on server, as many clients connected and even if data is not changed they re polling server in regular interval.
Option2 . you know how annoying it can be.
Real time web applications are applications, where data form server is pushed to client in event of database content update, without client requesting for it
In this course you will learn
1. Basics of technology needed to make WordPress real time
2. Overview of network architecture for real-time communication between wordpress and socket
3. How to integrate wordpress with realtime socket technology so that any changes in database is pushed from server to client in soft real time.
4. We will create WordPress based game score Dashboard sample application where all players scores are visible and anytime score of any player changes, latest game score will get pushed from server to all the connected client browser and will reflect the latest score of player in real time.
Target Audience for this course
This course if for anyone who wants to learn to create wordpress applications with realtime technology.