Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample cars positions update service

npm run server

Will start the service on port 8080 (you're free to change the port) and will accept socket.io connections using default settings.

On initial connection the socket.io client will receive cars event with all cars in the following format:

[
{"id":7,"name":"Car 7","lat":54.629796087903216,"lng":18.900004673694244},
{"id":6,"name":"Car 6","lat":54.726860675942255,"lng":18.904665864862093}
]

Afterwards updates to cars positions will be emited with carPositionChanged event e.g.

{"id":7,"name":"Car 7","lat":54.629798087903216,"lng":18.900004673694244}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages