Replies: 4 comments 2 replies
-
I tried to use node-datachannel with bun. It seems there is a problem with udp, most of the time it does not work giving you a WebRTC Error but sometimes it suddenly does. |
Beta Was this translation helpful? Give feedback.
-
Yes, working with any realtime low latency data requires webrtc at the minimum to be able to send data over udp. I am unable to use BUN because of this small requirement. Hoping to see updates soon. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Are you suggesting I use BUN's FFI to interact with libdatachannel to run it as subprocess? . I believe that will also make the performance better compared to node-datachannel. I haven't worked much on writting wrappers to other languages before maybe thats why I didnt think about it from the top of my mind. By doing so can I still interface with existing js libraries for signalling?. Do you have any specific pointers or process for how I should approach this? |
Beta Was this translation helpful? Give feedback.
-
There are use cases (like P2P via WebRTC) that would make Bun the tool of choice for many projects because of it's simplicity and performance. Node has node-datachannel that uses libdatachannel library.
Bun is using blazing fast uWebSockets networking library. It seems porting or implementing WebRTC feature in Bun would add incredible value to the project and speed up adoption.
Beta Was this translation helpful? Give feedback.
All reactions