Last post Feb 20, 2016 07:51 PM by sudip_inn
Feb 15, 2016 06:11 PM|sudip_inn|LINK
i am using signalr for text based communication. i am looking for a js library which will go good with signalr and i should be able to send files between two signalr connections or chat users. please suggest possible way and library.
Feb 15, 2016 10:02 PM|Rion Williams|LINK
SignalR isn't really designed to be used with files, although there are many systems that use SignalR that do support similar functionality.
Basically, a user would upload a file (to the server), they would then receive an identifier response from the server (after the upload is complete), which corresponds to the location of the file, then a message would be sent from the user to the recipient
indicating a file was sent along with the link. The recipient would just need to click the link and access the file that the sender initially uploaded.
You shouldn't need a library to handle this behavior.
Feb 16, 2016 08:13 AM|sudip_inn|LINK
the way u have discussed share file between two user that is not peer to peer file transfer. i am looking for skype like file transfer. this can be done with webrtc but webrtc has some limitation that all browser does not support it and also i did not find
any file share example between two pc using webrtc searching google a lot.
so i am using signalr for text messaging and now i am looking for good guidance to share files between two user in real time. i am looking for webrtc and signalr usaged in same project to transfer files between two user. if u know how to work with webrtc
and signalr in same project to share files between two chat users then please give idea or code sample to achieve my goal. thanks
Feb 18, 2016 08:24 AM|Fei Han - MSFT|LINK
File.js is file sharing library that can be used with WebSockets/Socket.io or WebRTC data channels to share auto fragmented files, concurrently.
Feb 18, 2016 08:53 AM|sudip_inn|LINK
this link is broken
basically i have a chat apps with signalr and when two people talking in each other then i want user should be able to send file in each other too.
no logic is coming to my mind to achieve p2p file share in real time. if possible guide me. thanks
Feb 18, 2016 02:21 PM|shivigupta31web|LINK
Use this: https://www.sharefest.me/
strictly peer to peer file transfer.
Hope this helps, let me know if you need more help on this.
Feb 18, 2016 03:12 PM|sudip_inn|LINK
i have seen the url u gave but i want to send file to my friend who is connected in chat which is developed by signalr. so tell me how can i send file to my friend using that lib. i know my friend connection id which has been generated by signalr.
Feb 18, 2016 03:45 PM|Rion Williams|LINK
Again - SignalR isn't really designed to handle this type of behavior and processes like file uploads need to hit the server at some point (they have to be stored somewhere so that they can be served to the proper recipient).
The easiest and most common implementation of this would be to allow the user to specify a recipient, upload a file and then click send. Upon clicking send, the following actions will occur :
Feb 18, 2016 06:43 PM|sudip_inn|LINK
@Rion i understand that signalr is not right technology to send file like p2p way and for that i need to use another js technology which make it possible. so guide me how in signalr based chat which js p2p file transfer lib i should use to make it possible.
looking for your guidance.
Feb 18, 2016 08:04 PM|Rion Williams|LINK
I'm not sure what might be able to used in a peer-to-peer approach within a web application. I suppose you could try something like https://reep.io/, but I'm not sure if that is going to do what you need either.
Is there any reason that you are looking for explicit p2p? Or that the suggested approach would not work? It's important to remember that you are working in an actual web-development environment, so all of the features that might be present in desktop applications
(e.g. accessing anything outside of the browser) might not be available.
Feb 18, 2016 08:59 PM|sudip_inn|LINK
how to use it coz there is no tutorial like what code i need to add in my client side.
Feb 20, 2016 07:51 PM|sudip_inn|LINK
@Rion reep.io is angular based p2p file transfer lib but the person who do not know angular then how could he she use it ?
any similar p2p file transfer lib exist which we can use in our program when we do not know angular. thanks