Which happens first: socket update or database insert?

When traccar generates a 'deviceMoving event',
It does two things:
1.) Insert an event into events table
2.) Send the event via websocket

My questions are:
1.) What is the order of execution of the two?
2.) Is this order guaranteed or they happen in parallel?

Anton Tananaev7 years ago

The order is guaranteed for now. Events are saved in the database first.