Sunday 15 April 2012

php - Can Websocket able to receive data from ajax? -



php - Can Websocket able to receive data from ajax? -

i trying building php , html5 websocket chat scheme 1 end socket , other end ajax. possible php's socket_recv() function receive info ajax/mysql or other source(which not send "send" method or socket)?

** want 1 end in ajax because still websocket not supported browser specially ie.

please help.

if you're not going utilize websockets on client end, don't need them on server side either. (indeed, can't utilize them unless both parties back upwards them.) ajax creates normal http requests; can handle them other request in php.

also, critically: php socket_ functions raw tcp/udp sockets, not websockets. websocket protocol considerably more complicated back upwards directly. php sockets can used in process of implementing websockets, it's much improve utilize library ratchet has done heavy lifting you.

php jquery ajax html5 websocket

No comments:

Post a Comment