Traccar server is not sending events data via web socket API

Bo 6 years ago

I have upgraded my traccar server to version 4.8. After that, the notification doesn't work now.
So I checked web socket message content on my web browser. I noticed the server isn't sending events data to my web app.
Only sending data about devices and positions.
It worked well with 4.6 version.
Who can help me? I have a default traccar.xml file and didn't change anything.
Web socket message picture

Anton Tananaev 6 years ago

Have you enabled the web notifications?

Bo 6 years ago

Hi, Anton. Thank you for your reply.
I enabled web notification on my web panel.

Anton Tananaev 6 years ago

You must be missing something.

Bo 6 years ago

It is related to web socket data?

Anton Tananaev 6 years ago

Notifications are delivered via WebSocket, if that's what you are asking.

Bo 6 years ago

Why can't I see events data on web socket messages?
It is only including data about devices and positions.

Bo 6 years ago

There is no data about Events in WebSocket API.
So also notification is not working now.
I think if there is data about Events on WebSocket API, It will work well.
Problem is Events data now. This is right? or I am missing now?

Anton Tananaev 6 years ago

WebSocket events and web notifications are the same thing.

Bo 6 years ago

Yes. You are right.

Bo 6 years ago

Why can't I see WebSocket events?
What is reason?

Bo 6 years ago
Anton Tananaev 6 years ago

Probably because something is misconfigured.

Bo 6 years ago

You mean default.xml file? or other configure?

Anton Tananaev 6 years ago

Can be many things.