server sends messages to browser