mediasoup-go v2 is out! It brings major improvements in protocol support, performance, and developer experience:
-
FlatBuffers protocol support — Now compatible with mediasoup v3.14.0+.
-
Context-aware APIs — Added context support for better traceability and logging.
-
Type-safe callbacks — Callback functions are now strictly typed for safer and clearer code.
-
Optimized message handling — Improved internal messaging performance, controlled goroutine usage, and ensured that callbacks for the same object are not processed concurrently.
-
mediasoup-go-demo updated — The demo has also been upgraded to v2 to showcase the latest features.
About integration with mediasoup-worker
Just like the Node.js version, mediasoup-go communicates with the mediasoup-worker via OS-level pipes. However, since Go’s module system doesn’t support postinstall scripts like Node.js does, the Go wrapper for mediasoup-worker is released as a separate module and is not included in the main mediasoup repository.
mediasoup-go aims to be as compatible as possible with the official mediasoup protocol. I hope that the FlatBuffers-based protocol will remain stable and backward-compatible moving forward to ensure smooth interoperability.