- Practical XMPP
- Lloyd Watkin David Koelle
- 113字
- 2021-07-08 11:24:04
Installing node-xmpp-client
To interact with an XMPP server, we will use a popular Node.js project called node-xmpp-client
. This is a JavaScript implementation of an XMPP client that can run on both the server side or in the browser using Browserify (http://browserify.org/).
First, we will create a new folder for our project and install the library there. To do this, open a terminal window and type the following commands:
cd ~ mkdir xmpp-echo-bot cd xmpp-echo-bot npm install node-xmpp-client
This will install node-xmpp-client
inside a new node_modules
directory. At the time this book is published, node-xmpp-client
should be at version 3.0.0 or greater.
Now we have our library installed, we start building our echo bot!
推薦閱讀
- JBoss Weld CDI for Java Platform
- JavaScript從入門到精通(微視頻精編版)
- Easy Web Development with WaveMaker
- PhoneGap Mobile Application Development Cookbook
- 用戶體驗增長:數字化·智能化·綠色化
- Python數據結構與算法(視頻教學版)
- 計算機應用基礎案例教程
- HTML5權威指南
- Vue.js應用測試
- MINECRAFT編程:使用Python語言玩轉我的世界
- C++從入門到精通(第6版)
- Sails.js Essentials
- Scratch從入門到精通
- 從零開始學UI:概念解析、實戰提高、突破規則
- Mastering ASP.NET Core 2.0