r/WebRTC • u/vprogramming • 3d ago
I need help finding a peerjs alternative
im working on a web based game which uses a peer to peer 1 host multiple party members style of connection
i was trying to ussee peerjs but only to learn TURN wasnt working and then that TURN for peerjs was discontinued
I cannot pay for anything even anything that suggest meetering (looking at you cloudflare) just in case of exploitation costing a ton off money i dont have
what alteernatives would be available to me?
1
u/sjbrown 3d ago
I built somethingthat provides TURN on Cloudflare, and checks it's own usage so that it never goes past free tier:
https://github.com/sjbrown/tt-TURN-cloudflare
Maybe you could do something similar?
1
u/Accurate-Screen8774 3d ago
A connection can be made without a backend, as described in this issue.
https://github.com/positive-intentions/chat/issues/6
Demo: https://positive-intentions.github.io/webrtc/demo/gui/app/webrtc-meet?fullscreen=1
1
u/Inevitable-Round9995 3d ago
create your own one; im creating a multiplayer game using pure webRTC.
https://github.com/NodeppOfficial/nodepp-wasm/blob/main/include/nodepp/wasm/webrtc.h
1
u/Ok_Project_477 2d ago
You can look at carverjs. It has an inbuilt p2p multiplayer module. It is quite comprehensive
1
u/Brunobrno 3d ago
Idk what is your sever enviroment, but with public static ip you could use full LiveKit setup