Robert Cemper · Jul 17, 2025 go to post

I wonder how you expect to know that your input is complete without any terminator.
And according to your example, you also don't have a fixed length:
Withoit an clear signal timeout seems to be the only way to know you are complete.
You may read input character by character without guarantee  
how do decide for 1 or 10 or 100 or 1000  ?
Some ending character (eg. not numeric) or a fixed length is required

Robert Cemper · Jul 17, 2025 go to post

Confirmed. I just checked:

  • containers.intersystems.com/intersystems/iris-community:2025.1
  • containers.intersystems.com/intersystems/iris-community:latest-cd

license valid to 4/6/2026

Robert Cemper · Jul 17, 2025 go to post

The correct syntax is &html <   your  content  >

I didn't detect the closing > in your screenshot

It generates:
Write "  your content  "
in the resulting .int code
Just the same as it did in Caché or Ensemble
created with NPI

Robert Cemper · Jul 16, 2025 go to post

My personal preference would be

  • verify Websockets with a js client (even in CSP)
  • then move it to IRIS with all hidden and default features if required at all.

You may check all the old WS examples in OEX

Robert Cemper · Jul 16, 2025 go to post

Hi 

your code
Set WebSoc=##class(%Net.WebSocket.Client).%New(WebSocURL,cre,evl)   
Just uses the Default %Net.HTTPrequest that contains url port, ....
But %New offers more
• Methode %OnNew(pURL As %String, pCredentials As %Net.WebSocket.ICredentials = $$$NULLOREF, pEventListener As %Net.WebSocket.IEventListener = $$$NULLOREF, pAcceptedProtocols As %String = "", pRequest As %Net.HttpRequest = $$$NULLOREF) als %Status
and in %Net.HTTPrequest you have a property port
https://docs.intersystems.com/iris20251/csp/documatic/%25CSP.Documatic.cls?LIBRARY=%25SYS&PRIVATE=1&CLASSNAME=%25Net.HttpRequest
I never needed it as protocol ws and wss was sufficient.
But there is no other place for a port to be assigned
 

Robert Cemper · Jul 16, 2025 go to post

You mentioned:

WebSockets are enabled on ports 80 & 443, but the code fails

Websockets work bi-directional
SO: Did you assign / map  those ports also in your docker-compose ?

Robert Cemper · Jul 14, 2025 go to post

Docker  build fails :

ERROR MESSAGE
! iris The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested 0.0s
✔ Container docker-setup-1

The required Platform is not mentioned as a Prerequisite

Is it also available for amd64 processors ?

Robert Cemper · Jul 11, 2025 go to post

Possible workaround:
 

$ListToString(%DLIST(DISTINCT(REPLACE(ARCIM_Desc,'<br/>',''))),'<br/>') as"ARCIM_Desc", 
Robert Cemper · Jul 11, 2025 go to post

Details on $LISTTOSTRING  
Your source seems to contain the <br/>
Try a different separator e.g. @ to verfiy it.
If it is in and you can see it, HTML tags < > might be escaped for some reason and not be
recognized but displayed as text instead
 

Robert Cemper · Jul 9, 2025 go to post
	#; Recompute hash here now we have the lockSet hashval=$$$hash($lb($$ClassIndexTS^%SYS.cspServer2(db),$roles)_rangelist)

$ROLES of the user might also be involved in the issue

Robert Cemper · Jul 9, 2025 go to post

As a first step, I would check file/directory owner + protection in WINDOWS related to Studio Windows user
< DIRECTORY> is not so specific on the reasons

Robert Cemper · Jun 30, 2025 go to post

again YES !
Any expansion is related to an extension of the internal mapping structure of the  .DAT  file
written to disk If you don't have any restrictions on disk space, you consume the related
overhead in 1 single shot at a time that you control (e.g., startup)
 

Robert Cemper · Jun 27, 2025 go to post

A possible escape from that trap could be to use a dedicated box
That just runs TCPTRACE
So the message runs CLIENT -> BOX -> SERVER -> BOX -> CLIENT

Of course, a qualified network manager might use Wireshark for this issue
 

Robert Cemper · Jun 25, 2025 go to post

In short: 

  • Index ZipIDX On (City,State)  sorts by 2 levels City and State and holds a pointer to the  referred record
  • Index ZipIDX On ZipCode [ Data = (City,State) ] sorts just by ZipCode and holds a pointer to the  referred record but also a copy of City and State This is faster if all you want is to map ZIP to City, State and have no need to access what else is in your record
Robert Cemper · Jun 25, 2025 go to post

Assuming you have full access to your Windows you may take this approach.

  • install TCPTRACE as a local forward
  • it shows you what it gets from Caché
  • and passes it along to your target system
  • you can be sure it knows the network mechanics
  • if you see your text, but no reply you most likely
  • are a victim of Windows firewalls
    • OUTGOING on your end,
    • INCOMING at the target system
    • OUTGOING for the target reply
    • INCOMING from the target on your side
  • So in the worst case, you need 4 explicit rules ! 
  • Adding TCPTRACE on the target system also improves insight on the other end
Robert Cemper · Jun 25, 2025 go to post

You are right,  The example defines 
Class WSCI.CRE Extends (%RegisteredObject, %Net.WebSocket.ICredentials)
but doesn't use it,
According to the class definition of 
%Net.WebSocket.Client you pass it as a parameter
in the %New() method.

 so you code (extending my example may look like this:

set cre=##class(WSCI.CRE).%New()
#; feed whatever your credentials need 	
#; init connection 	set ws=##class(%Net.WebSocket.Client).%New(url,cre,evl)

It might be worth checking what class %Net.WebSocket.Client does with your credentials

Robert Cemper · Jun 24, 2025 go to post

It would be great to get all the code from Github be published on OpenExchange

Robert Cemper · Jun 24, 2025 go to post

Dmitry, you are just great.
And you impressed me over and over again.
Thank you for sharing your knowledge and your passion 

Robert Cemper · Jun 20, 2025 go to post

Point 2. of the previous reply is definitely WRONG!

Point 4. takes that back in some way but leaves it ambiguous.

Using extended Global References (also in Class Storage Definitions)
allows access to any mounted DB if you have access rights.

A personal example:

USER>for i=1:1:5set ^|"^^C:\InterSystems\IRIS242\mgr\nonspace"|rcc(i)=i
 
USER>zwrite ^|"^^C:\InterSystems\IRIS242\mgr\nonspace"|rcc
^|"^^C:\InterSystems\IRIS242\mgr\nonspace"|rcc(1)=1
^|"^^C:\InterSystems\IRIS242\mgr\nonspace"|rcc(2)=2
^|"^^C:\InterSystems\IRIS242\mgr\nonspace"|rcc(3)=3
^|"^^C:\InterSystems\IRIS242\mgr\nonspace"|rcc(4)=4
^|"^^C:\InterSystems\IRIS242\mgr\nonspace"|rcc(5)=5
USER>

I learned this traditional technique  47 years ago. 
And it still works fine.
 

Robert Cemper · Jun 20, 2025 go to post

straight ObjectScript 

USER>if$d(^|"%SYS"|CONFIG("Namespaces"," ")) ;; position $ZR in CONFIG
 
USER>forset ns=$o(@$ZR) quit:ns=""zwrite ns  ; list it
ns="%SYS"
ns="SAMPLES"
ns="USER"
 
USER>

BINGO !