
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.
@nabla/janus-client
Advanced tools
Javascript web client for a WebRTC Janus server.
The js file comes from the official Janus repository while the typing one, index.d.ts
is tailored for the videoroom plugin.
yarn add @nabla/janus-client
import Janus, { JSEP, PluginHanlde } from "@nabla/janus-client";
let session: Janus;
let localHandle: PluginHandle;
const opaqueId = "<OPAQUE_ID>";
Janus.init({
debug: true,
callback: () => {
session = new Janus({
server: serverUrl, // TODO get media server url dynamically from back-end
withCredentials: true,
success: () => {
session.attach({
plugin: "janus.plugin.videoroom",
opaqueId,
success: (pluginHandle) => {
localHandle = pluginHandle;
pluginHandle.send({
message: {
request: "join",
room: 1234, // Your room id
ptype: "publisher",
display: "<USER_NAME>",
},
});
},
error: (err) => {
// ...
},
iceState: (state) => {
// ...
},
mediaState: (medium, on) => {
// ...
},
webrtcState: (on) => {
// ...
},
slowLink: () => {
// ...
},
onmessage: (msg, jsep) => {
const event = msg.videoroom;
if (event === "joined") {
// We can publish our own feed;
// ...
if (msg.publishers) {
for (const p of msg.publishers) {
// Add remote feed
// ...
}
}
} else if (event === "event") {
if (msg.publishers) {
// There are new participants joining the room
for (const p of msg.publishers) {
// Add remote feed
// ...
}
} else if (msg.leaving) {
// A participant is leaving the room...
// ...
} else if (msg.unpublished) {
// A participant unpublished
// ...
}
} else if (event === "destroyed") {
// The room is closed...
}
if (jsep) {
localHandle.handleRemoteJsep({ jsep });
}
},
onlocalstream: (stream) => {
// local video can be attached
},
// ...
});
},
error: (err) => {
// An error occured
},
});
},
});
FAQs
Javascript client for Janus-Gateway server
The npm package @nabla/janus-client receives a total of 0 weekly downloads. As such, @nabla/janus-client popularity was classified as not popular.
We found that @nabla/janus-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
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.