- Notifications
You must be signed in to change notification settings - Fork3
Scalable WebRTC Signaling Server with ayame-like protocol.
License
NotificationsYou must be signed in to change notification settings
castaneai/ayu
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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.
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))}
make testAbout
Scalable WebRTC Signaling Server with ayame-like protocol.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.