Peer-to-peer file sharing with Web Sockets

前端 未结 2 720
孤城傲影
孤城傲影 2020-12-06 23:20

This is sort of a theoretical question, however, I need to add file sharing capabilities to my web socket powered chat application. I could use a service like Amazon S3 to u

相关标签:
2条回答
  • 2020-12-06 23:39

    To allow files to be shared without the need to upload it to the server, (i.e Coworkers) you can now use the WebRTC DataChannel API, to create a peer to peer connection.

    0 讨论(0)
  • 2020-12-06 23:59

    Here's an example of a project that uses only Web Sockets and the javascript File API for transferring files: http://www.github.com/thirtysixthspan/waterunderice

    0 讨论(0)
提交回复
热议问题