errors
This commit is contained in:
parent
4fdfd7d55e
commit
ab715d0ef7
@ -47,8 +47,12 @@ function TerminalComponent (p: {websocket: string|null}) {
|
|||||||
|
|
||||||
const socket = new WebSocket(websocket);
|
const socket = new WebSocket(websocket);
|
||||||
|
|
||||||
|
socket.onerror = (ev)=>{
|
||||||
|
console.log(ev)
|
||||||
|
}
|
||||||
|
|
||||||
socket.addEventListener('open', () => {
|
socket.addEventListener('open', () => {
|
||||||
// socket.send(JSON.stringify({CommandType: 'resize', Arguments: [terminal.current?.rows, terminal.current?.cols]}));
|
socket.send(JSON.stringify({CommandType: 'resize', Arguments: [terminal.current?.rows, terminal.current?.cols]}));
|
||||||
});
|
});
|
||||||
|
|
||||||
terminal.current.onResize(({cols, rows})=>{
|
terminal.current.onResize(({cols, rows})=>{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user