
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.
@hysc/electron-sdk
Advanced tools
Boom Electron SDK 是一个基于 Electron 的桌面应用开发框架,提供了音视频会议、屏幕共享、白板等功能的集成解决方案。该 SDK 旨在简化开发者在 Electron 环境下构建高质量音视频应用的过程。
npm install @hysc/electron-sdk --save
或者使用 yarn:
yarn add @hysc/electron-sdk
const { app, BrowserWindow } = require('electron');
const { BoomUISDK, RoomWindow } = require('@hysc/electron-sdk');
// 初始化 SDK
const boomSDK = new BoomUISDK({
appId: 'YOUR_APP_ID',
userId: 'userId'
});
// 创建主窗口
let mainWindow;
function createWindow() {
mainWindow = new BrowserWindow({
width: 960,
height: 655,
resizable: true,
webPreferences: {
nodeIntegration: true,
contextIsolation: false
}
});
mainWindow.loadURL('http://localhost:3000'); // 加载您的应用
}
app.whenReady().then(() => {
createWindow();
// 初始化会议窗口
BoomUISDK.getInstance({
appId: 'YOUR_APP_ID',
userId: 'userId'
}).initEvent();
});
// 创建会议窗口
const roomWindow = new RoomWindow({
domain: 'http://your-meeting-url.com'
});
// 渲染进程 发送 window.electron?.ipcRenderer('joinBoomRoom', {url})
// 调整窗口大小
roomWindow.setBounds({
width: 960,
height: 655
});
// 关闭会议窗口
roomWindow.close();
RoomWindow 类提供了会议窗口的创建和管理功能:
方法 | 描述 |
---|---|
constructor({ domain }) | 创建会议窗口实例 |
setBounds(bounds, animate) | 设置窗口大小和位置 |
close() | 关闭会议窗口 |
isWindowShow() | 检查窗口是否显示 |
createChatWindow(opt) | 创建聊天窗口 |
createInviteWindow(opt) | 创建邀请窗口 |
createUsersWindow(opt) | 创建用户列表窗口 |
BoomUISDK 类提供了 SDK 的核心功能:
方法 | 描述 |
---|---|
constructor(options) | 初始化 SDK |
init() | 初始化 SDK 资源 |
destroy() | 销毁 SDK 实例 |
窗口大小调整:
setBounds
方法前,确保窗口不处于最大化、最小化或全屏状态defaultWidth
和 defaultHeight
属性资源清理:
close()
方法清理所有资源平台差异:
您可以在 /electron-sample
目录下找到一个完整的示例项目,展示了如何集成和使用 Boom Electron SDK。
安装失败:
install.js
相关错误,请确保您的网络可以下载 ffmpeg 二进制文件窗口无法调整大小:
resizable: true
IPC 通信问题:
nodeIntegration: true
和 contextIsolation: false
Copyright © 2025 HYSC Technology Co., Ltd.
FAQs
Unknown package
The npm package @hysc/electron-sdk receives a total of 4 weekly downloads. As such, @hysc/electron-sdk popularity was classified as not popular.
We found that @hysc/electron-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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.