@@ -29,7 +29,7 @@ ClassMethod Execute (client As WebTerminal.Engine, data, bareStart As %Boolean =
2929 do client .SendChunk (client .corePID , " m" , command )
3030loop
3131 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
3333 if ($LISTGET (message , 3 ) < 0 ) {
3434 return $$$ERROR($$$GeneralError, " %cpTerm" )
3535 }
6868 do client .SendChunk (client .corePID , " m" , mes .d )
6969 }
7070 } 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+ }
7380 if $IsObject (data ) && (data .bufferOutput = 1 ) {
7481 do client .outputBuffer .Write (err )
7582 quit // break for loop
@@ -114,7 +121,7 @@ ClassMethod Update (client As WebTerminal.Engine, URL As %String)
114121ClassMethod LocalAutocomplete (client As WebTerminal .Engine , data )
115122{
116123 do client .SendChunk (client .corePID , " a" )
117- set list = $LISTGET (client .ReceiveChunk (), 2 )
124+ set list = $LISTGET (client .ReceiveChunk (, 1 ), 2 )
118125 set obj = ##class (%ZEN.proxyObject ).%New ()
119126 for i =3 :3 :$LISTLENGTH (list ) {
120127 set obj2 = ##class (%ZEN.proxyObject ).%New ()
@@ -153,7 +160,7 @@ ClassMethod ClassMemberAutocomplete (client As WebTerminal.Engine, data As %ZEN.
153160ClassMethod MemberAutocomplete (client As WebTerminal .Engine , data As %ZEN .proxyObject ) As %Status
154161{
155162 do client .SendChunk (client .corePID , " a" )
156- set list = $LISTGET (client .ReceiveChunk (), 2 )
163+ set list = $LISTGET (client .ReceiveChunk (, 1 ), 2 )
157164 set isOref = 0
158165 set value = " "
159166 for i =3 :3 :$LISTLENGTH (list ) {
0 commit comments