Live peer tot peer sex chat
First we’re going to work with the client-side code and then we’ll move over to the server side.
Please note that you can download the code for this tutorial from our Git Hub repo.
event is triggered every time a message is sent to the current user.
For convenience I’m going to refer to the current user (the one who initiates the connection) as User A, and the peer (the one who is being connected to) as User B.
To run it, or to follow along at home, you will need to have Node and npm installed.