connect using websocket error

ajeeb4 years ago

Hiii,

i develop front-end, so when i use connect using websocket all time failed.
i run traccar server in windows server. are i need to do some configration on server??
i set my token and i got error:
"HTTP 404 Not Found - WebApplicationException (SessionResource:96 < ...)" all time request 'GET' session?? what i miss?

i run and get some code from app.js in server web

thanks for help

Anton Tananaev4 years ago

It means that you are not logged in.

ajeeb4 years ago

thanks for reply

this is the code:

i tried add code here, but not upload.

i upload code screen in this link:
https://drive.google.com/drive/folders/1ZsO-K5AB3vyctOylYXVNKBya13pa--LA?usp=sharing

ajeeb4 years ago

any advice??

Anton Tananaev4 years ago

You can check this sample code that does work:

https://github.com/traccar/traccar-web/blob/master/web/simple/app.js