Should I use webRTC or socket.io for a text chat?saving a video/audio session created through webrtc peerConnectionWhat Protocol to use for chat? webRTC or WebsocketswebRTC HTML5 whiteboard/video chatWhich websocket library to use with Node.js?WebRTC vs Websockets: If WebRTC can do Video, Audio, and Data, why do I need Websockets?how to build multi-user video chatting web app using webRTC, node.js and socket.ioAdd text chat to webRTC audio/video chatsave text chat in the server with architecture of webrtc+socket.io+nodejsSocket.io vs RTCDataChannel, as Signalling Servers?webRTC working example, multiple video chat

Minimizing expected brier score and Brier score interpretation

Received a dinner invitation through my employer's email, is it ok to attend?

How can I deal with a player trying to insert real-world mythology into my homebrew setting?

Shortest distance around a pyramid?

When casting Eldritch Blast with the Agonizing Blast eldritch invocation, what do I add to my damage roll?

Cops: The Hidden OEIS Substring

Should I intentionally omit previous work experience when applying for jobs?

Is anyone advocating the promotion of homosexuality in UK schools?

Why were Er and Onan punished if they were under 20?

How can one write good dialogue in a story without sounding wooden?

During copyediting, journal disagrees about spelling of paper's main topic

Is "take care'n of" correct?

How to say "to make my heart sing"

Is "My neighbor Mr. Lee is 70 years old who plays basketball every day." grammatical?

Is lack of functional requirements agile?

Why was hardware diversification an asset for the IBM PC ecosystem?

Print the last, middle and first character of your code

Why isn't pressure filtration popular compared to vacuum filtration?

Book where the stars go black due to aliens stopping human observation collapsing quantum possibilities

How would vampires avoid contracting diseases?

How to achieve this rough borders and stippled illustration look?

Single word for "refusing to move to next activity unless present one is completed."

Referring to different instances of the same character in time travel

Is there a word for a message that is intended to be intercepted by an adversary?



Should I use webRTC or socket.io for a text chat?


saving a video/audio session created through webrtc peerConnectionWhat Protocol to use for chat? webRTC or WebsocketswebRTC HTML5 whiteboard/video chatWhich websocket library to use with Node.js?WebRTC vs Websockets: If WebRTC can do Video, Audio, and Data, why do I need Websockets?how to build multi-user video chatting web app using webRTC, node.js and socket.ioAdd text chat to webRTC audio/video chatsave text chat in the server with architecture of webrtc+socket.io+nodejsSocket.io vs RTCDataChannel, as Signalling Servers?webRTC working example, multiple video chat






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-1















I'm working on a node project and want to create a text chat between multiple users. So, more than 2 users in the chat.



I can't seem to figure out what approach is best: using socket.io (example of a text chat right here: https://socket.io/get-started/chat/ or webRTC. When I try to look for a webRTC example of text chat, I find links to video chat or a 1-1 text chat which uses sockets.



Which one should I use for a text chat?










share|improve this question




























    -1















    I'm working on a node project and want to create a text chat between multiple users. So, more than 2 users in the chat.



    I can't seem to figure out what approach is best: using socket.io (example of a text chat right here: https://socket.io/get-started/chat/ or webRTC. When I try to look for a webRTC example of text chat, I find links to video chat or a 1-1 text chat which uses sockets.



    Which one should I use for a text chat?










    share|improve this question
























      -1












      -1








      -1








      I'm working on a node project and want to create a text chat between multiple users. So, more than 2 users in the chat.



      I can't seem to figure out what approach is best: using socket.io (example of a text chat right here: https://socket.io/get-started/chat/ or webRTC. When I try to look for a webRTC example of text chat, I find links to video chat or a 1-1 text chat which uses sockets.



      Which one should I use for a text chat?










      share|improve this question














      I'm working on a node project and want to create a text chat between multiple users. So, more than 2 users in the chat.



      I can't seem to figure out what approach is best: using socket.io (example of a text chat right here: https://socket.io/get-started/chat/ or webRTC. When I try to look for a webRTC example of text chat, I find links to video chat or a 1-1 text chat which uses sockets.



      Which one should I use for a text chat?







      websocket socket.io webrtc






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 3:18









      user2719875user2719875

      5,37818 gold badges66 silver badges145 bronze badges




      5,37818 gold badges66 silver badges145 bronze badges






















          2 Answers
          2






          active

          oldest

          votes


















          0














          WebRTC is a point 2 point link (although it can go through server). If you want multiple users on single chat, WebSockets might be the right approach for you. With WebRTC you might need to create a link between each 2 users, and that is a pain.
          Anyway, if you use Azure maybe SignalR Service is the right answer, depending on you scalability needs.






          share|improve this answer






























            0














            WebRTC is Peer-to-Peer and is mainly emphasized on video/audio streaming. It can be used for multiple users, but that would result in a complicated structure like mesh structure. Based on your situation, I would recommend a simpler server-based solution, for example, the one you mentioned: Socket.io.



            It's completely possible to implement what you said with WebRTC, but it would be complicated and not very suitable for your situation (text-only).



            I recommend you to look more into WebRTC if you are still interested in it, it's great but it doesn't fit your current need very well.






            share|improve this answer

























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55349347%2fshould-i-use-webrtc-or-socket-io-for-a-text-chat%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              WebRTC is a point 2 point link (although it can go through server). If you want multiple users on single chat, WebSockets might be the right approach for you. With WebRTC you might need to create a link between each 2 users, and that is a pain.
              Anyway, if you use Azure maybe SignalR Service is the right answer, depending on you scalability needs.






              share|improve this answer



























                0














                WebRTC is a point 2 point link (although it can go through server). If you want multiple users on single chat, WebSockets might be the right approach for you. With WebRTC you might need to create a link between each 2 users, and that is a pain.
                Anyway, if you use Azure maybe SignalR Service is the right answer, depending on you scalability needs.






                share|improve this answer

























                  0












                  0








                  0







                  WebRTC is a point 2 point link (although it can go through server). If you want multiple users on single chat, WebSockets might be the right approach for you. With WebRTC you might need to create a link between each 2 users, and that is a pain.
                  Anyway, if you use Azure maybe SignalR Service is the right answer, depending on you scalability needs.






                  share|improve this answer













                  WebRTC is a point 2 point link (although it can go through server). If you want multiple users on single chat, WebSockets might be the right approach for you. With WebRTC you might need to create a link between each 2 users, and that is a pain.
                  Anyway, if you use Azure maybe SignalR Service is the right answer, depending on you scalability needs.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 26 at 15:26









                  RonenRonen

                  1




                  1























                      0














                      WebRTC is Peer-to-Peer and is mainly emphasized on video/audio streaming. It can be used for multiple users, but that would result in a complicated structure like mesh structure. Based on your situation, I would recommend a simpler server-based solution, for example, the one you mentioned: Socket.io.



                      It's completely possible to implement what you said with WebRTC, but it would be complicated and not very suitable for your situation (text-only).



                      I recommend you to look more into WebRTC if you are still interested in it, it's great but it doesn't fit your current need very well.






                      share|improve this answer



























                        0














                        WebRTC is Peer-to-Peer and is mainly emphasized on video/audio streaming. It can be used for multiple users, but that would result in a complicated structure like mesh structure. Based on your situation, I would recommend a simpler server-based solution, for example, the one you mentioned: Socket.io.



                        It's completely possible to implement what you said with WebRTC, but it would be complicated and not very suitable for your situation (text-only).



                        I recommend you to look more into WebRTC if you are still interested in it, it's great but it doesn't fit your current need very well.






                        share|improve this answer

























                          0












                          0








                          0







                          WebRTC is Peer-to-Peer and is mainly emphasized on video/audio streaming. It can be used for multiple users, but that would result in a complicated structure like mesh structure. Based on your situation, I would recommend a simpler server-based solution, for example, the one you mentioned: Socket.io.



                          It's completely possible to implement what you said with WebRTC, but it would be complicated and not very suitable for your situation (text-only).



                          I recommend you to look more into WebRTC if you are still interested in it, it's great but it doesn't fit your current need very well.






                          share|improve this answer













                          WebRTC is Peer-to-Peer and is mainly emphasized on video/audio streaming. It can be used for multiple users, but that would result in a complicated structure like mesh structure. Based on your situation, I would recommend a simpler server-based solution, for example, the one you mentioned: Socket.io.



                          It's completely possible to implement what you said with WebRTC, but it would be complicated and not very suitable for your situation (text-only).



                          I recommend you to look more into WebRTC if you are still interested in it, it's great but it doesn't fit your current need very well.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 26 at 21:41









                          jackz314jackz314

                          1,4046 silver badges28 bronze badges




                          1,4046 silver badges28 bronze badges



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55349347%2fshould-i-use-webrtc-or-socket-io-for-a-text-chat%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                              용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                              155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해