Implemented part of subscribe/publish handling on server