Testing WebSocket API with Postman

@jean jose, did you manage to test the Websocket API in Postman ?

yes...today I can interact with everything from traccar via API.
I have a completely custom UI attached to the company's ERP.

Track-tracea year ago

@jean jose de matos

Can you please show exactly how you do that with Postman.

baikunthareemal9 months ago

can somebody help me to test socket, I already got the session cookie but I cant figure out where to put the cookie

Anton Tananaev9 months ago
Navneet Choudhary2 months ago

I am testing socket api with postman: Here is the error i am getting
My session cookie is : JSESSIONID=node018r8s012tz53s1hv3dqjmuzyfo162116.node0

Could not connect to https://demo4.traccar.org/api/socket
01:45:02
Error: getaddrinfo ENOTFOUND https
Handshake Details
Request URL: http://https//demo4.traccar.org/api/socket
Request Method: GET
Request Headers
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: CEKietYjsqsB2X8LAeRpbg==
Connection: Upgrade
Upgrade: websocket
Cookie: JSESSIONID=node018r8s012tz53s1hv3dqjmuzyfo162116.node0
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Host: https
Online

Please help me figure out what i am doing wrong?
I have read somewhere that demo server will not work because of coars error is that so?