Comments (2)
I guess you are referring to data channels here. Connection loss is detected after a number of failed retransmissions which can be changed with maxRetransmitAttempts
(default is 5). When no data is transmitted between peers, heartbeats are sent instead of data at a time interval heartbeatInterval
(default is 10s).
You can shorten the heartbeat interval prior to creating a peer connection:
rtc::SctpSettings settings = {};
settings.heartbeatInterval = std::chrono::milliseconds(1000); // 1s
rtc::SetSctpSettings(std::move(settings));
from libdatachannel.
Got the idea, that's what I was looking for! Thanks!
from libdatachannel.
Related Issues (20)
- WebSocket::path() returns nullopt when state is Connecting HOT 2
- Mixed up dynamic and static libjuice dependencies HOT 1
- Source directory requires read/write filesystem during build HOT 3
- C API lacking proper closure support HOT 4
- Lost connectivity after successful connection HOT 7
- WebSocketServer not stopping properly HOT 2
- How to troubleshoot when the onGatheringStateChange function returns very slowly? HOT 1
- Websocket disconnect HOT 2
- Trouble connecting via TURN server HOT 1
- Does libdatachannel support to compile in pure C Linux system(for some embedded device no support C++17)? HOT 3
- rtc::PeerConnection::close() causes the application to crash when called multiple times HOT 1
- Unable to retrieve negotiated media details HOT 2
- crash HOT 4
- Data channels created by createDataChannel in a multithreaded may occasionally lose events HOT 3
- Expose remote TLS certificate for WebSocket
- copy-paste-capi
- PeerConnections fail after [rtc::impl::IceTransport::LogCallback@363] juice: conn_poll.c:311: poll failed, errno=10038 HOT 3
- how to handle 2-way video and identify incoming tracks
- DataChannel is destroyed,Stop in 10 seconds HOT 4
- Why does track default to !isClosed? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libdatachannel.