Following the example from https://github.com/vijayannadi/chat