Comments (2)
The onClient()
callback is triggered early, as soon as the client connects with TCP. This allows the server to react on the remote address, for instance. The path is available only after handshake is finished, which happens in parallel and probably won't be finished when onClient()
is scheduled. To be sure the path is available, you should read it in the onOpen()
callback, which is triggered after a successful handshake.
from libdatachannel.
With ws
module I can read it on-connection event
https://github.com/murat-dogan/node-datachannel/blob/63ec3215063931aae772f2acfa2c2199bfeca2b3/examples/client-server/signaling-server.js#L8
I can move it to onOpen
no problem, but it will be good to have the same behaviour for general use
from libdatachannel.
Related Issues (20)
- Gamestreaming
- windows client not work. HOT 11
- IOS uses usrsctp data transmission, usrsctp_bind returns an error. HOT 3
- Problem with H264RtpPacketizer HOT 5
- Update the remote description after SDP negotiation? HOT 6
- CMake script does not install STATIC library and static dependencies HOT 2
- Sending on Multiple Tracks HOT 3
- Websocket::Open crash HOT 2
- Error in build node-datachannel for webtorrent-cli HOT 2
- ABI issue when linking HOT 2
- RtpPacketizationConfig not properly initialized HOT 2
- setLocalDescription's Init parameter may not work. HOT 3
- The push function of the sendQueue in DataChannel will trigger wait and can not be awaked. HOT 3
- Client xxx not found 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
- Same STUN transaction IDs at the beginning of ICE connecting
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.