I want to get the response data using NodeJs in PIWEBAPI.
Please suggest how to start for the same.
sample code really appreciated..!
I found this but how to convert https:// url to wss://
Channels (Core Services)
I was trying following things:
The first step is to make sure channels is working properly by accessing a pre-built tool available at https://www.websocket.org/echo.html. If you are using Basic authentication, you might receive 401 errors after making the HTTP requests. In this case, open another tab on the browser, access PI Web API main endpoint, type your credentials, refresh the original web page and try again.
Here as mentioned, I tried and it is working fine:
You can try out this NPM package that allows you to make AJAX calls.
ajax-request - npm
Thanks, Eugene Lee.
for Replying. Actually, I am trying to fetch the data by using WebSocket in Node Js.
is there any suggestion for convert the https: URL into wss URL for the calling by any WebSocket.
Retrieving data ...