Archived
0

MCSM: успешный вывод консоли сервера в браузере

This commit is contained in:
2017-05-18 15:17:05 +03:00
parent b1054aab89
commit 37b8f02b69
7 changed files with 33 additions and 18 deletions

View File

@@ -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() {