Utilizing WebRTC as a transport for Netick. Allowing Developers to Utilize DTLS (Secure UDP) for WebGL and Native platform!
If you are new to WebRTC, check out the resources section down below
| Feature | Description | Status |
|---|---|---|
| Native Support | Based on the Unity WebRTC supported platform | Beta |
| WebGL Support | WebGL acting as a client | Beta |
Unity Editor version 2021 or later.
Install Netick 2 before installing this package. https://github.com/NetickNetworking/NetickForUnity
- UnityWebRTC 3.0.0-pre-8 (Core functionality)
- SimpleWebTransport (As Signaling Server) (UPM:
https://github.com/James-Frowen/SimpleWebTransport.git?path=source) - FlexTimer
- Newtonsoft Json Unity
- Open the Unity Package Manager by navigating to Window > Package Manager along the top bar.
- Click the plus icon.
- Select Add package from git URL
- Enter https://github.com/StinkySteak/NetickMultiplexTransport.git
- You can then create an instance by double clicking in the Assets folder and going to
Create > Netick > Transport > NetickWebRTCTransport
| API | Description |
|---|---|
| Timeout Duration | Define how long timeout will be called upon failed to connect |
| ICE Servers | URLs of your STUN/TURN servers |
Enable ConnectSecurely on the transport then, do one of these:
- This implementation of WebRTC is a little different from the others, where we run the Signaling server inside unity itself.
| Inside Unity | Seperate Process |
|---|---|
| More in control | Difficult to be controlled |
| Running host is not supported in browser | Running host may supported in browser |
| Require Port forward the Signaling server | Port forward can be handled by the cloud |
| Less overhead | More overhead |
| Recommended for Dedicated Server | Recommended for Client Hosted |

