subins2000 / Francium-DiffSocket

A PHP Library for serving Multiple WebSocket Services in a single server
Apache License 2.0
3 stars 4 forks source link

How can i make a client in php just like in js #2

Closed finguer closed 7 years ago

finguer commented 7 years ago

var conn = new WebSocket('ws://ip:port?service=fa'); conn.send('Hello favio!');

subins2000 commented 7 years ago

See this example :

https://github.com/subins2000/Francium-DiffSocket/blob/master/tests/services/HelloWorld.php

https://github.com/subins2000/Francium-DiffSocket/blob/master/tests/start-server.php#L9