disconnect / apache-websocket

Apache WebSocket module
Apache License 2.0
196 stars 46 forks source link

SetHandler PHP File #21

Open liviu-brandup opened 11 years ago

liviu-brandup commented 11 years ago

Hi. Is there a way of directing the request to a PHP file on "SetHandler" directive? If yes, could you please detail the procedure?

Thanks in advance!

disconnect commented 11 years ago

It depends on whether you want to redirect the requests to another WebSocket server or you want to redirect specific requests to specific PHP files. If it is the latter, I don't have an answer for you. For the former, I have written a WebSocket proxy that I haven't pushed yet. It will allow you to proxy WebSocket connections to another WebSocket server. It works, but it needs to be polished for general consumption. However, I haven't had any time to work on it for the last few weeks.

vkuznet commented 11 years ago

I'll be really interested to test former case when proxy redirect requests to another WebSocket server.

liviu-brandup commented 11 years ago

Thanks for your kind answer. The proxy solution sounds really nice. I'm looking forward to using it.