Socket and Web socket architecture for php. Also for sydc protocol