websocket js should honor app socket port configuration

This commit is contained in:
Michael Nutt 2010-09-16 15:07:39 +08:00 committed by Diaspora
parent e18b8f0698
commit cd9639cf29

View file

@ -9,7 +9,7 @@
$(document).ready(function(){
function debug(str){ $("#debug").append("<p>" + str); };
ws = new WebSocket("ws://#{request.host}:8080/#{CGI::escape(current_user.id.to_s)}");
ws = new WebSocket("ws://#{request.host}:#{APP_CONFIG[:socket_port]}/#{CGI::escape(current_user.id.to_s)}");
//Attach onmessage to websocket
ws.onmessage = function(evt) {