
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
github.com/kyd-w/ion-sfu
A selective forwarding unit is a video routing service which allows webrtc sessions to scale more efficiently. This package provides a simple, flexible, high performance Go implementation of a WebRTC SFU. It can be called directly or through a gRPC or json-rpc interface.
O(n)
port usage)ion-sfu is the engine behind several projects. It's designed to be focused, with minimal signaling or external dependencies. It's simple to embed ion-sfu within your service: we include a few examples inside cmd/signal
.
For "batteries-included", end-to-end solutions that are easier to deploy, check out:
Run the Echo Test example
docker-compose -f examples/echotest-jsonrpc/docker-compose.yaml up
Open the client
http://localhost:8000/
The json-rpc signaling service can be used to easily get up and running with the sfu. It can be used with the corresponding javascript signaling module.
go build ./cmd/signal/json-rpc/main.go && ./main -c config.toml
docker run -p 7000:7000 -p 5000-5200:5000-5200/udp pionwebrtc/ion-sfu:latest-jsonrpc
For service-to-service communication, you can use the grpc interface. A common pattern is to call the grpc endpoints from a custom signaling service.
go build ./cmd/signal/grpc/main.go && ./main -c config.toml
docker run -p 50051:50051 -p 5000-5200:5000-5200/udp pionwebrtc/ion-sfu:latest-grpc
Answers to some Frequenty Asked Questions.
To see some other ways of interacting with the ion-sfu instance, check out our examples.
ion-sfu
supports real-time processing on media streamed through the sfu using ion-avp
.
For an example of recording a MediaStream to webm, checkout the save-to-webm example.
MIT License - see LICENSE for full text
Generate the protocol buffers and grpc code:
make protos
.dnf install protobuf protobuf-compiler
.go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
go get google.golang.org/protobuf/cmd/protoc-gen-go
protoc --go_out=. --go-grpc_out=. --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative cmd/signal/grpc/proto/sfu.proto
FAQs
Unknown package
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
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.