
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
BearyChat API client for Node and the Browser.
$ npm i bearychat
or with yarn
$ yarn add bearychat
incoming.send
import { incoming } from 'bearychat';
const myWebhookUri = 'https://hook.bearychat.com/incoming/keep-calm-and-pusing';
incoming
.send(myWebhookUri, { text: 'Hello, world' })
.then(() => {
console.log('incoming sent!');
});
incoming.builder
import { incoming } from 'bearychat';
incoming
.withText('Hello, world') // or .withMarkdown('**Hello, world**')
.to('扯犊子')
.withAttachment({ text: 'It is simple,' })
.withAttachment({ text: 'but colorful', color: '#ffa500' })
.build();
rtm.start
import { rtm } from 'bearychat';
const rtmToken = 'keep-secret-and-safe';
rtm.start(rtmToken)
.then((user) => {
console.log(user);
});
rtm.currentTeamInfo
import { rtm } from 'bearychat';
const rtmToken = 'keep-secret-and-safe';
rtm.currentTeamInfo(rtmToken)
.then((team) => {
console.log(team);
});
rtm.currentTeamMembers
import { rtm } from 'bearychat';
const rtmToken = 'keep-secret-and-safe';
rtm.currentTeamMembers(rtmToken)
.then((members) => {
console.log(members);
});
rtm.currentTeamChannels
import { rtm } from 'bearychat';
const rtmToken = 'keep-secret-and-safe';
rtm.currentTeamChannels(rtmToken)
.then((channels) => {
console.log(channels);
});
rtm.userInfo
import { rtm } from 'bearychat';
const rtmToken = 'keep-secret-and-safe';
const userId = '=bw4242';
rtm.userInfo(rtmToken, userId)
.then((user) => {
console.log(user);
});
rtm.channelInfo
import { rtm } from 'bearychat';
const rtmToken = 'keep-secret-and-safe';
const channelId = '=bw4242';
rtm.channelInfo(rtmToken, channelId)
.then((channel) => {
console.log(channel);
});
rtm.message
Provides handful helpers for rtm message parsing.
rtm.loop
To achive more flexible usage, bearychat.js
won't provide any implementations
for rtm.loop
. You can use examples/rtm_loop
as
implementation reference.
Basically, rtm.loop
contains 3 stages:
rtm.start
: Use rtm token to authenticate user and open a websocket
connection.ping
: Keep sending type=ping
message to server after connected. Pinging
interval with 5000ms
is suggested.loop
: Subscribe to websocket's message event and consume the message comes
from the server. You can use rtm.message
for message parsing.$ npm run test
MIT
0.1.0 / 2016-12-30
rtm.loop
的参考实现FAQs
BearyChat API client for Node and the Browser.
The npm package bearychat receives a total of 26 weekly downloads. As such, bearychat popularity was classified as not popular.
We found that bearychat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.