Sending and receiving of messages implemented
in frontend