Login The first task we'll need to complete is to get logged in to our server. Let's create a script file in our project at public/scripts/xmpp.js, where we can start .