you're right
i have just used node-websocket-server in serverside ;-)
i had a little ajax/polling application consist of two parts, client
is jquery polling requester and server side is a php actions actuator
with a set of features activated from GET parameters
i had used this code to interface this application php core with
nodejs websocket server. When the arrive ajax request in the php core
it forward the parameters to the websocket server.
however if the browser support websocket it open direct communication
with nodejs websocket server that forward parameters to the php
actuator.
in this mode i converted the application in hybrid of ajax and
websocket and the server side core of the application is remained
same!!
also if i think that actually it isn't very very good architecture,
but it works! :-)
I did this because I did not know if nodejs supports all the features
that my php actuator, for example: mysql connections, file permission
operations, management sessions and other that php resolve simply
the my second step is the convert my php application completely in
nodejs application!
On 20 Gen, 04:13, Micheil Smith <
mich...@brandedcode.com> wrote:
> For what it's worth, this is the node.js mailing list, not the php mailing list; that said,
> websockets change quite a lot, and rather then trying to implement a client or server,
> most times it's easier to use what pre-exists (unless you really understand the
> protocol or want to spend a lot of time on it).
>
> Try having a look at node-websocket-server, node-websocket-client and socket.io-node for example.
>
> Yours,
> Micheil Smith
> --
> BrandedCode.com
>
> On 20/01/2011, at 4:39 AM, stefanocudini wrote:
>
>
>
>
>
>
>
> > hi
>
> > I am a new in this group, i experiencing websocket connections using
> > php,nodejs for server side and using jquery for client side, soon i
> > hope to publish my simple experiments for others newbies.
> > for now i with this simple php script that i used to debug my apps
> > it's a simple client that send data to nodejs http.server and stamp
> > the response received
> > i hope that for someone it will be useful
>
> > Stefano
>
> > the code:
>
> > <?
> > /* Simple Websocket Client
> > copyleft Stefano Cudini 2011-01-19
> >
stefano.cud...@gmail.com