gluon/contrib/comet_messaging.py -> gluon/contrib/websocket_messaging.py

This commit is contained in:
mdipierro
2012-09-24 16:21:11 -05:00
parent c6d1e47226
commit 630dcb799e
3 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ function web2py_component(action, target, timeout, times){
web2py_ajax_page('get', action, null, target);
} }); }
function web2py_comet(url,onmessage,onopen,onclose) {
function web2py_websocket(url,onmessage,onopen,onclose) {
if ("WebSocket" in window) {
var ws = new WebSocket(url);
ws.onopen = onopen?onopen:(function(){});