# mediasoup-go v2 Released!

**URL:** <https://mediasoup.discourse.group/t/mediasoup-go-v2-released/6693>\
**Category:** Announcements\
**Created:** [May 23, 2025, 11:48am UTC](https://mediasoup.discourse.group/t/mediasoup-go-v2-released/6693 "2025-05-23T11:48:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wuxinfei](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/wuxinfei/32/866_2.png) [@wuxinfei](https://mediasoup.discourse.group/u/wuxinfei)\
**Post date:** [May 23, 2025, 11:48am UTC](https://mediasoup.discourse.group/t/mediasoup-go-v2-released/6693/1 "2025-05-23T11:48:43Z")

</div>

[mediasoup-go](https://github.com/jiyeyuran/mediasoup-go) v2 is out! It brings major improvements in protocol support, performance, and developer experience:

1. FlatBuffers protocol support — Now compatible with mediasoup v3.14.0+.

2. Context-aware APIs — Added context support for better traceability and logging.

3. Type-safe callbacks — Callback functions are now strictly typed for safer and clearer code.

4. Optimized message handling — Improved internal messaging performance, controlled goroutine usage, and ensured that callbacks for the same object are not processed concurrently.

5. [mediasoup-go-demo](https://github.com/jiyeyuran/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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/b/b318c4d3397e65af9535f79c605b80b9ceb066c8.png) [@system](https://mediasoup.discourse.group/u/system)\
**Post date:** [May 25, 2025, 11:49am UTC](https://mediasoup.discourse.group/t/mediasoup-go-v2-released/6693/2 "2025-05-25T11:49:15Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
