DEV Community

Discussion on: Asynchronous, Bidirectional Connected Chat App with SSE in PHP

Collapse
 
nielsbaloe profile image
nielsbaloe

I used it yesterday to make webRtc working on a shared PHP server. It works perfectly, although yes indeed I could not find this anywhere else on the web, nobody has done this before appearently. I'll even dare to use it in production when it is for short term or non-payed projects. See github.com/nielsbaloe/webrtc-php . Enjoy!

Collapse
 
volomike profile image
Mike Ross πŸ‡ΊπŸ‡Έ

Three questions I have with this:

  1. Can this be forked and changed to be a simple text chat app? So, instead of video/audio sharing, one does real-time sharing of text chat (think IRC chat)?

  2. Your example I assume is peer to peer. (It's late tonight and I don't have a buddy to test with until they come online tomorrow.) Can this be multi peer? So, for instance, 5 guys load this same web page and can chat with each other and see what everyone else has typed, not just a 2 person thing.

  3. What are the functions of the server besides handshake and downloading the source code? Is the rest done peer-to-peer? If so, then that would be ideal because that means that thousands can chat in realtime without loading down server resources. So, that's an interest of mine.

Collapse
 
volomike profile image
Mike Ross πŸ‡ΊπŸ‡Έ

And, not related to this, I wanted to suggest to you another PHP-based minimalist framework:

Painless - github.com/nopain/painless

...for your Github list you have on minimalist frameworks.