App service to define collections and server endpoints for socket communication