Simplify structure of command messages
The first byte of a input message shows the type of that message. 0: normal keystrokes 1: resize window command
This commit is contained in:
@@ -24,11 +24,8 @@
|
||||
ws.send(
|
||||
"1" + JSON.stringify(
|
||||
{
|
||||
name: "resize_terminal",
|
||||
arguments: {
|
||||
columns: columns,
|
||||
rows: rows,
|
||||
},
|
||||
columns: columns,
|
||||
rows: rows,
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user