MCSM: успешный вывод консоли сервера в браузере
This commit is contained in:
@@ -81,7 +81,7 @@ var WebConsole = React.createClass({
|
||||
this.ws.onclose = function(){ console.debug('WS: close...'); };
|
||||
this.ws.onerror = function(e){ console.debug('WS: error'); console.error(e); };
|
||||
this.ws.onmessage = function(event){
|
||||
_this.setState({ lines: _this.state.lines.concat([event.data]) });
|
||||
_this.setState({ lines: _this.state.lines.concat([event.data]) }); //TODO необходимо ограничить кол-во строк
|
||||
};
|
||||
},
|
||||
disconnect: function() {
|
||||
|
||||
Reference in New Issue
Block a user