Join Joseph LeBlanc for an in-depth discussion in this video Creating a WordPress chatroom back-end, part of Node.js First Look.
In the previous video, we added the front-end for a chat room in WordPress.…Now let's add the backend code so WordPress users can talk to each other…through the chat room.…I've added two users to my WordPress site; Joe and Tom.…Make sure you have at least two users in your WordPress site so they can chat…back and forth between each other.…Once that's in place, let's go to the server code.…I've copied this code from the exercise files to my desktop;…package.json has some dependencies.…So let's install them.…
Now that the modules are installed, let's go to server.js.…First, we're requiring the wordpress-auth module.…This module allows us to talk to WordPress, and authenticate with the cookies.…There are several arguments we need to pass into the create function.…The first one is the base URL. This is localhost.…The remainder of the arguments can be found in the wp-config file.…Let's go there now.…Because I'm using XAMPP, I'm going to go to XAMPP > htdocs > wp-config.…
The first item we'll copy is the LOGGED_IN_KEY.…
- Using the Socket.IO Node package to achieve "live" effects like Facebook notifications
- Scraping web sites using jQuery without a browser
Skill Level Beginner
Q: Does the instruction from "Selecting through browserless jQuery" work for Windows users?
A: The “Selecting through browserless jQuery” video does not work on Windows
XHTML and HTML Essential Trainingwith Bill Weinman4h 44m Beginner
1. Installing Node
2. Getting Started
Running a Node script2m 6s
4. Command Line Scripts
5. Creating Web Servers
7. WebSocket Programming
8. Connecting Beyond Node
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.