PHP websocket server

Status
Not open for further replies.

brb5548

Member
Sep 26, 2018
53
9
8
46
@markjcrane I want to develop a websocket html5 client (preferably with some fallback to long polling). Do you have any suggestions on how to build this within php? I use websocket pretty heavily with Java, c# and node but I am a little unclear how to best implement something like this in PHP. A simple php server might do the job but I would like to hear if you have any thoughts.
On a side note I did look at mod_verto and mod_rtc and they look promising but I think there is a big need for websocket support in fusion outside of just webrtc.
 

markjcrane

Active Member
Staff member
Jul 22, 2018
503
178
43
49
I realize that there is a need for this and work is progressing on it.
 

brb5548

Member
Sep 26, 2018
53
9
8
46
If you have any insights on your approach, I would love to hear. Really appreciate it.
 

markjcrane

Active Member
Staff member
Jul 22, 2018
503
178
43
49
Not sure what insights you want. Every language that can do network sockets can do web sockets. This means its possible in many languages including PHP. However is PHP the best language for a web socket server?

I'm more open to contributors that are helping fix bugs and adding features and improving code and then contributing it back directly to the project.
 

brb5548

Member
Sep 26, 2018
53
9
8
46
I am looking to contribute but I don't want to develop something that isn't inline with the project. I personally would probably prefer to build a web socket solution outside of php with angular but that wont fit with the overall project and supporting ESL connections in yet another codebase doesn't sound appealing.
With this being said; I guess the best place to start is a stand alone php based web socket server so we can consume it in places where we need and I am struggling to determine if I should use something like rachet or other framework to build the wss or try to build something from the ground up.
 

markjcrane

Active Member
Staff member
Jul 22, 2018
503
178
43
49
I have a php websocket server I have been playing with but I want a more scalable solution so I'm working on something that can handle larger loads.
 

brb5548

Member
Sep 26, 2018
53
9
8
46
I started with ratchet and seems to be just fine. Ulimit settings can impact scaling but could be changed. Thoughts?
 
Status
Not open for further replies.