Home

Member Area

Donation

Poll

Is JsRS easy to setup?
 

JavaScript Remote Socket

JavaScript Remote Socket (JsRS in short) is a simple and yet flexible framework that allowed you to build live web application easily.

The JsRS is using native JavaScript code in the client-side and JSON as the communication protocol. You are now able to build an online live application without knowing what is SQL!

 

JavaScript Remote Socket required a socket server. The socket server was written using the PHP's socket extension. The socket server is nothing more than just a .php file. You have to kick start it in the command-line and you are ready to go. Please refer to the documentation on how to setting it up.

 

The socket server will redirect your message to the correct recipient and provide information about the clients. Client may request information by calling the functions available in the socket server. Please check out the server's API for more details.

 

JavaScript Remote Socket is using the listening method for receiving message. In other word, the client (JavaScript) will send a request to the server and wait for its incoming message. It is similar to most of the client-server based application, connect and listen.

 

Using the listening method, the framework can simulate like an instant live application. Unlike other live application framework, JavaScript Remote Socket do not need to wait and pull the message on certain interval of time. The message will be delivered immediately to the client.

 

JavaScript Remote Socket is using the "proxy" to pass over the message to the server. The proxy will do the necessary permission checking based on the application that you're developing. The proxy is used to define the permission of the client and to determine what operations can be used by the client.

 

Besides, the proxy is used bypass most of firewall and anti-virus program by using the standard HTTP protocol (port 80). If the client was connect to the server directly, the application could be blocked by the internal firewall or anti-virus. Besides, it is much safer that using the HTTP protocol to transmit the message (You can even use https for your message).

 

If you are interested more on how it's work, please refer to the full documentations.

Last modified on Sunday, 26 September 2010 18:29