{"id":20388250,"url":"https://github.com/libp2p/go-mplex","last_synced_at":"2025-04-08T11:08:49.947Z","repository":{"id":34357736,"uuid":"38280011","full_name":"libp2p/go-mplex","owner":"libp2p","description":"A port of maxogden's multiplex to go","archived":false,"fork":false,"pushed_at":"2025-03-29T08:32:26.000Z","size":278,"stargazers_count":38,"open_issues_count":14,"forks_count":20,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-01T09:31:46.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libp2p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-30T01:11:15.000Z","updated_at":"2025-03-28T13:07:01.000Z","dependencies_parsed_at":"2024-03-21T15:58:58.351Z","dependency_job_id":"3e4ba4f0-1d41-4123-8d5f-39a20a0dbc29","html_url":"https://github.com/libp2p/go-mplex","commit_stats":null,"previous_names":["whyrusleeping/go-multiplex"],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fgo-mplex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fgo-mplex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fgo-mplex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libp2p%2Fgo-mplex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libp2p","download_url":"https://codeload.github.com/libp2p/go-mplex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247829491,"owners_count":21002995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T03:08:17.961Z","updated_at":"2025-04-08T11:08:49.928Z","avatar_url":"https://github.com/libp2p.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED: go-mplex\n\nmplex is deprecated. When on TCP, we recommend using [Yamux](https://github.com/libp2p/go-yamux/) instead.\nIf TCP is not a requirement, consider using QUIC instead.\n\nRef: Discussion around mplex deprecation: https://github.com/libp2p/specs/issues/553\n\n---\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](https://protocol.ai)\n[![Go Reference](https://pkg.go.dev/badge/github.com/libp2p/go-mplex.svg)](https://pkg.go.dev/github.com/libp2p/go-mplex)\n[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](https://libp2p.io/)\n[![](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p)\n[![Discourse posts](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg)](https://discuss.libp2p.io)\n\nA super simple [stream muxing](https://docs.libp2p.io/concepts/stream-multiplexing/) library implementing [mplex](https://github.com/libp2p/specs/tree/master/mplex).\n\nUsers should prefer [yamux](https://github.com/libp2p/go-libp2p/tree/master/p2p/muxer/yamux) over mplex. We would like to deprecate mplex in the future.\n\n## Usage\n\n```go\nmplex := multiplex.NewMultiplex(mysocket)\n\ns, _ := mplex.NewStream()\ns.Write([]byte(\"Hello World!\"))\ns.Close()\n\nos, _ := mplex.Accept()\n// echo back everything received\nio.Copy(os, os)\n```\n\n---\n\nThe last gx published version of this module was: 0.2.35: QmWGQQ6Tz8AdUpxktLf3zgnVN9Vy8fcWVezZJSU3ZmiANj\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Fgo-mplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibp2p%2Fgo-mplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibp2p%2Fgo-mplex/lists"}