Let's test it...

To see our previous work in action:

  1. Run the Socket.IO server first. Open a new terminal and run:
      node middleware-server.js
  1. On your web browser, navigate to:
      http://localhost:1337
  1. You will see a login form with two fields, username and password
  2. Try to log in with random invalid credentials. The following error is displayed:
      invalid credentials 
  1. Next, try to log in with johntm as username and any password. The following error is displayed:
      Banned user! 
  1. After that, log in with any of the two other valid credentials. For instance, using jingxuan as username and qscwdvb as password. The following title is displayed:
      Connected to /home 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.113.199