How feasible is it to translate this Ruby websocket server to PHP?
http://github.com/gimite/web-socket-ruby/blob/master/lib/web_socket.rb
I know a little bit of Ruby and a decent amount of PHP, thought I've never done socket programming. I'd like to build a chat app on top of what gimite has put up on git, but all my sites are in PHP. How hard do you guys think it would be to rewrite those 300 lines in PHP?
Is it possible? If it is, will it be difficult? What would be the most difficult part? Would PHP take any performance hits? Am I better off trying to integrate that Ruby server into my PHP site by moving session management into the DB instead of attempting to translate it?
Thank you for your time.