jmcker / Peer-to-Peer-Cue-System

Cue system for simple two-way communication and visual signaling using a PeerJS peer-to-peer connection.
MIT License
300 stars 127 forks source link

via PHP? #11

Closed emresaracoglu closed 4 years ago

emresaracoglu commented 4 years ago

Hello

Is it possible to send data with PHP?

Thanks

jmcker commented 4 years ago

You could certainly serve a website with PHP that allows visitors to use PeerJS. You could even serve this site by changing the file extensions and adding any PHP code that you want.

But to actually send data from your PHP server to a peer is not exactly the main use case of PeerJS or peer-to-peer in general. If all you're looking for is two-way communication between the PHP server and the client, you could check out something like WebSockets or a library like Ratchet that abstracts them for you.