apache - Direct or indirect contact, between web client and socket server without using Node.js -
- information socket server needs passed client. (and vice versa)
- the client doesn't have reload page.
- each client needs have own (indirect) connection.
- a connection socket server cannot broken.
- i'd rather not use node.js
i haven't come across solutions here don't involve node.js. ajax doesn't seem option because breaks connection. have send requests php page , keep track of client send data back, not good, way recource intensive.
has got ideas, should use?
btw: socket.io seems good, involves node.js. host doesn't support , i'd need learn first. i'd rather find else.
creating connection directly client socket server better, don't think clients can user browsers connect socket server doesn't use get/post etc.
the way open continous socket browser using websockets api. api uses websocket protocol enable bi-directional continous sockets opened browser. cannot open socket server though, need connect server capable of speaking websocket protocol.
node.js commonly used create websocket servers because there existing tools make job easy such socket.io, not required. ratchet php based server if more familar that. modify existing server application speak protocol , connect directly.
Comments
Post a Comment