
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
rocketchat-node
Advanced tools
Devrelease of next version of RocketChat. Do not rely on this package
A node.js module, which provides an object oriented wrapper for the RocketChat REST API.
RocketChat official website address can be found here . RocketChat REST API document can be found here.
This Lib library package the following functions:
Install with the node package manager npm:
$ npm install rocketchat
or
Install via git clone:
$ git clone https://github.com/qeesung/rocketchat-node.git
$ cd rocketchat-node
$ npm install
var RocketChatApi = require('rocketchat').RocketChatApi;
// alpha-api versions
var rocketChatApi = new RocketChatApi('http', config.host, config.port, config.user, config.password);
// v1-api versions
var rocketChatApi = new RocketChatApi('http', config.host, config.port, config.user, config.password, "v1");
rocketChatApi.version(function(err,body){
if(err)
console.log(err);
else
console.log(body);
})
rocketChatApi.login(function(err,body){
if(err)
console.log(err);
else
console.log(body);
})
You don't have to log in every time, and automatically log on when you call the other interface.
rocketChatApi.logout(function(err,body){
if(err)
console.log(err);
else
console.log(body);
})
rocketChatApi.getPublicRooms(function(err,body){
if(err)
console.log(err);
else
console.log(body);
})
rocketChatApi.joinRoom(roomID ,function(err,body){
if(err)
console.log(err);
else
console.log(body);
})
rocketChatApi.leaveRoom(roomID ,function(err,body){
if(err)
console.log(err);
else
console.log(body);
})
rocketChatApi.createRoom(roomName ,function(err,body){
if(err)
console.log(err);
else
console.log(body);
})
rocketChatApi.setTopic(roomID, topicName, function(err, body){
if(err)
console.log(err);
else
console.log(body);
})
rocketChatApi.getUnreadMsg(roomID ,function(err,body){
if(err)
console.log(err);
else
console.log(body);
})
rocketChatApi.sendMsg(roomID, message, function(err,body){
if(err)
console.log(err);
else
console.log(body);
})
More information can be found by checking RocektChat REST API
RocketChatApi Options:
<string>: Typically 'http:' or 'https:'<string>: The hostname for your jira server<int>: The port your jira server is listening on (probably 80 or 443)<string>: The username to log in with<string>: Keep it secret, keep it safeFAQs
Rocket chat node api
The npm package rocketchat-node receives a total of 6 weekly downloads. As such, rocketchat-node popularity was classified as not popular.
We found that rocketchat-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.