Bug fix : add reply function to req arg of onMessage