Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

430 CHAPTER 10 WebSocket communications



  1. Click Install to install jQuery.


FIGURE 10-3 he NuGet Window with jQuery selectedT

Add the socket.io client files. These files were automatically downloaded to your com-
puter during Exercise 1 when you executed npm install.


  1. In the Solution Explorer window, right-click the Scripts folder, choose Add,
    and select Existing Item. Navigate to the chatservice folder and then to the
    node
    modules\socket.io\node_modules\socket.io-client\dist folder.

  2. In the file type drop-down list, select All Files (.) and then select the four files that are
    now showing in the folder, as shown in Figure 10-4.


FIGURE 10-4 he socket.io client files that need to be added to the websiteT
Free download pdf