PantelisGeorgiadis / dcmjs-dimse

DICOM DIMSE implementation for Node.js using the dcmjs library
MIT License
74 stars 14 forks source link

Sending cEcho from browser to SCP #37

Closed syed-qure closed 1 year ago

syed-qure commented 1 year ago

I followed this example of sending a cEcho request from browser to a locally running scp server and I'm getting the following error.

Any help is much appreciated

Screenshot 2023-01-19 at 12 36 19 PM
PantelisGeorgiadis commented 1 year ago

Hello @syed-qure! As far as I know, there's no TCP socket implementation for the browser. This is only available in Node.js. I think that what you are trying to achieve, is not currently possible, at least not directly.

syed-qure commented 1 year ago

Can you suggest how I can achieve this?

PantelisGeorgiadis commented 1 year ago

Hi @syed-qure! There are options but the majority (if not all) of them require a back-end that would act as a proxy to your socket communication. Check this.

syed-qure commented 1 year ago

Thank you @PantelisGeorgiadis. I am just calling my scu server to echo modality.