The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
ws
This plugin loads ( or sends ) a data on Web Sokets, and inject the load data into the DOM. like as $.ajax, $(selector).load ( You can send a cross-message to Remote resources -> Sample ) *eg. need Browser Chrome 4.0.249.0 + , And need Web Sockets Server (This sample use apache + mod_pywebsocket and websocketsample )
== mini chat sample 1 ==
<script src="./jquery-1.3.2.min.js"></script>
<script src="./jquery.ws-0.3pre.js"></script>
<input id="msg" type="text" value="">
<button id="send">send</button>
<div id="board"></div>
<script type="text/javascript">
var wsoj=$.ws.conn({
url : "ws://example.com/mytest",
onopen : function(e){
$("#board").prepend("conected");
},
onmessage : function(msg,wsoj){
$("#board").prepend(msg)
},
onclose : function(e){
$("#board").prepend("closed");
}
});
$("#send").click(function(){
$(wsoj).wssend($("#msg").val())
});
</script>
| Update
| Sample1 | Sample2 |
Pre source jquery.ws-0.3-noenc-pre.js
