Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Scalable WebRTC Signaling Server with ayame-like protocol.

License

NotificationsYou must be signed in to change notification settings

castaneai/ayu

Repository files navigation

Go ReferenceGo Report Card

ayu is WebRTC Signaling Server withayame-like protocol.

  • Scalable: ayu uses Redis to store room states, so it can be used on serverless platforms (e.g. Cloud Run).
  • Composable: ayu provides a net/http compatible WebSocket handler.
  • Customizable: ayu provides authentication and logger interface, which can be customized.
  • No vendor lock-in: ayu depends only on Redis. It is not locked in to any specific cloud provider.

Usage

In the following example,ws://localhost:8080/signaling will be the endpoint of the signaling server.Please seeayame-spec for details.

package mainimport ("log""net/http""github.com/castaneai/ayu""github.com/go-redis/redis/v9")funcmain() {redisClient:=redis.NewClient(&redis.Options{Addr:"x.x.x.x:6379"})sv:=ayu.NewServer(redisClient)defersv.Shutdown()http.Handle("/signaling",sv)addr:=":8080"log.Printf("listening on %s...",addr)log.Fatal(http.ListenAndServe(addr,nil))}

Testing

make test

License

Apache-2.0

About

Scalable WebRTC Signaling Server with ayame-like protocol.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp