Session state reads sample Gateway pending events; the Gateway contract now provides getPendingRemoteEvents() for that read.