fix(curriculum): Changed 'though' to 'through' on line 22. (#47526)

fix(curriculum): Fixed typo.

Changed 'though' to 'through' on line 22
This commit is contained in:
Justin Lane 2022-09-15 15:22:05 -04:00 committed by GitHub
parent 3fc28a1c84
commit bdc633d263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ const io = require('socket.io')(http);
Now that the *http* server is mounted on the *express app*, you need to listen from the *http* server. Change the line with `app.listen` to `http.listen`.
The first thing needing to be handled is listening for a new connection from the client. The <dfn>on</dfn> keyword does just that- listen for a specific event. It requires 2 arguments: a string containing the title of the event that's emitted, and a function with which the data is passed though. In the case of our connection listener, we use *socket* to define the data in the second argument. A socket is an individual client who is connected.
The first thing needing to be handled is listening for a new connection from the client. The <dfn>on</dfn> keyword does just that- listen for a specific event. It requires 2 arguments: a string containing the title of the event that's emitted, and a function with which the data is passed through. In the case of our connection listener, we use *socket* to define the data in the second argument. A socket is an individual client who is connected.
To listen for connections to your server, add the following within your database connection: