@@ -29,7 +29,7 @@ ClassMethod Execute (client As WebTerminal.Engine, data, bareStart As %Boolean =
29
29
do client .SendChunk (client .corePID , " m" , command )
30
30
loop
31
31
for {
32
- set message = client .ReceiveChunk (0 ) // we need to read from WebSocket as well: timeout = 0
32
+ set message = client .ReceiveChunk (0 , 1 ) // read from WebSocket as well: timeout = 0
33
33
if ($LISTGET (message , 3 ) < 0 ) {
34
34
return $$$ERROR($$$GeneralError, " %cpTerm" )
35
35
}
68
68
do client .SendChunk (client .corePID , " m" , mes .d )
69
69
}
70
70
} elseif (flag = " e" ) {
71
- set client .childNamespace = $LISTGET (chunk , 1 )
72
- set err = $LISTGET (chunk , 2 )
71
+ set err = " "
72
+ if $ListValid (chunk ) {
73
+ if ($LISTGET (chunk , 1 ) '= " " ) {
74
+ set client .childNamespace = $LISTGET (chunk , 1 )
75
+ }
76
+ if ($LISTGET (chunk , 2 ) '= " " ) {
77
+ set err = $LISTGET (chunk , 2 )
78
+ }
79
+ }
73
80
if $IsObject (data ) && (data .bufferOutput = 1 ) {
74
81
do client .outputBuffer .Write (err )
75
82
quit // break for loop
@@ -114,7 +121,7 @@ ClassMethod Update (client As WebTerminal.Engine, URL As %String)
114
121
ClassMethod LocalAutocomplete (client As WebTerminal .Engine , data )
115
122
{
116
123
do client .SendChunk (client .corePID , " a" )
117
- set list = $LISTGET (client .ReceiveChunk (), 2 )
124
+ set list = $LISTGET (client .ReceiveChunk (, 1 ), 2 )
118
125
set obj = ##class (%ZEN.proxyObject ).%New ()
119
126
for i =3 :3 :$LISTLENGTH (list ) {
120
127
set obj2 = ##class (%ZEN.proxyObject ).%New ()
@@ -153,7 +160,7 @@ ClassMethod ClassMemberAutocomplete (client As WebTerminal.Engine, data As %ZEN.
153
160
ClassMethod MemberAutocomplete (client As WebTerminal .Engine , data As %ZEN .proxyObject ) As %Status
154
161
{
155
162
do client .SendChunk (client .corePID , " a" )
156
- set list = $LISTGET (client .ReceiveChunk (), 2 )
163
+ set list = $LISTGET (client .ReceiveChunk (, 1 ), 2 )
157
164
set isOref = 0
158
165
set value = " "
159
166
for i =3 :3 :$LISTLENGTH (list ) {
0 commit comments