
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
This is a new module which allows you to connect to Mixer Chat Servers.
Some of the code is based of the original chat code from beam-client-node which did it's job but being stuck with the bulky module and bugs. It was easier to create this to just handle chat connections and have better error handling/methods. We plan on expanding this to contain more features and better hooks for developers to use. But for now it's the basic module to connect to chat and stay connected with built in reconnection logic.
There are an array of options you can change with the socket connection. Of which are all typed so please explore the code or mess around in TypeScript to see what's on offer.
npm i mixer-chat --save
This is a simple usage to connect to a channel chat.
import { ChatSocket, IChatMessage, IUserUpdate } from 'mixer-chat';
/**
* You will need the channelId of the channel you wish to connect too; and the userId of the user you want to
* connect to chat as. You can find information about how to do this here: https://dev.mixer.com/reference/chat/index.html#chat__introduction
**/
async function connect(channelId: number, userId: number, authKey: string) {
// Create the chat socket.
const endpoints: string[] = []; // List of endpoints taken from the `chats/:id` endpoint.
const chat = new ChatSocket(endpoints).boot();
// Authenticate to the server
const isAuthed = await chat.auth(channelId, userId, authKey); // Returns the userRoles and if authenticated.
// You'll now get events from the server on new messages/events etc...
chat.on('ChatMessage', (message: IChatMessage) => {
console.log(message);
});
chat.on('UserUpdate', (update: IUserUpdate) => {
console.log(update);
});
// Etc...
}
// Connect to a channel chat.
connect(1, 2, 'jnoh986');
FAQs
Simplistic module to connect to the Mixer chat servers.
The npm package mixer-chat receives a total of 7 weekly downloads. As such, mixer-chat popularity was classified as not popular.
We found that mixer-chat 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.